|
View:
New views
8 Messages
—
Rating Filter:
Alert me
|
|
|
Javascript mode: methods buffer not populatedI'm using ECB 2.40 with GNU Emacs 22.3.1 on Win XP. The Javascript
parsing is practically useless. In one file, several functions defined as "var x = function(...) {...};" aren't picked up, but a simple "var x;" is. Also variables defined as "var x = new ...;" are ignored. In another file, which consists entirely of "traditional" function definitions ("function foo (...) {...}", nothing is shown. I suppose I should mention that the first file is mixed HTML and JS, and the mode line shows "Javascript/nxhtml", while the second has no HTML, and the mode is shown as "Javascript Moz". Any thoughts appreciated... -- Don Dwiggins Advanced Publishing Technology ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Ecb-list mailing list Ecb-list@... https://lists.sourceforge.net/lists/listinfo/ecb-list |
|
|
Re: Javascript mode: methods buffer not populatedhttp://code.google.com/p/js2-mode/ I believe it's GPL. If you dislike the orthogonality, maybe steal his parser to plug in to semantic? > To: ecb-list@... > From: ddwiggins@... > Date: Thu, 18 Jun 2009 10:06:18 -0700 > Subject: [ECB-list] Javascript mode: methods buffer not populated > > I'm using ECB 2.40 with GNU Emacs 22.3.1 on Win XP. The Javascript > parsing is practically useless. In one file, several functions defined > as "var x = function(...) {...};" aren't picked up, but a simple "var > x;" is. Also variables defined as "var x = new ...;" are ignored. > > In another file, which consists entirely of "traditional" function > definitions ("function foo (...) {...}", nothing is shown. > > I suppose I should mention that the first file is mixed HTML and JS, and > the mode line shows "Javascript/nxhtml", while the second has no HTML, > and the mode is shown as "Javascript Moz". > > Any thoughts appreciated... > > -- > Don Dwiggins > Advanced Publishing Technology > > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Ecb-list mailing list > Ecb-list@... > https://lists.sourceforge.net/lists/listinfo/ecb-list Insert movie times and more without leaving Hotmail®. See how. ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Ecb-list mailing list Ecb-list@... https://lists.sourceforge.net/lists/listinfo/ecb-list |
|
|
Re: Javascript mode: methods buffer not populatedThanks, John:
> js2-mode by steve yegge :) > http://code.google.com/p/js2-mode/ > > I believe it's GPL. If you dislike the orthogonality, maybe steal his > parser to plug in to semantic? I've read about JS2 and several others on http://www.emacswiki.org/emacs/JavaScriptMode. Unfortunately, that page doesn't seem to offer a clear answer, especially in the context of CEDET, ECB, nXhtml, and mumamo (I'm also interested in improving the tabbing behavior). I'd rather not spend time trying to integrate the various alternatives if possible. (It looks like what I have is Landstrom's implementation.) If I get annoyed enough, and have the time, I'll try js2 and/or espresso. Regards, -- Don Dwiggins Advanced Publishing Technology ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Ecb-list mailing list Ecb-list@... https://lists.sourceforge.net/lists/listinfo/ecb-list |
|
|
Re: Javascript mode: methods buffer not populatedUpdate of an earlier post:
> Thanks, John: >> js2-mode by steve yegge :) >> http://code.google.com/p/js2-mode/ >> >> I believe it's GPL. If you dislike the orthogonality, maybe steal his >> parser to plug in to semantic? > > I've read about JS2 and several others on > http://www.emacswiki.org/emacs/JavaScriptMode. Unfortunately, that page > doesn't seem to offer a clear answer, especially in the context of > CEDET, ECB, nXhtml, and mumamo (I'm also interested in improving the > tabbing behavior). I'd rather not spend time trying to integrate the > various alternatives if possible. (It looks like what I have is > Landstrom's implementation.) > > If I get annoyed enough, and have the time, I'll try js2 and/or espresso. I got some time and played with js2. It turns out that nXhtml includes a modified version of js2, but it wasn't completely debugged, and the nXhtml author deprecated it in a comment. Good thing -- running under mumamo, it badly messes up the parsing. There's more work to be done there, and I'm not the one to do it. I had some success with the original version of js2, however. When I manually invoke js2-mode on a "pure" .js file, it does an excellent job, including the parsing, and I get useful information in the methods buffer. Unfortunately, something in the nXhtml, CEDET, or ECB initialization code prevents js2-mode from kicking in automatically when I load a .js file (even though I've set it up properly in my .emacs); I have to explicitly change the mode. I can live with that for now, but if anyone has some hints on where to look to change this, I'd be most appreciative. -- Don Dwiggins Advanced Publishing Technology ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ Ecb-list mailing list Ecb-list@... https://lists.sourceforge.net/lists/listinfo/ecb-list |
|
|
Re: Javascript mode: methods buffer not populatedOn Wed, Jul 8, 2009 at 6:37 PM, Don Dwiggins<ddwiggins@...> wrote:
> Update of an earlier post: >> Thanks, John: >>> js2-mode by steve yegge :) >>> http://code.google.com/p/js2-mode/ >>> >>> I believe it's GPL. If you dislike the orthogonality, maybe steal his >>> parser to plug in to semantic? >> >> I've read about JS2 and several others on >> http://www.emacswiki.org/emacs/JavaScriptMode. Unfortunately, that page >> doesn't seem to offer a clear answer, especially in the context of >> CEDET, ECB, nXhtml, and mumamo (I'm also interested in improving the >> tabbing behavior). I'd rather not spend time trying to integrate the >> various alternatives if possible. (It looks like what I have is >> Landstrom's implementation.) >> >> If I get annoyed enough, and have the time, I'll try js2 and/or espresso. > > I got some time and played with js2. It turns out that nXhtml includes > a modified version of js2, but it wasn't completely debugged, and the > nXhtml author deprecated it in a comment. Good thing -- running under > mumamo, it badly messes up the parsing. There's more work to be done > there, and I'm not the one to do it. > > I had some success with the original version of js2, however. When I > manually invoke js2-mode on a "pure" .js file, it does an excellent job, > including the parsing, and I get useful information in the methods buffer. > > Unfortunately, something in the nXhtml, CEDET, or ECB initialization > code prevents js2-mode from kicking in automatically when I load a .js > file (even though I've set it up properly in my .emacs); I have to > explicitly change the mode. I can live with that for now, but if anyone > has some hints on where to look to change this, I'd be most appreciative. Look in the nXhtml menu nXhtml / Tools / Major Mode Priorities But maybe I would add an explanation there too ... ;-) ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ Ecb-list mailing list Ecb-list@... https://lists.sourceforge.net/lists/listinfo/ecb-list |
|
|
Re: Javascript mode: methods buffer not populatedLennart Borgman wrote:
> Look in the nXhtml menu > > nXhtml / Tools / Major Mode Priorities > > But maybe I would add an explanation there too ... ;-) Thanks, Lennart. I'm still finding my way around the constellation of components I've got, and hadn't noticed that. The customization buffer wasn't too hard to figure out, once I got there. Turns out that, somewhere down the line, an entry is made in auto-mode-alist for ".js" that comes before the one I put in with add-to-list. I'll put that code later in .emacs and see if it helps. -- Don Dwiggins Advanced Publishing Technology ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ Ecb-list mailing list Ecb-list@... https://lists.sourceforge.net/lists/listinfo/ecb-list |
|
|
Re: Javascript mode: methods buffer not populatedIs there now a problem with ECB or not?
-----Ursprüngliche Nachricht----- Von: Don Dwiggins [mailto:ddwiggins@...] Gesendet: Mittwoch, 8. Juli 2009 19:32 An: ecb-list@... Betreff: Re: [ECB-list] Javascript mode: methods buffer not populated Lennart Borgman wrote: > Look in the nXhtml menu > > nXhtml / Tools / Major Mode Priorities > > But maybe I would add an explanation there too ... ;-) Thanks, Lennart. I'm still finding my way around the constellation of components I've got, and hadn't noticed that. The customization buffer wasn't too hard to figure out, once I got there. Turns out that, somewhere down the line, an entry is made in auto-mode-alist for ".js" that comes before the one I put in with add-to-list. I'll put that code later in .emacs and see if it helps. -- Don Dwiggins Advanced Publishing Technology ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ Ecb-list mailing list Ecb-list@... https://lists.sourceforge.net/lists/listinfo/ecb-list ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ Ecb-list mailing list Ecb-list@... https://lists.sourceforge.net/lists/listinfo/ecb-list |
|
|
Re: Javascript mode: methods buffer not populatedklaus.berndl@... wrote:
> Is there now a problem with ECB or not? No problem with ECB; I was just reporting my partial resolution of the troubles I was having with JS mode parsing, in case someone else travels the same path. Consider this thread closed. -- Don Dwiggins Advanced Publishing Technology ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ Ecb-list mailing list Ecb-list@... https://lists.sourceforge.net/lists/listinfo/ecb-list |
| Free embeddable forum powered by Nabble | Forum Help |