GNU bug report logs - #36678
27.0.50; imenu not working in C++ (maybe because of namespace)

Previous Next

Packages: emacs, cc-mode;

Reported by: Ergus <spacibba <at> aol.com>

Date: Mon, 15 Jul 2019 20:34:01 UTC

Severity: normal

Found in version 27.0.50

Full log


View this message in rfc822 format

From: Paul Smith <psmith <at> gnu.org>
To: Alan Mackenzie <acm <at> muc.de>, Ergus <spacibba <at> aol.com>
Cc: 36678 <at> debbugs.gnu.org
Subject: bug#36678: 27.0.50; imenu not working in C++ (maybe because of namespace)
Date: Fri, 02 Aug 2019 15:56:59 -0400
I certainly don't want to discourage anyone from pursuing new features
and capabilities if they want to.

However, my personal opinion is that it's likely not the most
productive use of time.  IMHO cc-mode should continue to focus on
formatting (which is clearly no small task, but which it's very good
at!) and not attempt to also get involved with indexing.

The future (again IMO) for indexing and code introspection is in LSP:
there are very good LSP servers for C++ that are free (I use ccls
personally) and there are also very good LSP clients for Emacs (I use
lsp-mode).  And of course there are LSP servers for many languages
which can all be used with the same LSP client.  Since the servers are
external (ccls is based on clang) they are very fast and can do much,
MUCH more than imenu-type indexing.  I honestly can't imagine working
on a larger codebase without it, anymore.

I don't personally use imenu but a quick search shows that there are
integrations of imenu and lsp-mode available.

Just my $0.02!!






This bug report was last modified 5 years and 317 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.