From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#49980: 28.0.50; [PATCH] Should we have project-save-buffers? Date: Fri, 13 Aug 2021 05:06:17 +0300 Message-ID: <3ea58870-6b9a-41b9-c06e-d045ff9764b9@yandex.ru> References: <87czqlodpl.fsf@gmail.com> <871r70lnyi.fsf@mail.linkov.net> <87y297azuu.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40720"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 Cc: Giap Tran , 49980@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 13 04:07:10 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 1mEMbG-000ATE-32 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 13 Aug 2021 04:07:10 +0200 Original-Received: from localhost ([::1]:56546 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mEMbE-00016F-L7 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 12 Aug 2021 22:07:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41904) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mEMb8-000164-PB for bug-gnu-emacs@gnu.org; Thu, 12 Aug 2021 22:07:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56841) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mEMb8-00056l-J7 for bug-gnu-emacs@gnu.org; Thu, 12 Aug 2021 22:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mEMb8-0000DL-CM for bug-gnu-emacs@gnu.org; Thu, 12 Aug 2021 22:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 13 Aug 2021 02:07: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.1628820391787 (code B ref 49980); Fri, 13 Aug 2021 02:07:02 +0000 Original-Received: (at 49980) by debbugs.gnu.org; 13 Aug 2021 02:06:31 +0000 Original-Received: from localhost ([127.0.0.1]:40154 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mEMad-0000Cd-B7 for submit@debbugs.gnu.org; Thu, 12 Aug 2021 22:06:31 -0400 Original-Received: from mail-wm1-f50.google.com ([209.85.128.50]:45675) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mEMaX-0000CK-P5 for 49980@debbugs.gnu.org; Thu, 12 Aug 2021 22:06:29 -0400 Original-Received: by mail-wm1-f50.google.com with SMTP id 203-20020a1c00d40000b02902e6a4e244e4so5912773wma.4 for <49980@debbugs.gnu.org>; Thu, 12 Aug 2021 19:06:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=PIK3jh1T0XasppuMcqdFAWxhxifwfcruZonxkxERKnk=; b=UUyakijhb6mq6Wy+eXODDZuNkEIh3DKv+LGLf+sSenZIt43/McJgtmMIvmaeL4pQyZ 2z0+kBb9UrP953v60EVHIb4CrjjTdjAp0DOEg6A1NPTEKt9UWrEXHocAszg6JuPndPP/ TyfiMbSDnaEJXYpLLBfFz3rz6u1lf+33DzHdLcK5V2/6uOlkbThEQEJOBZNxMZRBCXbE Yq6LIZ25sO4nloDN+W1jBTbcaSJd1/AEDCT0tQLROEF+JwKjbA7qEpfcP8SmPoBxHPMr 3ZiJ5+4HjhV9mI/+w2aWixPVm1eAGTT4CZl2XGQg3lQ4OjLJqvZVwGdePHcwqMEWmmME frAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=PIK3jh1T0XasppuMcqdFAWxhxifwfcruZonxkxERKnk=; b=lsgalnSXvBbH84cTb5iXe/s5esXFvBaRhI3/BEIOssWPxMLot+Yth9fCeX9Yi/R7Ll DUV4ZDud8yuyykTQeOVzSUBgo/JP/qtJRlRWQwtd8dSd//kRhpCLHAAI+NycYwjwvgXJ 5FcS8RegeeLb4X+/bimxsfBPuIqeK0XIDpCZ5eqPtz/fQ8TGsvxFz4a4fxMiAPz/5TRJ IT4U2kWXRtYfgieX1aEtTD3W/cQS4IDO5BjtfDJegcwvo8J70DROjNtGlb8rU+AUZWNk 6OTm8fx1xXfJkNag+p3Wka5zYvW1Byq04TwN7PslikZrCvsvPmhZwS8uc01zBW4ybo64 l75g== X-Gm-Message-State: AOAM533yV4+d+I94SCuR+JjEzWEh+WWVVrCGA0rlwOQLDGLVVbQLqWgC b95Wr/6oTNfHaeRZTVawhlFiq0LlEsQ= X-Google-Smtp-Source: ABdhPJwROmbqrLS8LlUMs3OQQ5qOdaNIpbFP2EKDRKiYy6i0VV9Pvj9jCdLXVUz0I1kVfDLyjDHeaQ== X-Received: by 2002:a05:600c:a08:: with SMTP id z8mr224707wmp.52.1628820379896; Thu, 12 Aug 2021 19:06:19 -0700 (PDT) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id o2sm8782wmq.30.2021.08.12.19.06.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 12 Aug 2021 19:06:19 -0700 (PDT) In-Reply-To: <87y297azuu.fsf@mail.linkov.net> Content-Language: en-US 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:211710 Archived-At: On 12.08.2021 10:55, Juri Linkov wrote: >>> 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". That would also displace project-execute-extended-command, which seems gratuitous. And if we were putting different commands together to save keymap space, 'project-compile' seems closer in purpose to 'project-shell' than 'project-execute-extended-command'. Anyway, 'e' as a mnemonic for 'Eshell' or 'shEll' seems good enough for me. >> 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. That also seems to indicate that we don't need a separate command.