leoliu / ggtags

Emacs frontend to GNU Global source code tagging system.
http://elpa.gnu.org
577 stars 56 forks source link

Use default gtags backend unless GTAGSLABEL is set #221

Open Apteryks opened 1 year ago

Apteryks commented 1 year ago

Hello,

I'd like to suggest leaving gtags using its default native backend instead of suggesting the user to use ctags via a prompt when the GTAGSLABEL environment variable is not set.

Rationale:

  1. GTAGSLABEL=ctags gtags doesn't support reference tags, which can cause confusion (see: https://github.com/leoliu/ggtags/issues/151)
  2. GTAGSLABEL=default gtags (or not specifying it at all) appears to be faster while generating reference tags.

Or was there a good reason why ctags shoud be preferred above Global's own default that I missed?

Thanks.