From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#44297: [Feature request] project.el: Additional utility functions Date: Thu, 29 Oct 2020 11:03:27 +0200 Organization: LINKOV.NET Message-ID: <871rhhv4q8.fsf@mail.linkov.net> References: <1785587458.69035.1603939939547@ichabod.co-bxl> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="379"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: leungbk@mailfence.com To: 44297@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 29 10:14:10 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1kY40Y-000AYj-St for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 29 Oct 2020 10:14:10 +0100 Original-Received: from localhost ([::1]:44224 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kY40X-0001nd-Iw for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 29 Oct 2020 05:14:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55246) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kY40Q-0001nK-4O for bug-gnu-emacs@gnu.org; Thu, 29 Oct 2020 05:14:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40269) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kY40P-0007RD-RH for bug-gnu-emacs@gnu.org; Thu, 29 Oct 2020 05:14:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kY40P-0005wI-Mc for bug-gnu-emacs@gnu.org; Thu, 29 Oct 2020 05:14:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 29 Oct 2020 09:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44297 X-GNU-PR-Package: emacs X-Debbugs-Original-To: Brian Leung via "Bug reports for GNU Emacs, the Swiss army knife of text editors" X-Debbugs-Original-Cc: 44297@debbugs.gnu.org, Brian Leung Original-Received: via spool by submit@debbugs.gnu.org id=B.160396280322748 (code B ref -1); Thu, 29 Oct 2020 09:14:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Oct 2020 09:13:23 +0000 Original-Received: from localhost ([127.0.0.1]:51808 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kY3zm-0005up-UL for submit@debbugs.gnu.org; Thu, 29 Oct 2020 05:13:23 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:32956) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kY3zh-0005uO-G0 for submit@debbugs.gnu.org; Thu, 29 Oct 2020 05:13:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55096) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kY3zh-0001ju-Ba for bug-gnu-emacs@gnu.org; Thu, 29 Oct 2020 05:13:17 -0400 Original-Received: from relay6-d.mail.gandi.net ([217.70.183.198]:49411) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kY3zf-0007AE-Ak for bug-gnu-emacs@gnu.org; Thu, 29 Oct 2020 05:13:17 -0400 X-Originating-IP: 91.129.102.160 Original-Received: from mail.gandi.net (m91-129-102-160.cust.tele2.ee [91.129.102.160]) (Authenticated sender: juri@linkov.net) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id DE93FC000E; Thu, 29 Oct 2020 09:13:08 +0000 (UTC) In-Reply-To: <1785587458.69035.1603939939547@ichabod.co-bxl> (Brian Leung via's message of "Thu, 29 Oct 2020 03:52:19 +0100 (CET)") Received-SPF: pass client-ip=217.70.183.198; envelope-from=juri@linkov.net; helo=relay6-d.mail.gandi.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/29 05:13:10 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:191943 Archived-At: > It would be nice if project.el had the following interactive functions: > > project-find-other-file: Find a file with the same basename as the current file but a different extension Maybe then it should be named project-find-other-extension? Otherwise, project-find-other-file might imply a similarity with find-alternate-file (C-x C-v). Another question: how it should work? Maybe running this command should completing-read on all files with the same basename ignoring the extension? > project-find-file-in-directory: completing-read for a directory within > the project, and then within the selected directory, completing-read > for a file within that directory > project-find-directory: completing-read for a directory within the project Another useful command would be: project-find-file-only using completing-read to match on file names only, not on directory parts. > project-recentf: completing-read recently-accessed files in the project All project file-reading commands could provide a list of recent files as the default values available via M-n key presses. > project-gdb: GDB in project root directory