From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?K=C3=A9vin?= Le Gouguec Newsgroups: gmane.emacs.bugs Subject: bug#46151: 28.0.50; Set revert-buffer-function in shell command output buffers Date: Sun, 31 Jan 2021 10:46:15 +0100 Message-ID: <87a6spigm0.fsf@gmail.com> References: <87lfcdd1he.fsf@melete.silentflame.com> <87im7gward.fsf@gnus.org> <87wnvwte7y.fsf@melete.silentflame.com> <87a6ssus1o.fsf@gnus.org> <87tuqztwyt.fsf@melete.silentflame.com> <87bld6uzf8.fsf@mail.linkov.net> <87h7mxzrbo.fsf@md5i.com> <875z3dv9o4.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21006"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) To: 46151@debbugs.gnu.org Cancel-Lock: sha1:zqGcgqHzn1bCipSDt1NY95Gb970= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 31 10:47: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 1l69K2-0005Lk-Fh for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 31 Jan 2021 10:47:10 +0100 Original-Received: from localhost ([::1]:58956 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l69K1-0003vb-Bi for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 31 Jan 2021 04:47:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51520) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l69Ju-0003vN-Mq for bug-gnu-emacs@gnu.org; Sun, 31 Jan 2021 04:47:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44887) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l69Ju-0002Ds-E5 for bug-gnu-emacs@gnu.org; Sun, 31 Jan 2021 04:47:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l69Ju-0001s8-Bp for bug-gnu-emacs@gnu.org; Sun, 31 Jan 2021 04:47:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <87lfcdd1he.fsf@melete.silentflame.com> Resent-From: =?UTF-8?Q?K=C3=A9vin?= Le Gouguec Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 31 Jan 2021 09:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46151 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16120864057172 (code B ref -1); Sun, 31 Jan 2021 09:47:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 31 Jan 2021 09:46:45 +0000 Original-Received: from localhost ([127.0.0.1]:56433 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l69JO-0001rN-FG for submit@debbugs.gnu.org; Sun, 31 Jan 2021 04:46:45 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:53104) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l69JK-0001rD-BO for submit@debbugs.gnu.org; Sun, 31 Jan 2021 04:46:29 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51474) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l69JJ-0003tR-M3 for bug-gnu-emacs@gnu.org; Sun, 31 Jan 2021 04:46:26 -0500 Original-Received: from ciao.gmane.io ([116.202.254.214]:52962) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l69JI-0001uj-AU for bug-gnu-emacs@gnu.org; Sun, 31 Jan 2021 04:46:25 -0500 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1l69JF-0004Rn-93 for bug-gnu-emacs@gnu.org; Sun, 31 Jan 2021 10:46:21 +0100 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=geb-bug-gnu-emacs@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 5 X-Spam_score: 0.5 X-Spam_bar: / X-Spam_report: (0.5 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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:198991 Archived-At: Lars Ingebrigtsen writes: > This reminds me that I've often found it odd that there's no global > binding for `revert-buffer' -- I think there should be, because it's > such a useful command. > > Sean suggested `C-c C-r', which is nicely mnemonic, and is natural as a > non-complicated alternative to `C-c C-f' when trying to reload a file > (since `C-c C-f' has a lot of annoying DWIM stuff going on). > > We can't use `C-c C-g', I guess, since we try to avoid keystrokes that > involve `C-g' (since `C-g' should reliably quit), but that would also be > a natural keystroke, since `revert-buffer' is bound to `g' in > `special-mode'. > > Any opinions? (info "(elisp) Key Binding Conventions") says C-c [^[:alpha:]] is reserved for major modes (paraphrasing). IIUC this binding for revert-buffer would be global, so the C-x map would make more sense? I think? C-x g would make the most sense under that assumption; unfortunately magit-status has been using that for years now…