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: etags-regen-mode: handling extensionless files Date: Fri, 20 Sep 2024 10:20:31 +0100 Message-ID: <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="4026"; 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 Fri Sep 20 11:20:49 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 1srZom-0000ox-Mc for ged-emacs-devel@m.gmane-mx.org; Fri, 20 Sep 2024 11:20:48 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1srZof-0002Ru-Jp; Fri, 20 Sep 2024 05:20:42 -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 1srZoa-0002Rd-S9 for emacs-devel@gnu.org; Fri, 20 Sep 2024 05:20:37 -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 1srZoY-0005ZJ-IU for emacs-devel@gnu.org; Fri, 20 Sep 2024 05:20:36 -0400 DKIM-Signature: a=rsa-sha256; b=aLSoX+jqHklwooMKzNSWyPZ5eh3J9oYOhrr42WlWH3O+mU6iukvHbZP1CgICV6Tb0fJq2Z3D68YqwTaN3JPAIWzRLrVOiUR1Yb8gV/06YoHzpDlpmQwRr+T1GqRJkrgt7pyilkS8H/dGSRpNvvahBXrcLL3nFaUE+OIvvLxuReivaq2U01nQJxo3FJPAJCd28YqpkrIQqahB+NtULGixkVAkocFWeOVQh6aQiG475v6eJn9lL3Bo4BV4qyEstdaZTxquaiAVjX6o0/c35eQAjPj7sNWtJP8hw4he0gYq4yvXwhK9adm6m/nVFasDHJ5FkWp6P1PtrQ/BzVASRwa5fQ==; s=purelymail3; d=spwhitton.name; v=1; bh=qhT2ayjGf0YTjceBxSuO6nNh4GDjqS7IDlE+HgXK0xA=; h=Received:Received:From:To:Subject:Date; DKIM-Signature: a=rsa-sha256; b=lyVMzonRj6H/oKstIhzajmIfuyUzxd+yxD18jdaIsCXUZSBUEgwWusO5hJrb8segjeSoRkVep8vsy7PUvb03uJqMOJOzREJst4hM2AA5gU24YfJDr92FntCg3skxmT9aKG582nCRO4MQn6wOlPxRUp9OqMy92OWf44L2iGTB/gzrwMsTdWl/+62No4sViMXVyn4KJeQ/xSn8m9IQfpeWi2C70mq2SKdzloAaTUv/zIG+SdolE5qeHPNmR9R+2Xjo3KJYiAr6IA9QSwHSz9tdGOHrLb0dh4EkWEe5r/Y6B2tvvclQgZfCdMnVxE67Cpe7scxrkyD6Uhn3JqRfjBiMTQ==; s=purelymail3; d=purelymail.com; v=1; bh=qhT2ayjGf0YTjceBxSuO6nNh4GDjqS7IDlE+HgXK0xA=; 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 606575934; (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Fri, 20 Sep 2024 09:20:32 +0000 (UTC) Original-Received: by zephyr.silentflame.com (Postfix, from userid 1000) id 6AD2B949F46; Fri, 20 Sep 2024 10:20:31 +0100 (BST) 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_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_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:323824 Archived-At: Hello Dmitry, 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. 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. Let me know what you think about this use case. -- Sean Whitton