From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#36678: 27.0.50; imenu not working in C++ (maybe because of namespace) Date: Sat, 3 Aug 2019 11:27:34 +0000 Message-ID: <20190803112734.GA5573@ACM> References: <20190717163427.18177.qmail@mail.muc.de> <20190731155610.x33urisumbblyryu@Ergus> <20190802193315.GC11966@ACM> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="207877"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.10.1 (2018-07-13) Cc: Ergus , 36678@debbugs.gnu.org To: Paul Smith Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 03 13:28:23 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1htsD1-000rwB-4d for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 Aug 2019 13:28:23 +0200 Original-Received: from localhost ([::1]:39416 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1htsCz-0008IN-H9 for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 Aug 2019 07:28:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46490) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1htsCt-0008I5-0f for bug-gnu-emacs@gnu.org; Sat, 03 Aug 2019 07:28:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1htsCr-0004Ty-VS for bug-gnu-emacs@gnu.org; Sat, 03 Aug 2019 07:28:14 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49551) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1htsCf-0004CG-LJ; Sat, 03 Aug 2019 07:28:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1htsCf-0005NA-H2; Sat, 03 Aug 2019 07:28:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Sat, 03 Aug 2019 11:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36678 X-GNU-PR-Package: emacs,cc-mode Original-Received: via spool by 36678-submit@debbugs.gnu.org id=B36678.156483166020622 (code B ref 36678); Sat, 03 Aug 2019 11:28:01 +0000 Original-Received: (at 36678) by debbugs.gnu.org; 3 Aug 2019 11:27:40 +0000 Original-Received: from localhost ([127.0.0.1]:58372 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htsCK-0005MY-6u for submit@debbugs.gnu.org; Sat, 03 Aug 2019 07:27:40 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:14958 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1htsCH-0005MO-B0 for 36678@debbugs.gnu.org; Sat, 03 Aug 2019 07:27:38 -0400 Original-Received: (qmail 33498 invoked by uid 3782); 3 Aug 2019 10:35:02 -0000 Original-Received: from acm.muc.de (p2E5D5CC5.dip0.t-ipconnect.de [46.93.92.197]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sat, 03 Aug 2019 12:35:01 +0200 Original-Received: (qmail 5710 invoked by uid 1000); 3 Aug 2019 11:27:34 -0000 Content-Disposition: inline In-Reply-To: X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:164433 Archived-At: Hello, Paul. On Fri, Aug 02, 2019 at 15:56:59 -0400, Paul Smith wrote: > 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. CC Mode has had imenu type indexing right from its inception. What is changing is the increasing complexity of function definitions, in particular, the slow demise of the convention of function names being in column zero. > The future (again IMO) for indexing and code introspection is in LSP: > there are very good LSP servers for C++ that are free .... Free as in speech (not beer)? (Just checking.) > .... (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 .... External to what? External to Emacs, or external to the machine running Emacs? If the latter, that would restrict full Emacs functionality to networked machines, which would be a big negative, possibly a decisive one. > .... (ccls is based on clang) .... This makes it controversial, since clang isn't free software in the copyleft sense of the term. > .... they are very fast and can do much, MUCH more than imenu-type > indexing. Could you please give some idea of what you mean by "much more"? > I honestly can't imagine working on a larger codebase without it, > anymore. Does the server you're using run on your own machine? (I'm guessing yes.) > 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!! Thanks! -- Alan Mackenzie (Nuremberg, Germany).