From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Paul Smith Newsgroups: gmane.emacs.bugs Subject: bug#36678: 27.0.50; imenu not working in C++ (maybe because of namespace) Date: Sat, 03 Aug 2019 10:43:21 -0400 Organization: GNU's Not UNIX! Message-ID: References: <20190717163427.18177.qmail@mail.muc.de> <20190731155610.x33urisumbblyryu@Ergus> <20190802193315.GC11966@ACM> Reply-To: psmith@gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="241736"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Evolution 3.32.1-2 Cc: acm@muc.de, spacibba@aol.com, 36678@debbugs.gnu.org To: rms@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 03 16:44:08 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 1htvGS-0010la-LN for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 Aug 2019 16:44:08 +0200 Original-Received: from localhost ([::1]:40414 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1htvGR-000301-1G for geb-bug-gnu-emacs@m.gmane.org; Sat, 03 Aug 2019 10:44:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51151) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1htvGM-0002yg-Rn for bug-gnu-emacs@gnu.org; Sat, 03 Aug 2019 10:44:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1htvGL-0004SI-Qm for bug-gnu-emacs@gnu.org; Sat, 03 Aug 2019 10:44:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50927) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1htvGL-0004S1-Nw; Sat, 03 Aug 2019 10:44:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1htvGL-0002PZ-KM; Sat, 03 Aug 2019 10:44:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Smith Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Sat, 03 Aug 2019 14:44: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.15648434179230 (code B ref 36678); Sat, 03 Aug 2019 14:44:01 +0000 Original-Received: (at 36678) by debbugs.gnu.org; 3 Aug 2019 14:43:37 +0000 Original-Received: from localhost ([127.0.0.1]:59748 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htvFw-0002On-Tf for submit@debbugs.gnu.org; Sat, 03 Aug 2019 10:43:37 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:38648) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htvFv-0002Ob-Vr for 36678@debbugs.gnu.org; Sat, 03 Aug 2019 10:43:36 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:58312) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1htvFq-00043q-Fn; Sat, 03 Aug 2019 10:43:30 -0400 Original-Received: from pool-98-118-0-140.bstnma.fios.verizon.net ([98.118.0.140]:34772 helo=homebase.home) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1htvFj-0006ir-1I; Sat, 03 Aug 2019 10:43:23 -0400 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:164463 Archived-At: On Fri, 2019-08-02 at 22:25 -0400, Richard Stallman wrote: > > 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). > > Using a server to do your ocmputing job is bad for your freedom > (unless it's your own server). Sorry, I guess I should have provided more details. When I say "server" I mean in the traditional sense, of a background process running on your local system. I don't mean "service", as in Internet service. LSP stands for "Language Server Protocol" and is a public protocol (invented and driven by Microsoft, but a public effort). The goal is to split the work of indexing source code and the work of editing source code into two parts, and LSP is the protocol between those two parts. The protocol is language agnostic, so if you have a client that speaks LSP, that same client can work for ANY language for which you have an LSP server. There are (free) LSP servers available for most popular languages. More info here: https://langserver.org/ An Internet service would be quite untenable since the server is used to index your source code, and virtually no one would be interested in uploading all of their source code to some third party for indexing. Plus it's indexing your particular code so it would have to support uploading every individual developers workspace, and uploading every change to that workspace, etc. There are many free software LSP server implementations. The one I mentioned, ccls, supports C and C++ and is licensed via Apache 2.0: https://github.com/MaskRay/ccls Of course the Emacs client implementations are all free software (available on ELPA etc.)