librelist archives

« back to archive

Fwd: File extension ".jsx"

Fwd: File extension ".jsx"

From:
Philip Hudson
Date:
2013-12-17 @ 11:12
---------- Forwarded message ----------
From: Philip Hudson <phil.hudson@iname.com>
Date: 17 December 2013 10:59
Subject: File extension ".jsx"
To: conkeror@mozdev.org


Just noticed a few files with extension ".jsx", which the Intertubes tell
me is something proprietary to do with Adobe. The files *seem* to contain
ordinary JavaScript. I've gone ahead and told Emacs to associate *.jsx with
js2-mode, but I'd feel better knowing more. Please enlighten me.

-- 
Phil Hudson                  http://hudson-it.no-ip.biz
@UWascalWabbit                 PGP/GnuPG ID: 0x887DCA63



-- 
Phil Hudson                  http://hudson-it.no-ip.biz
@UWascalWabbit                 PGP/GnuPG ID: 0x887DCA63

Re: [conkeror] Fwd: File extension ".jsx"

From:
John J. Foerch
Date:
2013-12-17 @ 14:58
On Tue, Dec 17, 2013 at 11:12:12AM +0000, Philip Hudson wrote:
> 
> 
> ---------- Forwarded message ----------
> From: Philip Hudson <phil.hudson@iname.com>
> Date: 17 December 2013 10:59
> Subject: File extension ".jsx"
> To: conkeror@mozdev.org
> 
> 
> Just noticed a few files with extension ".jsx", which the Intertubes tell me is
> something proprietary to do with Adobe. The files *seem* to contain ordinary
> JavaScript. I've gone ahead and told Emacs to associate *.jsx with js2-mode,
> but I'd feel better knowing more. Please enlighten me.
> 
> --
> Phil Hudson                  http://hudson-it.no-ip.biz
> @UWascalWabbit                 PGP/GnuPG ID: 0x887DCA63
> 
> 
> 
> --
> Phil Hudson                  http://hudson-it.no-ip.biz
> @UWascalWabbit                 PGP/GnuPG ID: 0x887DCA63

It's the extension that we use for modules in Conkeror's load/require
system, that get loaded into their own namespace instead of into
Conkeror's application namespace.  Mozilla provides a similar thing, with
the extension jsm, but jsm files cannot be reloaded without restarting the
program, so we decided to invent our own.

For editing javascript files, and specifically Conkeror javascript files,
I recommend the js-mode that comes with Emacs 24, and conkeror-minor-mode
from here: https://github.com/Bruce-Connor/conkeror-minor-mode/

-- 
John Foerch