From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Spencer Baugh Newsgroups: gmane.emacs.bugs Subject: bug#66518: [PATCH] Use project-name in the project-kill-buffers prompt Date: Mon, 16 Oct 2023 14:48:42 -0400 Message-ID: References: <87r0lyqzk7.fsf@posteo.net> <13f596c0-47e5-ed57-1c96-d659315cb1a4@gutov.dev> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32594"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 66518@debbugs.gnu.org, Philip Kaludercic To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 16 20:50:02 2023 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 1qsSfC-0008JX-2x for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 16 Oct 2023 20:50:02 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qsSer-0006Fe-42; Mon, 16 Oct 2023 14:49:41 -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 1qsSeo-0006FH-0W for bug-gnu-emacs@gnu.org; Mon, 16 Oct 2023 14:49:39 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qsSen-0007wl-Ot for bug-gnu-emacs@gnu.org; Mon, 16 Oct 2023 14:49:37 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qsSfC-0006tQ-Bf for bug-gnu-emacs@gnu.org; Mon, 16 Oct 2023 14:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Spencer Baugh Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Oct 2023 18:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66518 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 66518-submit@debbugs.gnu.org id=B66518.169748216726448 (code B ref 66518); Mon, 16 Oct 2023 18:50:02 +0000 Original-Received: (at 66518) by debbugs.gnu.org; 16 Oct 2023 18:49:27 +0000 Original-Received: from localhost ([127.0.0.1]:58024 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qsSeV-0006sM-79 for submit@debbugs.gnu.org; Mon, 16 Oct 2023 14:49:27 -0400 Original-Received: from mxout5.mail.janestreet.com ([64.215.233.18]:47775) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qsSeQ-0006rl-C6 for 66518@debbugs.gnu.org; Mon, 16 Oct 2023 14:49:18 -0400 In-Reply-To: <13f596c0-47e5-ed57-1c96-d659315cb1a4@gutov.dev> (Dmitry Gutov's message of "Sat, 14 Oct 2023 02:41:59 +0300") 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:272580 Archived-At: Dmitry Gutov writes: > On 13/10/2023 19:04, Philip Kaludercic wrote: >> Spencer Baugh writes: >> >>> Tags: patch >>> >>> >>> This is mildly prettier. >> Could this cause confusion, in case two projects share the same name? > > I suppose this can indeed be problematic with the default backend, > where project-name just returns the base name of the root directory > (and they can conflict). > > OTOH, we do use the project name as prefix for buffer names, for > example. So this might be okay. Worst case, we add a user option > later. My contention is that if the user is running this in the current project, they already basically know where they are, they just need a little reminder. Plausibly not even that is necessary if they have project-mode-line enabled. And if they're running it in another project, using project-switch-project, then they just explicitly selected a project so we definitely don't need to tell them the full path of the project they're running in.