all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* js-mode, js-find-symbol
@ 2011-03-02 20:49 John J Foerch
  0 siblings, 0 replies; only message in thread
From: John J Foerch @ 2011-03-02 20:49 UTC (permalink / raw)
  To: emacs-devel

Hello,

I've just found that js-mode binds M-. to js-find-symbol.  Long story
short, I was wondering for the past several weeks why find-tag seemed to
have stopped working in my emacs setup since my last upgrade (and
switching from espresso.el to js.el) and I finally got around to
investigating it.  (Then it took me way too long to notice that the
source of my problem was a key binding, not a bug in etags.)  Digression
aside...

I can see that js-find-symbol is a useful feature in some situations,
which is to say for some workflows, but I think the decision to override
the default behavior of M-. in js-mode should be revisited.
'js-find-symbol' is not a clear improvement over 'find-tag' for people
who have taken the time to configure etags.  True, js-find-symbol may be
more accurate than etags at deciding what does and does not count as a
tag, since etags apparently does not yet have built-in support for
javascript syntax.  But js-find-symbol only knows how to look in files
that have been visited, while etags can be used to make a tags file for
an entire directory structure, and for projects that consist of source
files of different formats and languages.

Perhaps the way this feature is implemented could be reconsidered.  Some
initial ideas:

 * js-find-symbol could be provided on a different key, or otherwise
   left to the user to enable.

 * etags itself could be improved to better support javascript syntax,
   as well as, on the emacs-side, automatically updating the tables as
   buffers changed.  Then the functionality of the etags system would
   not have to be duplicated in js-mode.

 * js-mode could generate a tags table to be merged with the
   user-configured tables, rather than override them.

Thank you for your time.

-- 
John Foerch




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-03-02 20:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-02 20:49 js-mode, js-find-symbol John J Foerch

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.