From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Adding support for xref jumping to headers/interfaces Date: Sun, 05 Mar 2023 08:11:29 +0200 Message-ID: <834jqzafse.fsf@gnu.org> References: <83bklin83z.fsf@gnu.org> <865ybmu2ha.fsf@stephe-leake.org> <39e25c9a-b4cc-a0ce-3f2a-1d2a1fc243d0@yandex.ru> <83pm9sfxfa.fsf@gnu.org> <861qm4tkih.fsf@stephe-leake.org> <71ea5e83-183f-2ae3-8146-6a31045a0309@yandex.ru> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10047"; mail-complaints-to="usenet@ciao.gmane.io" Cc: stephen_leake@stephe-leake.org, john@yates-sheets.org, rms@gnu.org, fgunbin@fastmail.fm, casouri@gmail.com, sbaugh@janestreet.com, emacs-devel@gnu.org, azeng@janestreet.com To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Mar 05 07:12:45 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pYhbx-0002S2-37 for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Mar 2023 07:12:45 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pYhb5-0005lM-DO; Sun, 05 Mar 2023 01:11:51 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pYhb3-0005k4-QH for emacs-devel@gnu.org; Sun, 05 Mar 2023 01:11:49 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pYhb1-00010F-2g; Sun, 05 Mar 2023 01:11:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=DXxwg7Gcxo6I3eR5Dvrp90CLPEvXZUrLtwtDQF1V3Ko=; b=NUwjNgGEyAZy Q9XqtVE1EjrDdCb2iLVijomu3f8QCazgBRa/DgevyA8Ob6mwAiXZ+wp0JBojK3/yFKQPVmHGcmIOY +Wp++5mj/NfAyYfi3sgM1TB2E41RLHBQ3Imy79p8hiqoeWG2/vVFbP0jf3SFny3/7nzQ2N9q5P6+I e6AlWlg72rCLZXwdS0KManDODdgim/dW3VxZzEu1wdPneLT1OhH2b7Fd5XcVtQ8KyVEUpOITOBZSC cCNT0CaCzgTFVDpzNzNAz/W+2cnI/qZuF0d6BHf7RTITIm3erJ9vsCfRyCr2D7A5DL3g3UDhqA+fK Ql8jGrUsYhsdVnZrzjp3FQ==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pYhau-0003ah-1V; Sun, 05 Mar 2023 01:11:40 -0500 In-Reply-To: <71ea5e83-183f-2ae3-8146-6a31045a0309@yandex.ru> (message from Dmitry Gutov on Sun, 5 Mar 2023 00:24:01 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:303962 Archived-At: > Date: Sun, 5 Mar 2023 00:24:01 +0200 > Cc: Eli Zaretskii , rms@gnu.org, fgunbin@fastmail.fm, > casouri@gmail.com, sbaugh@janestreet.com, emacs-devel@gnu.org, > azeng@janestreet.com > From: Dmitry Gutov > > Now, the next question is will we be able to provide some implementation > of this method using one of the default backends? > > elisp -- probably not. > > Can we have one for 'etags'? Even if we just limit it to a pre-defined > set of languages? For C-like languages, we'd need to run "etags --declarations" on *.h files for that, I think. And the resulting TAGS table will have stuff other than just declarations, so we'd need some way of distinguishing between them and the rest. Alternatively, perhaps it should be possible to add a special command-line option (--declarations-only ?) to etags, to cause it to output tags only for declarations.