From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sean Whitton Newsgroups: gmane.emacs.devel Subject: Re: etags-regen-mode: handling extensionless files Date: Sun, 22 Sep 2024 13:02:57 +0100 Message-ID: <8734lrrj4e.fsf@zephyr.silentflame.com> References: <87tteaznog.fsf@zephyr.silentflame.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6107"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Sep 22 14:06:20 2024 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 1ssLM4-0001QX-4O for ged-emacs-devel@m.gmane-mx.org; Sun, 22 Sep 2024 14:06:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ssLJ1-0000Tx-JP; Sun, 22 Sep 2024 08:03:12 -0400 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 1ssLIu-0008F9-Bk for emacs-devel@gnu.org; Sun, 22 Sep 2024 08:03:04 -0400 Original-Received: from sendmail.purelymail.com ([34.202.193.197]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ssLIr-0002fm-PI for emacs-devel@gnu.org; Sun, 22 Sep 2024 08:03:04 -0400 DKIM-Signature: a=rsa-sha256; b=pde3bL+GVjU4NIGbrWOUD9QNTsZqL0mB6lXgs9einB8e6Vl/VuMCbsp3dGuNMFGnA8hlRQKzmIBejrp/oQnDLbkiKTCAX4/N0HBxaohivSCQfrCbnp1aDInXzXkWHmSlcJeT48JjNKxjIa6Ov3EDxB4ketJ/TI85CHbeb1VNzo8CjIv33VyVfD5W+YACij2/30mz1hqJ3uGq3AbE7k5wuKg4pLIEfL8RSV6rusEt0cEYynbwovkNT/Iaj8yx/PEhK4oZWfYnVaGh4NskVpXKaRfDZXqfnN+BH58etbttMz/kGHMh9YcmnCG8bB075Y4sqT5B1A34XODwXimBtQcqWA==; s=purelymail3; d=spwhitton.name; v=1; bh=eyqKZregNKAxXT9woOdrzIRdsiwidVtRB1PXipbUudM=; h=Received:Received:From:To:Subject:Date; DKIM-Signature: a=rsa-sha256; b=AGwhTNSt+Bu6bq69zKGQdQy0WRVbWBYWs9twrqAEeinMNYZwbHz2OHifXbVgGchoZBd90bJM+kBH6lVUkXlLihHo9vQdUi7NSKKT98Y23kuoe6luzTYNWOIDHV2TR05n59Lw1HZSUmHqKRRA5LRfoOlMSchJJrJiXHIuJYrZzQLTLTm1Ny/9Yj6r799SfFSL+5O3lkbcPgcpp3sT2xpFN1oaQnsiLornWpL4LlAk7u9dzS0IddtAnMTn6WVAUG040i6CqpcaUIsf/nyBSdmIWQOOAEJuieyCYXbi7hP1n+X4GCsHSKos6kk96slIuvo8YMzXcwuKVsV17P7Z8Zs/iw==; s=purelymail3; d=purelymail.com; v=1; bh=eyqKZregNKAxXT9woOdrzIRdsiwidVtRB1PXipbUudM=; h=Feedback-ID:Received:Received:From:To:Subject:Date; Feedback-ID: 20115:3760:null:purelymail X-Pm-Original-To: emacs-devel@gnu.org Original-Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id 443744264; (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Sun, 22 Sep 2024 12:02:58 +0000 (UTC) Original-Received: by zephyr.silentflame.com (Postfix, from userid 1000) id B96FB949929; Sun, 22 Sep 2024 13:02:57 +0100 (BST) In-Reply-To: (Dmitry Gutov's message of "Fri, 20 Sep 2024 21:23:56 +0300") Received-SPF: pass client-ip=34.202.193.197; envelope-from=spwhitton@spwhitton.name; helo=sendmail.purelymail.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:323920 Archived-At: Hello, On Fri 20 Sep 2024 at 09:23pm +03, Dmitry Gutov wrote: > Hi Sean, > > On 20/09/2024 12:20, Sean Whitton wrote: > >> I'm working on a Perl project which has .pm files (which should be added >> to etags-regen-file-extensions; I've written mail about that) but also >> programs intended for execution, which have no file extension: >> . >> E.g. 'dgit' and 'git-debrebase' in the project root. >> On the one hand, it makes sense not to index these files because they're >> programs not libraries, so their internal definitions won't ever be >> referenced elsewhere. > > They're probably referenced internally though, at least once. Good point. >> On the other hand, it would be nice just to be able to use a simple >> M-. to jump to definition, and not have to think about whether the >> function is defined in the program or in a library. >> Should we have some etags defcustom that allows specifying extra files >> to index? Or, as another idea, maybe etags could somehow include >> looking at what imenu finds? Might be too clever. > > I guess we could add that extra option. > > But see my other email regarding etags' hashbang detection. Hashbang detection would solve my problem elegantly. Is my reading of the other thread correct that if we can fix the fortran fallback then we can enable the hashbang detection? -- Sean Whitton