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#49980: 28.0.50; [PATCH] Should we have project-save-buffers? Date: Thu, 12 Aug 2021 10:55:45 +0300 Organization: LINKOV.NET Message-ID: <87y297azuu.fsf@mail.linkov.net> References: <87czqlodpl.fsf@gmail.com> <871r70lnyi.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34439"; 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: Giap Tran , 49980@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 12 10:16:17 2021 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 1mE5ss-0008lZ-10 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 12 Aug 2021 10:16:14 +0200 Original-Received: from localhost ([::1]:54992 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mE5sq-0007S1-Nn for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 12 Aug 2021 04:16:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58506) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mE5sg-0007JO-DE for bug-gnu-emacs@gnu.org; Thu, 12 Aug 2021 04:16:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54123) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mE5sg-0007Z5-5l for bug-gnu-emacs@gnu.org; Thu, 12 Aug 2021 04:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mE5sg-0007wq-1i for bug-gnu-emacs@gnu.org; Thu, 12 Aug 2021 04:16:02 -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, 12 Aug 2021 08:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49980 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 49980-submit@debbugs.gnu.org id=B49980.162875610430433 (code B ref 49980); Thu, 12 Aug 2021 08:16:02 +0000 Original-Received: (at 49980) by debbugs.gnu.org; 12 Aug 2021 08:15:04 +0000 Original-Received: from localhost ([127.0.0.1]:37429 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mE5rj-0007un-Pk for submit@debbugs.gnu.org; Thu, 12 Aug 2021 04:15:03 -0400 Original-Received: from relay12.mail.gandi.net ([217.70.178.232]:51019) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mE5rh-0007tu-M5 for 49980@debbugs.gnu.org; Thu, 12 Aug 2021 04:15:02 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 5E138200006; Thu, 12 Aug 2021 08:14:53 +0000 (UTC) In-Reply-To: (Dmitry Gutov's message of "Wed, 11 Aug 2021 15:23:56 +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" Xref: news.gmane.io gmane.emacs.bugs:211650 Archived-At: >> It would be nice to have a keybinding for this useful command, >> as there is 'C-x s', but 'C-x p s' is bound to 'project-shell'. >> Maybe then to bind it to 'C-x p S'? > > If we do end up adding this command, we could move project-shell to 'C-x > p E', for example, so that we don't spread shell-related commands over > different letters. Or to a new prefix map, e.g. 'C-x p x s' with mnemonics "eXecute Shell". > But see my question in the other email. > Is there any reason not to just use 'save-some-buffers' (C-x s)? In bug#46374 we are adding a new option 'project-root' to 'save-some-buffers-default-predicate' that will allow 'C-x s' to save only files under the same project root.