all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Speedbar, imenu, etags
@ 2007-03-10 21:09 yary
  2007-03-10 22:08 ` yary
  0 siblings, 1 reply; 2+ messages in thread
From: yary @ 2007-03-10 21:09 UTC (permalink / raw)
  To: help-gnu-emacs

I've been using etags, with all its warts, happily for over a decade.
I just started using the speedbar, which led me to imenu, which is
good.

But, some of my files have the extension ".js" and are full of
javascript. Etags is generating good-enough tags for me (tags_search
will find relevant functions in them, for example). I expected the
speedbar to show me the tags when I click on the "+", but it just
changes to a "-" with nothing under it.

I thought that speedbar would fall back to etags if imenu failed to
find any tags, but that doesn't seem to be happening. I'm not even
sure if it is finding my etags, since I'm running on W32 and I doubt
the executable is where speedbar could find it.

Is there a variable/config option to set the etags executable
location?

Is there a better way to have imenu/speedbar find the tags in my
javascript files?

thanks in advance

-y

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Speedbar, imenu, etags
  2007-03-10 21:09 Speedbar, imenu, etags yary
@ 2007-03-10 22:08 ` yary
  0 siblings, 0 replies; 2+ messages in thread
From: yary @ 2007-03-10 22:08 UTC (permalink / raw)
  To: help-gnu-emacs

To partly answer my own question-

I started looking for javascript modes, and found this discussion:

http://emacsen.org/2005/09/26-javascript

and found that three recommended modes have varying support for imenu.

The xemacs-default javascript-mode which you can find at
http://cvs.xemacs.org/viewcvs.cgi/XEmacs/packages/xemacs-packages/prog-modes/javascript-mode.el?rev=1.12&content-type=text/vnd.viewcvs-markup

doesn't help imenu at all

Adding "(require 'generic-x)" to my .emacs and using the generic
javascript helped a little, it can find the top level "var foo="
statements to imenu.

But I don't use those much, am using the technique of making one top-
level variable and using it as a namespace.

Karl Landström's javascript mode isn't putting in my top-level var,
but it IS adding the top-level var's properties, which is just what I
need! And he also provides a CSS mode.

http://web.comhem.se/~u34308910/emacs.html

So, I'm back in business.

I'm still curious about the etags fallback option, so if anyone cares
to chime in about it, that'd be swell.

-y

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-03-10 22:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-10 21:09 Speedbar, imenu, etags yary
2007-03-10 22:08 ` yary

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.