« Return to Thread: Javascript mode: methods buffer not populated

Re: Javascript mode: methods buffer not populated

by Lennart Borgman (gmail) :: Rate this Message:

Reply to Author | View in Thread

On 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

 « Return to Thread: Javascript mode: methods buffer not populated