From unknown Tue Jun 17 20:19:45 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#46151 <46151@debbugs.gnu.org> To: bug#46151 <46151@debbugs.gnu.org> Subject: Status: 28.0.50; Set revert-buffer-function in shell command output buffers Reply-To: bug#46151 <46151@debbugs.gnu.org> Date: Wed, 18 Jun 2025 03:19:45 +0000 retitle 46151 28.0.50; Set revert-buffer-function in shell command output b= uffers reassign 46151 emacs submitter 46151 Sean Whitton severity 46151 normal tag 46151 fixed patch thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 28 01:22:17 2021 Received: (at submit) by debbugs.gnu.org; 28 Jan 2021 06:22:18 +0000 Received: from localhost ([127.0.0.1]:46844 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l50h7-0000Br-Lf for submit@debbugs.gnu.org; Thu, 28 Jan 2021 01:22:17 -0500 Received: from lists.gnu.org ([209.51.188.17]:55552) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l50h6-0000Bk-AE for submit@debbugs.gnu.org; Thu, 28 Jan 2021 01:22:16 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:35244) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l50h6-0004Pr-4D for bug-gnu-emacs@gnu.org; Thu, 28 Jan 2021 01:22:16 -0500 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:54979) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l50h4-0006ej-5D for bug-gnu-emacs@gnu.org; Thu, 28 Jan 2021 01:22:15 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 1BED55C018D for ; Thu, 28 Jan 2021 01:22:12 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 28 Jan 2021 01:22:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spwhitton.name; h=from:to:subject:date:message-id:mime-version:content-type; s= fm2; bh=40pVrtwXpnlb01VbTDR14bEIVTP5E9VI+mT7yDikdhs=; b=cynXKRNM IfRvKM4jkhO7lL1+DVBEBd5H5rTfctd1iJf4Zk3VERpzSvemGU0ZCuux3lbwZXpB LHEs2qkLph6Fegbk18zNfy6EH4XUN5a+N42hx6c/y9IZGx0GAEu9rqFPdSH2BSKP Vo4/XH/txDZYMKo8jRxr/NSnnJHSU1d4uY4Msor48cXrs6rynutIwWy/GonbQ1Ol H6Absvq9hEn1Pbf2Q6/eHv33JQVE5qdocfjW0iPdiWtFdfuOHgnVihkmq35Yz7kP ddl2OZepw4lD7t0bIBu8kgtzy4OgbXyy6RFasKRTMScWkp2sr++cRdCA7d1Vm4Fk IKNnxkM1IwOIKQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=40pVrtwXpnlb01VbTDR14bEIVTP5E 9VI+mT7yDikdhs=; b=JtQ8gKdrC8YTZUovYrTYj57qosnP4JkpOpka1cHxtNCSO 92Vnl/ncMef3CxspKPFmRm7Dw/PfjjUFx4uVPXdNltJoj5NL/Cytvn2RQgN7qsPi oUZ+G9FZ8L2V8E036WDou5iZbkNyt7RFUfZMXH3H8bLDe2bGcRpAt6We+A2kf45c lPEXsWYoCpNdHMlzbWvH+xa4OggdzjwswEdLxwJCXKssRKfvBfNHohIfinY+jooY 4bokaWf4nPqLt2VN6BtJLSunBQmyKDisFYY4YsNjecJFxnn0De9taVi2ehcC6z4B I5Mh5y3RtUcInUKAsGP4giJvkwLgIqgY5GR6JrKoQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdelgdelvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkfggtgesmhdtreertddttd enucfhrhhomhepufgvrghnucghhhhithhtohhnuceoshhpfihhihhtthhonhesshhpfihh ihhtthhonhdrnhgrmhgvqeenucggtffrrghtthgvrhhnpeelheektefgffdvieefleekud dtveeltdeutddvffffkeehveefffffhfffffejfeenucffohhmrghinhepshhtrggtkhgv gigthhgrnhhgvgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpehsphifhhhithhtohhnsehsphifhhhithhtohhnrdhnrghmvg X-ME-Proxy: From: Sean Whitton To: bug-gnu-emacs@gnu.org Subject: 28.0.50; Set revert-buffer-function in shell command output buffers Date: Wed, 27 Jan 2021 23:22:53 -0700 Message-ID: <87lfcdd1he.fsf@melete.silentflame.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=66.111.4.26; envelope-from=spwhitton@spwhitton.name; helo=out2-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) --=-=-= Content-Type: text/plain Inspired by Stefan's comment at [1] I came up with this patch to set revert-buffer-function in shell command buffers. I have a binding for revert-buffer which is nicer to press than M-! M-p RET or M-& M-p RET when repeatedly editing and re-running programs and scripts. [1] https://emacs.stackexchange.com/questions/35421/refresh-async-shell-command-buffer -- Sean Whitton --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-Set-revert-buffer-function-in-shell-command-output-b.patch >From 2f121e3d540bd18bd39829545ef3b07178501958 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Wed, 27 Jan 2021 23:18:03 -0700 Subject: [PATCH] Set revert-buffer-function in shell command output buffers * simple.el (shell-command, shell-command-on-region): Set revert-buffer-function in shell command output buffers. --- lisp/simple.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lisp/simple.el b/lisp/simple.el index e82b138b0d..24e3b4a7f5 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -3991,6 +3991,9 @@ impose the use of a shell (with its need to quote arguments)." (start-process-shell-command "Shell" buffer command))) (setq mode-line-process '(":%s")) (shell-mode) + (setq revert-buffer-function + (lambda (&rest _) + (async-shell-command command (current-buffer)))) (set-process-sentinel proc #'shell-command-sentinel) ;; Use the comint filter for proper handling of ;; carriage motion (see comint-inhibit-carriage-motion). @@ -4257,6 +4260,9 @@ characters." buffer)))) ;; Report the output. (with-current-buffer buffer + (setq revert-buffer-function + (lambda (&rest _) + (shell-command command))) (setq mode-line-process (cond ((null exit-status) " - Error") -- 2.29.2 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 28 07:23:06 2021 Received: (at control) by debbugs.gnu.org; 28 Jan 2021 12:23:06 +0000 Received: from localhost ([127.0.0.1]:47463 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l56KI-00038Y-1t for submit@debbugs.gnu.org; Thu, 28 Jan 2021 07:23:06 -0500 Received: from quimby.gnus.org ([95.216.78.240]:33856) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l56KH-00037t-8Y for control@debbugs.gnu.org; Thu, 28 Jan 2021 07:23:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=b2CCFlHszz6rEpLr/oWF0u/PHLzi+9xLfDqrv0c33NM=; b=PDnR2gX7cGTIEG25p0/qtoikmT ERUdBMef8qWQAE98IMXrjIvkpzZr8DiySfwOBqXOhAO9Axf6jwCP3cFl4Z1KeO7F2t/vFcIBXnpwz d8vgUx5s40PrD9Na8Wv/j4G0USAdla9yIHGpIp4dqygWFxobpioTjJN/+sjcTYX1H4KM=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l56K8-0007rR-VY for control@debbugs.gnu.org; Thu, 28 Jan 2021 13:22:59 +0100 Date: Thu, 28 Jan 2021 13:22:55 +0100 Message-Id: <87y2gdxnc0.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #46151 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 46151 + patch quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 46151 + patch quit From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 29 00:52:22 2021 Received: (at 46151) by debbugs.gnu.org; 29 Jan 2021 05:52:22 +0000 Received: from localhost ([127.0.0.1]:50872 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5Mhh-0004WP-TJ for submit@debbugs.gnu.org; Fri, 29 Jan 2021 00:52:22 -0500 Received: from quimby.gnus.org ([95.216.78.240]:41868) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5Mhc-0004Vx-EQ for 46151@debbugs.gnu.org; Fri, 29 Jan 2021 00:52:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=OMzEJ+VT3qMMX8TIA73Xo7OjWMzLDyyOcR2+HWCDv0g=; b=kNYoN8Li2rQRyazPuxvDooPqG2 1FUB0eWnKoytD8zEUY88iRPfzn1mO/46H8RoIr6t+51WKpZRmxr5ObcGCFZ0fwpDeI9eu8Ar1Rr8Z lOX8ywd3s3MrrxpNplHEadKKZ3Z828EFKWWCf8pnpkwnz+27N0bSrb+WP+PG4sBmwRwE=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l5MhT-0008Hq-HF; Fri, 29 Jan 2021 06:52:10 +0100 From: Lars Ingebrigtsen To: Sean Whitton Subject: Re: bug#46151: 28.0.50; Set revert-buffer-function in shell command output buffers References: <87lfcdd1he.fsf@melete.silentflame.com> X-Now-Playing: Thee Oh Sees's _Grave Blockers_: "Drone #3" Date: Fri, 29 Jan 2021 06:52:06 +0100 In-Reply-To: <87lfcdd1he.fsf@melete.silentflame.com> (Sean Whitton's message of "Wed, 27 Jan 2021 23:22:53 -0700") Message-ID: <87im7gward.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Sean Whitton writes: > Inspired by Stefan's comment at [1] I came up with this patch to set > revert-buffer-function in shell command buffers. Nice; I've applied your patch to Emacs 28. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 46151 Cc: 46151@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Sean Whitton writes: > Inspired by Stefan's comment at [1] I came up with this patch to set > revert-buffer-function in shell command buffers. Nice; I've applied your patch to Emacs 28. > I have a binding for revert-buffer which is nicer to press than M-! M-p > RET or M-& M-p RET when repeatedly editing and re-running programs and > scripts. Would it make sense to just define a tiny mode that just defines the `g' command to revert and use that in these buffers? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 29 02:05:03 2021 Received: (at 46151) by debbugs.gnu.org; 29 Jan 2021 07:05:03 +0000 Received: from localhost ([127.0.0.1]:50999 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5Nq2-0006aT-Sj for submit@debbugs.gnu.org; Fri, 29 Jan 2021 02:05:03 -0500 Received: from new2-smtp.messagingengine.com ([66.111.4.224]:42385) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5Npz-0006Zu-TR for 46151@debbugs.gnu.org; Fri, 29 Jan 2021 02:05:01 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id A2F30580670; Fri, 29 Jan 2021 02:04:54 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Fri, 29 Jan 2021 02:04:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spwhitton.name; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm2; bh=O1tSzwMSWTu3BO71u92/dhJqDR S3nzcjGRr+eDcPIO4=; b=Q+lUFZuRZ7k3OOaaTKJqfnO322fVKMGd6P/YWBo4E6 /73u8Mh4NsAj7IGycjhDsk3yALpa9nlnuYTmLqcpCfyxsrDkdTG8A4/hIbOdq6aZ o9eR/1qi8R2qThSWeqdPthyFvDa4V+n7yaxZ6XEyAUDEgz4rf5RYA9auMJPcTuGL NyZz0jw+e6PYVlfTEGHVWLIDay15GC8hCYkeeIvWGrU1HembQC2ZuKm8Ur9LH6nF sZWzg6U6kjov82gZ+dqyx9LETJt64vH33PtmEM7UlAS9ebalTwPMfJhdiFsThXKG GiE+RuEquCqp7L7yKcLjI93nP53mQEK4i50YYBqs1TBw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=O1tSzw MSWTu3BO71u92/dhJqDRS3nzcjGRr+eDcPIO4=; b=JcINwGcMLTherHjDwmG4xo ajCS6qPzpvjR2xW+x1ulvlcQ0XAh9BBb9Mayd5lW4X6EFo3LM/59+Tn2594Zsy2f ZoeJqkQA5Ut4PL5ystK4iEvRG7co0xJHOoWocTwgdUiZioqYRxnuuUn7mfDgI9Zo 0/iTNujat96ysH4Mx93mGsgOwSvPxoi9M2dqBKhpwTgB3GRfbvQlBn8CrNaxgBaO 69HvnPROJBOVC07kMrJ5PGe/W15kZUAum8h2b9u8eGoskCRKaoU6EJzXSJra2mhI w8PcIzAFpWnwMmWl2tfAcro2VtN14JUTfEBDbVj63WS/PiBdWDD6h4b181ZP5LPA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfedugdelkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenog fhohhrsghiugguvghnufhorhhtjfgurhculdehtddtmdenucfjughrpefhvffujghffffk gggtsehmtderredttddtnecuhfhrohhmpefuvggrnhcuhghhihhtthhonhcuoehsphifhh hithhtohhnsehsphifhhhithhtohhnrdhnrghmvgeqnecuggftrfgrthhtvghrnhepieff hfffudfhjefgfeeuleeutdevtdektdehiefgieetleevveekgeduhedtudefnecuhfhorh gsihguuggvnhfuohhrthfjughrpeffhffkuffvgggjtghfsehmtderredttddtnecuvehl uhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepshhpfihhihhtth honhesshhpfihhihhtthhonhdrnhgrmhgv X-ME-Proxy: From: Sean Whitton To: Lars Ingebrigtsen Subject: Re: bug#46151: 28.0.50; Set revert-buffer-function in shell command output buffers In-Reply-To: <87im7gward.fsf@gnus.org> References: <87lfcdd1he.fsf@melete.silentflame.com> <87im7gward.fsf@gnus.org> Date: Fri, 29 Jan 2021 00:05:37 -0700 Message-ID: <87wnvwte7y.fsf@melete.silentflame.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 46151 Cc: 46151@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain On Fri 29 Jan 2021 at 06:52AM +01, Lars Ingebrigtsen wrote: > Sean Whitton writes: > >> Inspired by Stefan's comment at [1] I came up with this patch to set >> revert-buffer-function in shell command buffers. > > Nice; I've applied your patch to Emacs 28. Thanks for taking a look! I realised that my patch needs to setq-local not just setq. Indeed, my previous patch breaks revert-buffer once you've run a shell command... Attached is a fix. >> I have a binding for revert-buffer which is nicer to press than M-! M-p >> RET or M-& M-p RET when repeatedly editing and re-running programs and >> scripts. > > Would it make sense to just define a tiny mode that just defines the `g' > command to revert and use that in these buffers? For M-!, yes, that would be useful and simple. For M-&, the mode would need to be activated only once the command had finished running, as otherwise 'g' should be sent to the inferior process. Not hard to do that either. I take it a minor mode is more appropriate than a major mode for this? If so, I can come up with a patch adding that to simple.el. -- Sean Whitton --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-Fix-previous-commit-regarding-revert-buffer-function.patch >From 21499b416759b77a5d0ef41cb4f68932d36b9b63 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Fri, 29 Jan 2021 00:02:08 -0700 Subject: [PATCH] ; Fix previous commit regarding revert-buffer-function * simple.el (shell-command, shell-command-on-region): Set revert-buffer-function buffer-locally, not globally. Also, avoid an unnecessary call to (current-buffer) by taking advantage of the closure. --- lisp/simple.el | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lisp/simple.el b/lisp/simple.el index 64ee042135..742fc5004d 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -3991,9 +3991,9 @@ impose the use of a shell (with its need to quote arguments)." (start-process-shell-command "Shell" buffer command))) (setq mode-line-process '(":%s")) (shell-mode) - (setq revert-buffer-function - (lambda (&rest _) - (async-shell-command command (current-buffer)))) + (setq-local revert-buffer-function + (lambda (&rest _) + (async-shell-command command buffer))) (set-process-sentinel proc #'shell-command-sentinel) ;; Use the comint filter for proper handling of ;; carriage motion (see comint-inhibit-carriage-motion). @@ -4260,9 +4260,9 @@ characters." buffer)))) ;; Report the output. (with-current-buffer buffer - (setq revert-buffer-function - (lambda (&rest _) - (shell-command command))) + (setq-local revert-buffer-function + (lambda (&rest _) + (shell-command command))) (setq mode-line-process (cond ((null exit-status) " - Error") -- 2.29.2 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 29 02:21:55 2021 Received: (at 46151) by debbugs.gnu.org; 29 Jan 2021 07:21:55 +0000 Received: from localhost ([127.0.0.1]:51042 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5O6M-0000gZ-Qb for submit@debbugs.gnu.org; Fri, 29 Jan 2021 02:21:55 -0500 Received: from quimby.gnus.org ([95.216.78.240]:42528) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5O6H-0000gI-QF for 46151@debbugs.gnu.org; Fri, 29 Jan 2021 02:21:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=6Z52trkCZs3yLLsJDe7KbauCEy28l0a0URMfHgAL33g=; b=E4yU6qvEWS8rX/3l6BwiM8IDfe sPJqlZgVYmfhDv3Y6Dh65aaqWjVIswv7DCCUYOPcaAzvlkF1stmmGaVp/weLxNdrk9FCxpkuOAkLl IPmV+uzYbsd45+8X9kthGEfc7B6Y88EiGYf9qFLNIYk1A2VCkb2R8F6fNYQTvZH+VUes=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l5O69-0000YP-06; Fri, 29 Jan 2021 08:21:43 +0100 From: Lars Ingebrigtsen To: Sean Whitton Subject: Re: bug#46151: 28.0.50; Set revert-buffer-function in shell command output buffers References: <87lfcdd1he.fsf@melete.silentflame.com> <87im7gward.fsf@gnus.org> <87wnvwte7y.fsf@melete.silentflame.com> X-Now-Playing: Black Stereo Faith's _Black Stereo Faith_: "Tears" Date: Fri, 29 Jan 2021 08:21:39 +0100 In-Reply-To: <87wnvwte7y.fsf@melete.silentflame.com> (Sean Whitton's message of "Fri, 29 Jan 2021 00:05:37 -0700") Message-ID: <87a6ssus1o.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Sean Whitton writes: > I realised that my patch needs to setq-local not just setq. Indeed, my > previous patch breaks revert-buffer once you've run a shell command... > > Attached is a fix. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 46151 Cc: 46151@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Sean Whitton writes: > I realised that my patch needs to setq-local not just setq. Indeed, my > previous patch breaks revert-buffer once you've run a shell command... > > Attached is a fix. Heh, that explains why my Emacs was behaving so oddly. :-) Fix now pushed. >> Would it make sense to just define a tiny mode that just defines the `g' >> command to revert and use that in these buffers? > > For M-!, yes, that would be useful and simple. > > For M-&, the mode would need to be activated only once the command had > finished running, as otherwise 'g' should be sent to the inferior > process. Not hard to do that either. > > I take it a minor mode is more appropriate than a major mode for this? > If so, I can come up with a patch adding that to simple.el. Since M-! and M-& use different modes (fundamental and shell), a minor mode is probably the best, I guess. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 29 13:32:27 2021 Received: (at 46151) by debbugs.gnu.org; 29 Jan 2021 18:32:27 +0000 Received: from localhost ([127.0.0.1]:52939 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5YZG-0006Fo-RY for submit@debbugs.gnu.org; Fri, 29 Jan 2021 13:32:27 -0500 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:52715) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5YZB-0006FX-ER for 46151@debbugs.gnu.org; Fri, 29 Jan 2021 13:32:25 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 60A18EB6; Fri, 29 Jan 2021 13:32:15 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Fri, 29 Jan 2021 13:32:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spwhitton.name; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm2; bh=HZHUMz6GLdksraGxQK3w09Mhmz 6ZkSBujWpR7M9QmHU=; b=JEbiAwtGIeY1Oyiak8w27Bgbh3R1UD+YWmlfyW0uwW 2GAdZSfjb/xaHeJeXy+Drwt7ZwZCtcSqGxlImnIo/Jg0pMo2Slla50E8+V8Ju+3J ktjvY3L87+J9JbHi5fUrhLb1AxXCKO0QML0XP3b0TwGZfzNits68nJ/O68l923QA 3kqTPl+EQBPgiOTInuGctUzPmWLrPssiuDtzvldJGie004zY8f9s8XzoCTCy0NbL Z11CmN4V91q7a/tJzgXV/pDpNMM++keh1HWr0maHLq28HXgSxu2b8sQl5X2L784/ pVJFXlWbfFDVVUGI47gb+zlzEy4qR1FYtRCC2K97IzxA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=HZHUMz 6GLdksraGxQK3w09Mhmz6ZkSBujWpR7M9QmHU=; b=Z9CQvSKeKvo5JEl6M4Rqwr T3qcXCNZKIqSTBl+R1OdOPMJ8SggCoZ3r4HFEcLsQhNw8N4ICkK0/C4HpxiTwgWq xTXUkklgg8XzzCYqUgiD8/GX5l4dM+DUy7qDMg7+D5D/jwlEtzkyryDmEtosOrcu d2B9q+AFijbdHs+2vRJEIXTc4XZXHtvO0t17Nh0qnKr0C7+gBFesru4LuObF3E70 aGSGlyQ6O8BNj8zXml9EfOjz5IGEHXMOUNYAFaFBriSA8K45VWiO7BNkpDXtXOq8 izP2pXQCJDY7cPUSAf9YmgxehTSxgbnjaPGLLkO9m++a6nzM4YN9b9Bjh6Ad0QBw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfedvgdduudegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufgjfhffkfggtgesthdtredttddttdenucfhrhhomhepufgvrghnucgh hhhithhtohhnuceoshhpfihhihhtthhonhesshhpfihhihhtthhonhdrnhgrmhgvqeenuc ggtffrrghtthgvrhhnpeegtddvheegfffhffdvfeefhffgjefflefhteevffffkeetgfdt jedtiedvtdevheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehsphifhhhithhtohhnsehsphifhhhithhtohhnrdhnrghmvg X-ME-Proxy: From: Sean Whitton To: Lars Ingebrigtsen Subject: Re: bug#46151: 28.0.50; Set revert-buffer-function in shell command output buffers In-Reply-To: <87a6ssus1o.fsf@gnus.org> References: <87lfcdd1he.fsf@melete.silentflame.com> <87im7gward.fsf@gnus.org> <87wnvwte7y.fsf@melete.silentflame.com> <87a6ssus1o.fsf@gnus.org> Date: Fri, 29 Jan 2021 11:32:58 -0700 Message-ID: <87tuqztwyt.fsf@melete.silentflame.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 46151 Cc: 46151@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hello, On Fri 29 Jan 2021 at 08:21AM +01, Lars Ingebrigtsen wrote: >>> Would it make sense to just define a tiny mode that just defines the `g' >>> command to revert and use that in these buffers? >> >> For M-!, yes, that would be useful and simple. >> >> For M-&, the mode would need to be activated only once the command had >> finished running, as otherwise 'g' should be sent to the inferior >> process. Not hard to do that either. >> >> I take it a minor mode is more appropriate than a major mode for this? >> If so, I can come up with a patch adding that to simple.el. > > Since M-! and M-& use different modes (fundamental and shell), a minor > mode is probably the best, I guess. I was thinking about this some more and now I'm not so sure. Do we really want exactly one letter key not to be self-inserting in those buffers? Currently the command output is editable in ordinary ways, so it would be reasonable to edit the command output by typing something, then kill some text after you've edited it, and put it elsewhere. This sort of thing could be pretty annoying if you happened to want to type the letter 'g' and thereby reran the command .. How about binding C-c C-r instead of g? The mnemonic would be Reexecute. In *Async Shell Command* buffers this already has an inherited binding but I don't believe it is one that does anything useful in those buffers, so should be fine to override. An alternative would be to put the whole buffer in special-mode, which would bind 'g', and make shell command output more like M-x compile buffers. Could have a defcustom to turn this off. -- Sean Whitton From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 30 01:18:36 2021 Received: (at 46151) by debbugs.gnu.org; 30 Jan 2021 06:18:36 +0000 Received: from localhost ([127.0.0.1]:53359 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5jad-00039o-Sd for submit@debbugs.gnu.org; Sat, 30 Jan 2021 01:18:36 -0500 Received: from quimby.gnus.org ([95.216.78.240]:52028) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5jac-00039W-46 for 46151@debbugs.gnu.org; Sat, 30 Jan 2021 01:18:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=jRjQJps13VOiP4yJ9IpWcYZCc2xmfKtDhJpXef+9rgw=; b=owl4pigAcPCXM3PTrqvLyTDpoi tJdhbbhfV/XbnuMTqHTYRzfLz3CYlvvwx+gnIhdua0J2kiT/C9yKWaOoqTzscUGM/QjuyimyJns4y GCdoQH5hxOYdO0dpa3VoVVQnJxj8SV6q3q3cJrocfaaSRnW/yVFxz2w9ZAIJraQNJOno=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l5jaL-0004bG-90; Sat, 30 Jan 2021 07:18:27 +0100 From: Lars Ingebrigtsen To: Sean Whitton Subject: Re: bug#46151: 28.0.50; Set revert-buffer-function in shell command output buffers References: <87lfcdd1he.fsf@melete.silentflame.com> <87im7gward.fsf@gnus.org> <87wnvwte7y.fsf@melete.silentflame.com> <87a6ssus1o.fsf@gnus.org> <87tuqztwyt.fsf@melete.silentflame.com> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAD1BMVEXcu6+qbl9eLioN BAb///8QCg2MAAAAAWJLR0QEj2jZUQAAAAd0SU1FB+UBHgYFForVFCsAAAGZSURBVDjLhZKLkcMg DESDrwEkGohEA0Hqv7fbBX+Sm3hOmUmIHystax6P/6rM7zqX4o6FoIrIJkc9NDJf56ZNauHjio9o PnfwwNM6iSpg0UMBTeUCoBvJqVi/VYr3cAzln0WKTSOemSRUz5kTlFKSFUK7HAtQjYLSJ3Gt1wwp kGguScdwqTxGvUD0dAKeCCONTqomnnp3f16NjRapcBwyZ6u2+tZakUW4H5Esi5BUKgAMgK62HQyk 0rqpuy9F20Ggq6ZBINKpWGeKlginuM5EgvksTwKAcIx/wxk7ZnMewLMMLDwgagAbAcLacmzhpmYa wleLM3nCi+T4ycDCxJSgrdQycjS2h9z7rqAndp6Je46lKNw1ih0BzJHHDHdkuT+GXfM8XHk5QUQf EyAS95ADwEU06y++A1yYHLISSIV5nUCRUk8c61A4bglBD+bOIM4KQyRwaWziPU9bwVbYPjf7myLp in1Gn4d6rwVgJd9nXMBZ3wAM6neAIM878RecB/wEN8PnPbkD0W9Atjvgn6Dk18Klvlr3T3BTvw+Q kZeiVD5bAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIxLTAxLTMwVDA2OjA1OjIyKzAwOjAwDLrbIwAA ACV0RVh0ZGF0ZTptb2RpZnkAMjAyMS0wMS0zMFQwNjowNToyMiswMDowMH3nY58AAAAASUVORK5C YII= X-Now-Playing: Simon & Garfunkel's _Live 1969_: "Bridge Over Troubled Water" Date: Sat, 30 Jan 2021 07:18:15 +0100 In-Reply-To: <87tuqztwyt.fsf@melete.silentflame.com> (Sean Whitton's message of "Fri, 29 Jan 2021 11:32:58 -0700") Message-ID: <87sg6j0wyg.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Sean Whitton writes: > This sort of thing could be pretty annoying if you happened to want to > type the letter 'g' and thereby reran the command .. Indeed -- I was thinking about the `M-!' case only, and whether we'd want to change the mode of the resulting buffer to a new mode that inherits from `special-mode' (and `special-mode' defines the `g' [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 46151 Cc: 46151@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Sean Whitton writes: > This sort of thing could be pretty annoying if you happened to want to > type the letter 'g' and thereby reran the command .. Indeed -- I was thinking about the `M-!' case only, and whether we'd want to change the mode of the resulting buffer to a new mode that inherits from `special-mode' (and `special-mode' defines the `g' keystroke already). That's not appropriate for `M-&', I guess, which is in `shell-mode'... but is that a good mode for command output, really? > How about binding C-c C-r instead of g? The mnemonic would be > Reexecute. In *Async Shell Command* buffers this already has an > inherited binding but I don't believe it is one that does anything > useful in those buffers, so should be fine to override. > > An alternative would be to put the whole buffer in special-mode, which > would bind 'g', and make shell command output more like M-x compile > buffers. Could have a defcustom to turn this off. Indeed. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 30 13:53:40 2021 Received: (at 46151) by debbugs.gnu.org; 30 Jan 2021 18:53:40 +0000 Received: from localhost ([127.0.0.1]:55807 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5vNM-0001et-9P for submit@debbugs.gnu.org; Sat, 30 Jan 2021 13:53:40 -0500 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:45119) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5vNK-0001ed-2v for 46151@debbugs.gnu.org; Sat, 30 Jan 2021 13:53:39 -0500 X-Originating-IP: 91.129.108.204 Received: from mail.gandi.net (m91-129-108-204.cust.tele2.ee [91.129.108.204]) (Authenticated sender: juri@linkov.net) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id 4CFE91BF207; Sat, 30 Jan 2021 18:53:29 +0000 (UTC) From: Juri Linkov To: Sean Whitton Subject: Re: bug#46151: 28.0.50; Set revert-buffer-function in shell command output buffers Organization: LINKOV.NET References: <87lfcdd1he.fsf@melete.silentflame.com> <87im7gward.fsf@gnus.org> <87wnvwte7y.fsf@melete.silentflame.com> <87a6ssus1o.fsf@gnus.org> <87tuqztwyt.fsf@melete.silentflame.com> Date: Sat, 30 Jan 2021 20:36:51 +0200 In-Reply-To: <87tuqztwyt.fsf@melete.silentflame.com> (Sean Whitton's message of "Fri, 29 Jan 2021 11:32:58 -0700") Message-ID: <87bld6uzf8.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 46151 Cc: Lars Ingebrigtsen , 46151@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > How about binding C-c C-r instead of g? The mnemonic would be > Reexecute. In *Async Shell Command* buffers this already has an > inherited binding but I don't believe it is one that does anything > useful in those buffers, so should be fine to override. To avoid all possible conflicts, this looks harmless: 'C-c g'. From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 30 16:01:24 2021 Received: (at 46151) by debbugs.gnu.org; 30 Jan 2021 21:01:24 +0000 Received: from localhost ([127.0.0.1]:55894 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5xMw-0006mq-DM for submit@debbugs.gnu.org; Sat, 30 Jan 2021 16:01:24 -0500 Received: from aserp2130.oracle.com ([141.146.126.79]:37042) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l5xMt-0006mc-Fv for 46151@debbugs.gnu.org; Sat, 30 Jan 2021 16:01:21 -0500 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 10UL102V089658; Sat, 30 Jan 2021 21:01:09 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2020-01-29; bh=Qa2FNXq/yFvawYPmO/cA2kEziaRNvlHJABfgQUBtOy0=; b=qZQg2dgxsjnLtyjo/HVBQfCkzAf2Ha9+iUKbwmSHwuH4GJoyKXUNS/GQWRAN2zQzxs/f +XYEVitVUS56yahmfm9CQ29JUCJrUU/830ibg3cJoeFDWVAfrOLogiRFD2kMKyxvP6NK yQ2eIibWtpXJ4qn5GEZUImkWukoSVuS1OV/MV5bhiZ/98BjhkakhRP3UIcRN5uVAM5Mj P8Kl8Bnjll7UHlsFsqU6mm41qQNIOEU5rd2/ZdwfYnvsxBMuF/InbGfOE9yZRAFdPJn9 wFpGV6IqW7vR6XAJlG3mmOZO9d3Bls6qSBhdgc9DRY8M7rxZIVYGE5nOSib3eQT62oJ5 Qw== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by aserp2130.oracle.com with ESMTP id 36cvyahbjx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 30 Jan 2021 21:01:09 +0000 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 10UKssS1021858; Sat, 30 Jan 2021 21:01:08 GMT Received: from nam11-co1-obe.outbound.protection.outlook.com (mail-co1nam11lp2170.outbound.protection.outlook.com [104.47.56.170]) by aserp3020.oracle.com with ESMTP id 36cy902vt7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 30 Jan 2021 21:01:08 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=V2WN+As9hXRE5nC46d3v0GfS16kH1vd8bfDRLHNa/SJR72MEzCdognhRIG0vhpZGSYl+mNmhQe3zPS/PjWUhZSF8GWyfeCse+KEI5S+fM/eIysZdOlnK3sWL6YwsNsEW2fgk3xZkRQ8mHUGGRuHynuiR644/hRrBYgx4GhmClhJ8YbG+vwtYrDYLpAZFL43KaAWUyWOZMcu4wm32ZlYclYGWdxz65FadxsRm2CuH+eYJrvOgpz7VT/QGx76XJg/VDtPFpKh0N5bLC7qNjtHR+BYFSPpAm7l+xnsmWaAfu3F4hcCGSyfN3fQdGSZN4QY4dTne9pTYTG6N43l/s1vhSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Qa2FNXq/yFvawYPmO/cA2kEziaRNvlHJABfgQUBtOy0=; b=ViT6bPmsQMPGoAUrQZ0RvC68d3Vd81+Bb/F5SEPpAo6psBV+hdF+o5xSTo82KN59JA91QGnMakBSlhc7LhgOvcxdsE4Al5p+CKFBZT2dnxgN1nPNeXss3lAs4V9ab6ru0BRD+tt0Tst5zoFZRF+Xh38XPiE00+zQ8uwS3cqNhKccN5Lv7ggQBDO6DM7p/a6KCL5obbvGLgkaF8Y1069eBxL58qiLPZzJHEP5xt9MLCbyX6pxpKX8s1ZmE06pRFjdgoXjqaAv27MUQ1JANQa6olfyY5McvK+P7tjI3KlByLIhNYYhMPPoA5xSFY8Px/xHndRSg0Mzum/9kOp/Wn0P3A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Qa2FNXq/yFvawYPmO/cA2kEziaRNvlHJABfgQUBtOy0=; b=sNTckM1u+9Df2vk5Fce7AOf+iUNmPg+fdQ0MC5xsC6UtUxaMc2rXaO0bEnLjBBe6vtJGlNPJ2TKPcIFH77aqWCzE3Ux6b9gi6JHXBwwXxjK9P0NbB/UF9A7wH8M89u4hyG2venK6msiHR9XLSObnC6mrKQvkUFJJE8n2qtyMCYs= Received: from SA2PR10MB4474.namprd10.prod.outlook.com (2603:10b6:806:11b::15) by SN6PR10MB2589.namprd10.prod.outlook.com (2603:10b6:805:4e::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3805.19; Sat, 30 Jan 2021 21:01:05 +0000 Received: from SA2PR10MB4474.namprd10.prod.outlook.com ([fe80::dc4d:9cd0:2010:daa2]) by SA2PR10MB4474.namprd10.prod.outlook.com ([fe80::dc4d:9cd0:2010:daa2%7]) with mapi id 15.20.3805.024; Sat, 30 Jan 2021 21:01:05 +0000 From: Drew Adams To: Juri Linkov , Sean Whitton Subject: RE: [External] : bug#46151: 28.0.50; Set revert-buffer-function in shell command output buffers Thread-Topic: [External] : bug#46151: 28.0.50; Set revert-buffer-function in shell command output buffers Thread-Index: AQHW9zmMfwPGG6N9sEy0fJ+d1vSP0apApzfg Date: Sat, 30 Jan 2021 21:01:05 +0000 Message-ID: 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> In-Reply-To: <87bld6uzf8.fsf@mail.linkov.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: linkov.net; dkim=none (message not signed) header.d=none;linkov.net; dmarc=none action=none header.from=oracle.com; x-originating-ip: [73.170.83.28] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 50c8c4ec-9c30-4b9e-3dea-08d8c56228ea x-ms-traffictypediagnostic: SN6PR10MB2589: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5797; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: pqxyI0yfqjtmhNP/KZtkkmhyjF6FRzz2dwJl7fOZyfLh9a6XvsNWVxaAGyDC8MV+y17Z9OIw0XnDDNRBH2nkrxJd1Mb4HuDLuN1/D0Vyx13wKQRQbIDD1hOV8DDVXHu+XI+F/R19itW+nyFp6DRPTsPAMhGRvGY3gmJXIE+eJYxYoucYRJXFrbO3Rii2vIhi9d1HPcu4n+cAuyPrUnX8KS0O52+zmNtpjirw+ZOWjheyQm3dLtlPEuskxlbfaP7hnGtkxFbyVLxEdq7JqUJx5zvC3sQ1En2GhsIBiCTvUzOG7he6y0923Jy9YRhtI8e68xBBPsHPMYT+n8gtAIprRB9E6+/VTz4Fy6aO++WQYgmrpnCWW0EUFIGHsjcxNOPZ3ETxoR065I5VHKYFCVodm4HcyrE+u2Hk9bCjh4txZbva3Wuiz0EbmCj/XEhTCRWCpc5GgZlvDGd8duHJAJ8LHmW94T7H0JEcwMPEBFyjrsj1aMDcmPYDdOp7KiRzZeMu/hQI9zO385oV3hpFFKK4Cw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SA2PR10MB4474.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(39860400002)(136003)(366004)(396003)(376002)(346002)(4744005)(71200400001)(83380400001)(76116006)(2906002)(55016002)(66556008)(66476007)(52536014)(478600001)(66946007)(64756008)(4326008)(9686003)(5660300002)(66446008)(26005)(110136005)(8936002)(33656002)(6506007)(186003)(7696005)(44832011)(8676002)(86362001)(54906003)(316002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?CpHu7TK4R+sVHBqBscD1GSg10VuIBlwIE6g136va2tekHXAyNwAQ6EX6cIJP?= =?us-ascii?Q?sDHFV3xpvXVtzucURCRfhvhOUZDByPb7okV3Sh6bmLgxNpbzBvdbW+O0zrGx?= =?us-ascii?Q?jEm0+QQfs5o0jSdmvLZtIsA1cKfcSaEb7QD/k2OifTu8LrHxfJ9Dvb33vDPp?= =?us-ascii?Q?QNe0oXXz2XwRG+uwknytWqG47VpDVQh5zPNzTQRfIfM+LYkbq+GQOiRVt0Kh?= =?us-ascii?Q?/oR3D5uOOAQS0qCepuy9zNObE+5RPYzQwNlHg7VMHh3qeI00aZbZVEWY22+G?= =?us-ascii?Q?Zryz0A6G6JTeeLQ7mxT8mzxCnMroCf+0VvB3NnbIC4Gx9TK1W4wf4+bK/VYa?= =?us-ascii?Q?8c1lbLI7yT2GoJZ6nl5Xgzb7H+KuIG1nMDxIaLo1z/CnvlP4Vh5iERhW2lr6?= =?us-ascii?Q?0+hKaPkVx+Hc5zZj3Skiyp6jg+fm/K+JMppqWsLcEk4we0BV5ZvsTCxUne7p?= =?us-ascii?Q?cBzJKOqoILFpQFDYR6w9cp9SAYCTD94bK+XH/NTpZ63bu8rvd7jr26Zt08Ay?= =?us-ascii?Q?YCRLe7ar6nV28wWb4jvYu3WKCLr1HIHqkACBbTYkfWMSkmLmVyNSg8bGYHnx?= =?us-ascii?Q?bjBoJojqdpgRGXQTmpf79FwsMGSR5UILl4viz0fjiGjXjD6UHjrKMQ3js8fW?= =?us-ascii?Q?TryIYRe9R8I7z2M1pUW3ulJiGp4SeG1bCN8B/Y8lVlhIIcLbp1dVNSVB3VIy?= =?us-ascii?Q?qhfkLP4M8Z0VWGZrqoej0bLKeGz6QdvviC91+76D8zH+7H/1wL8BF37M90+O?= =?us-ascii?Q?L2lUiTaNtU9RQIRroHiBnf6f7GqsMNSdXKFaGockRnJ+PjT9IEwN39sp0bXb?= =?us-ascii?Q?/VkG6M7rr19loUnIhBswWFD/TPJRDVx/gC13+lKMg3H1MoAERni6aFUVcY3z?= =?us-ascii?Q?sDAkUOfYd4etxc1BQqmvAE0SbpnJ/3NUXZJSRMlxzq8U0yfQs5h6Ggxy5mPH?= =?us-ascii?Q?2rLdVwzP3wsUpcEA1xusgnTxXkhnFaXbmU1V2rjWxAJHXKLEwdZ1iOg8ZGc3?= =?us-ascii?Q?ZSWZXKU1wM/T1nBIYNyi9FmCR/qd1hMWqiXwCLNISMIvr1mJtxKy4QhqPGyR?= =?us-ascii?Q?nU0qEy4C?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SA2PR10MB4474.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 50c8c4ec-9c30-4b9e-3dea-08d8c56228ea X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Jan 2021 21:01:05.5617 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: jESLmP9ILhQB0Vu/zSGK79kezmWl0BBkk7cpLDx2OziHioHcSOkBlLczx4/29NV7sZEpNiKLtA4UeDYfUEewrw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR10MB2589 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9880 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=855 malwarescore=0 bulkscore=0 suspectscore=0 phishscore=0 mlxscore=0 adultscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2101300116 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9880 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 clxscore=1011 impostorscore=0 mlxscore=0 spamscore=0 bulkscore=0 priorityscore=1501 adultscore=0 lowpriorityscore=0 malwarescore=0 phishscore=0 mlxlogscore=999 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2101300116 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 46151 Cc: Lars Ingebrigtsen , "46151@debbugs.gnu.org" <46151@debbugs.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > To avoid all possible conflicts, this looks harmless: 'C-c g'. Apologies; I'm not following this thread. I just happened to notice this message. (elisp) `Key Binding Conventions' says this: Don't define 'C-c LETTER' as a key in Lisp programs. Sequences consisting of 'C-c' and a letter (either upper or lower case) are reserved for users; they are the *only* sequences reserved for users, so do not block them. So `C-c g' should be a no-no, no? From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 30 23:03:04 2021 Received: (at 46151) by debbugs.gnu.org; 31 Jan 2021 04:03:04 +0000 Received: from localhost ([127.0.0.1]:56201 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l63x1-0008GX-KS for submit@debbugs.gnu.org; Sat, 30 Jan 2021 23:03:04 -0500 Received: from md5i.com ([75.151.244.229]:53766) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l63ww-0008Fz-Gk for 46151@debbugs.gnu.org; Sat, 30 Jan 2021 23:03:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=md5i.com; s=dkim; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:References: Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=0ELBDZzWob383CqQ+Jph0mV5fMHxcPpVrJaqjfzAMms=; b=Q8hasWw2cbm6sqHlDZAiuLodm2 8Sdb161kN6BghlSQ7xzpkDmsTlNK595NV8751PoyGCLSzJTPVsDkWUNGr9WwhflxWLmRubIBADM+c iTibdM1yKeCNAWFO0OEbfK/fA; Received: from miko.md5i.com ([192.168.177.3] helo=miko) by md5i.com with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1l63wq-007ebY-43; Sat, 30 Jan 2021 23:02:52 -0500 From: Michael Welsh Duggan To: Juri Linkov Subject: Re: bug#46151: 28.0.50; Set revert-buffer-function in shell command output buffers 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> Date: Sat, 30 Jan 2021 23:02:51 -0500 In-Reply-To: <87bld6uzf8.fsf@mail.linkov.net> (Juri Linkov's message of "Sat, 30 Jan 2021 20:36:51 +0200") Message-ID: <87h7mxzrbo.fsf@md5i.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 46151 Cc: Lars Ingebrigtsen , 46151@debbugs.gnu.org, Sean Whitton X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Juri Linkov writes: >> How about binding C-c C-r instead of g? The mnemonic would be >> Reexecute. In *Async Shell Command* buffers this already has an >> inherited binding but I don't believe it is one that does anything >> useful in those buffers, so should be fine to override. > > To avoid all possible conflicts, this looks harmless: 'C-c g'. Except key sequences consisting of `C-c' followed by a letter are reserved for user-defined bindings. -- Michael Welsh Duggan (md5i@md5i.com) From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 31 02:38:09 2021 Received: (at 46151) by debbugs.gnu.org; 31 Jan 2021 07:38:09 +0000 Received: from localhost ([127.0.0.1]:56306 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l67JA-0007GF-1Z for submit@debbugs.gnu.org; Sun, 31 Jan 2021 02:38:09 -0500 Received: from quimby.gnus.org ([95.216.78.240]:35524) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l67J7-0007Fk-KP for 46151@debbugs.gnu.org; Sun, 31 Jan 2021 02:38:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=i6wRUCiPr4aYtpEQXdebRvI+KTRcZmXuWUK62918pDE=; b=WKwSux7C+qQTuYAaVpAOOkDTTJ CkLDtIQyuD4ztnmaRBNSMdnYZ4JLaRWW+81TFGTAO+p1Y2ozQ/d5Rq3b5l6+IeDNhYTgHEIysSAQF cj0WMKxann31eB+epANu46S2yrb/T43Vg1C7zPzEvTSj0NdiJ3pZb3mMkdw+Y1dbkq2A=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l67Iq-0002nj-F9; Sun, 31 Jan 2021 08:37:58 +0100 From: Lars Ingebrigtsen To: Michael Welsh Duggan Subject: Re: bug#46151: 28.0.50; Set revert-buffer-function in shell command output buffers 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> X-Now-Playing: Tuxedomoon's _Live in Eindhoven (1980)_: "Jinx" Date: Sun, 31 Jan 2021 08:37:47 +0100 In-Reply-To: <87h7mxzrbo.fsf@md5i.com> (Michael Welsh Duggan's message of "Sat, 30 Jan 2021 23:02:51 -0500") Message-ID: <875z3dv9o4.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Michael Welsh Duggan writes: >> To avoid all possible conflicts, this looks harmless: 'C-c g'. > > Except key sequences consisting of `C-c' followed by a letter are > reserved for user-defined bindings. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 46151 Cc: Sean Whitton , 46151@debbugs.gnu.org, Juri Linkov X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Michael Welsh Duggan writes: >> To avoid all possible conflicts, this looks harmless: 'C-c g'. > > Except key sequences consisting of `C-c' followed by a letter are > reserved for user-defined bindings. Indeed. 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? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 31 04:46:45 2021 Received: (at submit) by debbugs.gnu.org; 31 Jan 2021 09:46:45 +0000 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 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 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 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 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/ To: bug-gnu-emacs@gnu.org From: =?utf-8?Q?K=C3=A9vin_Le_Gouguec?= Subject: Re: 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 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cancel-Lock: sha1:zqGcgqHzn1bCipSDt1NY95Gb970= 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-Spam-Score: 0.1 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.4 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: 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', whic [...] Content analysis details: (1.4 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 T_SPF_HELO_TEMPERROR SPF: test of HELO record failed (temperror) 1.0 FORGED_GMAIL_RCVD 'From' gmail.com does not match 'Received' headers 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (kevin.legouguec[at]gmail.com) 0.9 SPF_FAIL SPF: sender does not match SPF record (fail) [SPF failed: Please see http://www.openspf.org/Why?s=mfrom;id=geb-bug-gnu-emacs%40m.gmane-mx.org;ip=209.51.188.17;r=debbugs.gnu.org] 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different 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… From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 31 04:53:20 2021 Received: (at 46151) by debbugs.gnu.org; 31 Jan 2021 09:53:21 +0000 Received: from localhost ([127.0.0.1]:56438 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l69Pz-00020h-Vq for submit@debbugs.gnu.org; Sun, 31 Jan 2021 04:53:20 -0500 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:58501) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l69Pw-00020Q-AE for 46151@debbugs.gnu.org; Sun, 31 Jan 2021 04:53:18 -0500 X-Originating-IP: 91.129.108.204 Received: from mail.gandi.net (m91-129-108-204.cust.tele2.ee [91.129.108.204]) (Authenticated sender: juri@linkov.net) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 8DB6D20003; Sun, 31 Jan 2021 09:53:07 +0000 (UTC) From: Juri Linkov To: Lars Ingebrigtsen Subject: Re: bug#46151: 28.0.50; Set revert-buffer-function in shell command output buffers Organization: LINKOV.NET 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> Date: Sun, 31 Jan 2021 11:20:11 +0200 In-Reply-To: <875z3dv9o4.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 31 Jan 2021 08:37:47 +0100") Message-ID: <87bld5cvjo.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 46151 Cc: Michael Welsh Duggan , 46151@debbugs.gnu.org, Sean Whitton X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > 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? What about 'C-x g'? I know Drew will complain about wasting precious keybinding. Then maybe put it on an existing prefix map? For example, on 'M-g'. From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 31 04:55:00 2021 Received: (at 46151) by debbugs.gnu.org; 31 Jan 2021 09:55:00 +0000 Received: from localhost ([127.0.0.1]:56450 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l69Rc-000242-HD for submit@debbugs.gnu.org; Sun, 31 Jan 2021 04:55:00 -0500 Received: from quimby.gnus.org ([95.216.78.240]:36086) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l69Ra-00023o-2X for 46151@debbugs.gnu.org; Sun, 31 Jan 2021 04:54:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=I0ByOH4A39F2VFoM0VEshBuV1SnXE8hBTA68FLZbfUE=; b=PAOE++F4mM9c1q6JPnjnIiSmxU 08JlEnZA8q+m8/vFzrCaAJn7t1dhgSorR1QhAh2BeYAUiz8Eri2EBwRHm/qir1DkWMLldUKukU2KZ egPT5ixyomcpSkTZXRCDgR4LTZbF9S7xz0VauyTObZpHQPH3nwNID16/KyYK3zBqOIDA=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l69RQ-0004P3-2F; Sun, 31 Jan 2021 10:54:51 +0100 From: Lars Ingebrigtsen To: =?utf-8?Q?K=C3=A9vin?= Le Gouguec Subject: Re: bug#46151: 28.0.50; Set revert-buffer-function in shell command output buffers 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> <87a6spigm0.fsf@gmail.com> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEVRNTG3npeqZlDE hXOpXE3///9N6hyxAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+UBHwkyNpJctI8AAAGGSURBVDjLbdPr mewgCAZgNscGMmlgDtLAaApwWfqvaT9Qk0l2+JWH1wuooa915TUi19f6SJxLYU5POuCRX3UrZCqs QnTAVnKtlck8BtQARj5zS2+AeK0FUFiMrKVkJ2x7dmAMJ7qA1gCxhuQJ2NYF4HlCtQNyYUuaC/IJ oBMwtJaWMAHrtwvk+iTMMNTk0CZI3okWzKIInZuju/2brAotNyi1iijABqRRFaDgsABGzftYTvAA qH2EOMIL5M+wDdgv8N/hpwN1IPo3+xhLkTrguH6ue+x+gXGOecBWx1IB7Q9EVXFeE1YO8Ju9QXRY bBaVDliPfMByAnaJgj6BeAsnPJjzqIutjb0T0xLrKvPcpN/uQslG1P5E+xUyH5CiwTnB52CUIrEM oBM4XuzSO29/QDtESdFmAEZGVRxP3d5Amvr/Ie0oZgAHVIvxLIrXPeAJwJv2CRqJCYJ/oEprdges xUVSwlXxFSRl9tFyB3Qv2ryl21Iavz4fcUJv7Q1y/7AO+hHaG/wCVM6Vg8GKtewAAAAldEVYdGRh dGU6Y3JlYXRlADIwMjEtMDEtMzFUMDk6NTA6NTQrMDA6MDB7ycSiAAAAJXRFWHRkYXRlOm1vZGlm eQAyMDIxLTAxLTMxVDA5OjUwOjU0KzAwOjAwCpR8HgAAAABJRU5ErkJggg== X-Now-Playing: Joan as Police Woman's _Joanthology (2)_: "Silly Me" Date: Sun, 31 Jan 2021 10:54:46 +0100 In-Reply-To: <87a6spigm0.fsf@gmail.com> (=?utf-8?Q?=22K=C3=A9vin?= Le Gouguec"'s message of "Sun, 31 Jan 2021 10:46:15 +0100") Message-ID: <87sg6htord.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Kévin Le Gouguec writes: > (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 sen [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 46151 Cc: 46151@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) K=C3=A9vin Le Gouguec writes: > (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=E2=80=A6 Oh, yeah, I was thinking of `C-x C-r' and not `C-c C-r', but that's unfortunately taken. Hm... the `C-x' map is pretty heavily populated. Let's see what's free... C-x C-a C-x C-y Wow, those are the only `C-x C-' not bound of the alphabetical keys. Neither seem extremely mnemonic for "revert"... Perhaps `C-x C-a' for "aaargh, reload that file already!" --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 31 05:48:19 2021 Received: (at 46151) by debbugs.gnu.org; 31 Jan 2021 10:48:19 +0000 Received: from localhost ([127.0.0.1]:56467 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6AHC-0003NF-M8 for submit@debbugs.gnu.org; Sun, 31 Jan 2021 05:48:19 -0500 Received: from mout01.posteo.de ([185.67.36.65]:55902) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6AH9-0003Mx-6D for 46151@debbugs.gnu.org; Sun, 31 Jan 2021 05:48:17 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 5BEA5160060 for <46151@debbugs.gnu.org>; Sun, 31 Jan 2021 11:48:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1612090088; bh=rw6jiYDUpygR9n+yoFT28MMXGPrwyLXXISHRuAvMIE8=; h=From:To:Cc:Subject:Date:From; b=UB1RB8nodlhvLWe2UnNc2xEUM8vdhZIS+tOyKH2EAhjF9meR78qz8cFThSIiHRG6n j5UdKwO1bp/fdRk09ShK5DSlZNYIbC6K15ye+7xfrKAS40qu1swfnQJ8qM5FzlGl6h 3/MnrSUHmS4i/SomNgrSHByHfMsciiLA6xUkDVHFPIdGIS9bZK4Xm6L/fi9usLZ4KH o2ezvux6w4/+r1dM+NjhZuB+TfYw1gA/jrKp5C8xx7UZBmgzqdLVap3BuAo5XFHN87 2QeVnO2PaKiGGxy6dCN7/uVAl0XiatzUj2Na/Az7HV+IahQqXX5CO5cPiP7qMBuKE6 +whDuPXXqB7uQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4DT78R3FDFz6tmP; Sun, 31 Jan 2021 11:48:06 +0100 (CET) From: Tomas Nordin To: Lars Ingebrigtsen , =?utf-8?Q?K=C3=A9vin?= Le Gouguec Subject: Re: bug#46151: 28.0.50; Set revert-buffer-function in shell command output buffers In-Reply-To: <87sg6htord.fsf@gnus.org> 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> <87a6spigm0.fsf@gmail.com> <87sg6htord.fsf@gnus.org> Date: Sun, 31 Jan 2021 11:48:05 +0100 Message-ID: <87sg6h4c2i.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 46151 Cc: 46151@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Lars Ingebrigtsen writes: > K=C3=A9vin Le Gouguec writes: > >> (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=E2=80=A6 > > Oh, yeah, I was thinking of `C-x C-r' and not `C-c C-r', but that's > unfortunately taken. > > Hm... the `C-x' map is pretty heavily populated. Let's see what's > free... > > C-x C-a > C-x C-y > > Wow, those are the only `C-x C-' not bound of the > alphabetical keys. Neither seem extremely mnemonic for "revert"... > > Perhaps `C-x C-a' for "aaargh, reload that file already!" Am I confused or did this discussion drift away from something specific to shell command output buffers to something global always? What was wrong with C-c C-r ? Maybe that existing binding in shell mode ('comint-show-output')? But if this new binding could be restricted to those output buffers it might be ok? I mean, in those buffers it seems to me that 'comint-show-output' (C-c C-r) do the same as 'beginning-of-buffer' (M-<). -- Tomas From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 31 08:06:11 2021 Received: (at 46151) by debbugs.gnu.org; 31 Jan 2021 13:06:11 +0000 Received: from localhost ([127.0.0.1]:56554 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6CQc-0000d9-P9 for submit@debbugs.gnu.org; Sun, 31 Jan 2021 08:06:11 -0500 Received: from mail-wr1-f44.google.com ([209.85.221.44]:45533) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6CQa-0000cs-5V for 46151@debbugs.gnu.org; Sun, 31 Jan 2021 08:06:10 -0500 Received: by mail-wr1-f44.google.com with SMTP id m13so13627187wro.12 for <46151@debbugs.gnu.org>; Sun, 31 Jan 2021 05:06:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=8q/xS0UpmOW6jwVuogJfpzQpUPw3215gRoswF6D+wjw=; b=TnFneyX1HMdTy1ipfjgDheKu6fKmfTt735ZkeLwKmBhjlZMDlmfr54BMJ5GTmkJy5z ZrzQu20JRYbuhsvVPyPpT0klr2ergBlEbSscZpCWN/nOzpcCngi6xlS4AQAAYFEM0YZz TqmNyOtSoA0p2oGyT4BXFv2/004nTqCxPHXO0HZXTP07AX3ehepn7bOI9IXkpse9h3Vl ANQYD+NSzd8Ncx6YFa7+dJgtPHyo4q4dBMHdFDcA+zm9sdwZMDnYSwzPPaN42arQU394 j/qJnnbxM5GtverOsiSG07kBYe5sAaGrex0RCSQRqw5hQ5DP8QmzLyAa99gus4CfcW33 +03A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=8q/xS0UpmOW6jwVuogJfpzQpUPw3215gRoswF6D+wjw=; b=jPEbvnVFCVBTKrdMYif33Mgc5VtiqoWqvuvZkS9Z+hQzAA2qEbp860a2Ag5TCQwftB FTy9ML0At79IuX5V3xfmn30D557PWwyHANIX3HEcPl8u41Ekv96qzdwZ3ktVDnSj3m3z QMs1D7eCb/w8lXB95RXn6xVIhlu8Xl7cW8CALwiR/EMkRSgFxHe2Ekd8/UlaPIqVW6Jx +L7DrZZf7ma4nq+V0I4b8Pj4R9IdW8PRFpfXlmobxXN4MuhTrRcP0BDArIxqazdnCigP hqxEUO2RZMkC03MWVVOxmwlL/K+kawoc5cE2cO2nt4QUulnIkjmqXe8/hwla20N+t4Rh dJkA== X-Gm-Message-State: AOAM531VlVLLJl3FiWOI+cJwxLDSo+el3flSqQo6tB2HbX2bGNSAP4Fy oSXEDon20GvF/bIxLej8phXwYxIiLxCgoQ== X-Google-Smtp-Source: ABdhPJy+ZxCoN0l10tJ431UBBNjm5sSrdegEP7qPSzQpcAmB9EUlCe8qw89+d6zLqOT7E9zhuAr4cQ== X-Received: by 2002:a5d:4f82:: with SMTP id d2mr13401962wru.87.1612098362121; Sun, 31 Jan 2021 05:06:02 -0800 (PST) Received: from my-little-tumbleweed ([2a01:e0a:20e:d340:922b:34ff:fe95:9aed]) by smtp.gmail.com with ESMTPSA id u10sm17189666wmj.40.2021.01.31.05.06.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 Jan 2021 05:06:01 -0800 (PST) From: =?utf-8?Q?K=C3=A9vin_Le_Gouguec?= To: Tomas Nordin Subject: Re: bug#46151: 28.0.50; Set revert-buffer-function in shell command output buffers 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> <87a6spigm0.fsf@gmail.com> <87sg6htord.fsf@gnus.org> <87sg6h4c2i.fsf@posteo.net> Date: Sun, 31 Jan 2021 14:06:00 +0100 In-Reply-To: <87sg6h4c2i.fsf@posteo.net> (Tomas Nordin's message of "Sun, 31 Jan 2021 11:48:05 +0100") Message-ID: <87k0rtqmrr.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 46151 Cc: Lars Ingebrigtsen , 46151@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Tomas Nordin writes: > Am I confused or did this discussion drift away from something specific > to shell command output buffers to something global always? Right, sorry; FWIW I'm not in a hurry to have a global binding for revert-buffer (I've already bound it to C-c b g). I was merely thinking out loud about the implications of adding one. (tl;dr "C-c map =E2=87=92 unorthodox; C-x g =E2=87=92 magit-status") From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 31 11:08:09 2021 Received: (at 46151) by debbugs.gnu.org; 31 Jan 2021 16:08:09 +0000 Received: from localhost ([127.0.0.1]:57785 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6FGi-0007Oa-Tv for submit@debbugs.gnu.org; Sun, 31 Jan 2021 11:08:09 -0500 Received: from md5i.com ([75.151.244.229]:58082) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6FGg-0007OA-Q7 for 46151@debbugs.gnu.org; Sun, 31 Jan 2021 11:08:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=md5i.com; s=dkim; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=8Pd8Y+0c5cNoMkigNA2fxq/CEeV/a19yi21kcu6hVac=; b=b4Hi81IMIV3QMcULHgxglyvZ1M 8tYCVYu7ZQ0ElYDY0ZFQx9BcTk05jVDol1G6LTli0VXY7o8LzhI8hlPYW8GRsDbGDVV0Hb9PQEh7q KcXyL5RxYUC9cYFzeMIez+gRu; Received: from miko.md5i.com ([192.168.177.3] helo=miko) by md5i.com with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1l6FGY-007xX1-KL; Sun, 31 Jan 2021 11:07:58 -0500 From: Michael Welsh Duggan To: Lars Ingebrigtsen Subject: Re: bug#46151: 28.0.50; Set revert-buffer-function in shell command output buffers In-Reply-To: <875z3dv9o4.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 31 Jan 2021 08:37:47 +0100") 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> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Date: Sun, 31 Jan 2021 11:07:58 -0500 Message-ID: <87h7mx6qe9.fsf@md5i.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 46151 Cc: Michael Welsh Duggan , Sean Whitton , 46151@debbugs.gnu.org, Juri Linkov X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Lars Ingebrigtsen writes: > Michael Welsh Duggan writes: > >>> To avoid all possible conflicts, this looks harmless: 'C-c g'. >> >> Except key sequences consisting of `C-c' followed by a letter are >> reserved for user-defined bindings. > > Indeed. > > 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). I've had `C-c r' as (revert-buffer t t) in my personal init file for years. (So I obviously agree with the mnemonic.) -- Michael Welsh Duggan (md5i@md5i.com) From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 31 12:57:16 2021 Received: (at 46151) by debbugs.gnu.org; 31 Jan 2021 17:57:16 +0000 Received: from localhost ([127.0.0.1]:57934 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6GyJ-0001dW-Fv for submit@debbugs.gnu.org; Sun, 31 Jan 2021 12:57:16 -0500 Received: from userp2130.oracle.com ([156.151.31.86]:53504) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6GyF-0001dH-Bb for 46151@debbugs.gnu.org; Sun, 31 Jan 2021 12:57:14 -0500 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 10VHpRB6037768; Sun, 31 Jan 2021 17:57:05 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2020-01-29; bh=TD2yRWekbaVy4015OaitfKchvrrkZ3T6+95zwsutbPY=; b=nhsTtPWcNCTLlUjNLb2gVx38HZxnKryw02R7beK0h1W3FVSwxeFCeGUg8krf8H2ZnP60 oyoLMDSUGzmgbdDpzpG+Z1Dfhbg/kWQHEYYi3Q/dNrWc/gLAMx0hRxFGoa/BVtz/r1c1 7S8Zc6ROn0pt86tVaJv767scXrACgVG2aFqqNdaIVJTAot1JyiPqxRIoLijsqb7MOI8Q JRmmVDoiaMmwL92yZxmz2QHG+fxps/rFtKX6F8V70NK5rv4XWJnVkWvx5CuzhIdlMZDo N4BTqvb/u2g3HjhMsfSj5siOJoSP4bi/28hMpx1DmRPXyRjtvYJ0zAgc0SpkFJl+z9fv rA== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by userp2130.oracle.com with ESMTP id 36cxvqtp87-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 31 Jan 2021 17:57:04 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 10VHo3MN074146; Sun, 31 Jan 2021 17:57:04 GMT Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2044.outbound.protection.outlook.com [104.47.66.44]) by userp3020.oracle.com with ESMTP id 36dh7nu5am-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 31 Jan 2021 17:57:04 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=B0eRDnZ+1EMyjW86W4dUp2I7XzAPFkxFWnrGeIScglWfGAWZN04oHBIFQwZZzSMnpXEAxHCctlFwvZOk8RBQtuFZLVsGfoO0q+Sv91KYv5yuznIWwCcv8tGvdqQo7OdY8E/OoiAPA5+gFnbJDroAO3r/UNFggpCtY2yOUCCaof91fT9LGXWeKc4L/gKiifo54GUE9dyhv4cWww4IG9uL79TTPGzhiPwk4beC/XpWI2i2KiJeoeebIsuQBefPn9zVl8VE6xH4y6RgVgIYJzC/bxE6HeqEI2Ud8xNoxh01+FzfT9bLq+yORj1g9pvvKMR7Zh29zVfWl06zh41E5CLkgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TD2yRWekbaVy4015OaitfKchvrrkZ3T6+95zwsutbPY=; b=i+maHOKxjp1H5wLUlriSHTjQim8JWS2gbJJh7G5HVy11bz3kfIyYnmJV7hrS3fuPE4bWzWWAE8eUC8UkMFRdQHqXNSj+rCAuQTyxlbmZpZW/CxJSl5k7y3BT7VwldoEjXCaHtDCA2cY+NvpI69roiJ3mh+7uLRb5eMopjcRxoMkWHK9HzFcDLrLD0fkwQjV3S5Rc52IBgeO2YhS5OI84hOp1ch9TAl/drMzbyGoIzGU7z1y50awizhmyReXaeGR6+5gB+e0TiuYRn0hKgoi9bbxhTSTSW4fgFKORoNnxVZieB/IAYteuc0znqArW8MQnEivePFZTV15pNgnks3lLwQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TD2yRWekbaVy4015OaitfKchvrrkZ3T6+95zwsutbPY=; b=ukimI52kqV47eunYKF8fSYA1/u/HgwDOlnai7P5BFgnL2hG4WxAgc7AdLd13ElJDRv+SXpjZTuvMA66k7mg2lvFFeC6dUxxbhLIVe55pY7WNqxjAGSmAm9v1U1N7THEBuw79iZiSpuI76YCZiGCnn+vUpOt2KibO9EQbpN6v1yg= Received: from SA2PR10MB4474.namprd10.prod.outlook.com (2603:10b6:806:11b::15) by SA2PR10MB4475.namprd10.prod.outlook.com (2603:10b6:806:118::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3805.19; Sun, 31 Jan 2021 17:57:02 +0000 Received: from SA2PR10MB4474.namprd10.prod.outlook.com ([fe80::dc4d:9cd0:2010:daa2]) by SA2PR10MB4474.namprd10.prod.outlook.com ([fe80::dc4d:9cd0:2010:daa2%7]) with mapi id 15.20.3805.024; Sun, 31 Jan 2021 17:57:02 +0000 From: Drew Adams To: Lars Ingebrigtsen , Michael Welsh Duggan Subject: RE: [External] : bug#46151: 28.0.50; Set revert-buffer-function in shell command output buffers Thread-Topic: [External] : bug#46151: 28.0.50; Set revert-buffer-function in shell command output buffers Thread-Index: AQHW96RMV+AdWDqW10COMpNfv9CJ3KpCAWgA Date: Sun, 31 Jan 2021 17:57:02 +0000 Message-ID: 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> In-Reply-To: <875z3dv9o4.fsf@gnus.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: gnus.org; dkim=none (message not signed) header.d=none;gnus.org; dmarc=none action=none header.from=oracle.com; x-originating-ip: [73.170.83.28] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: d06e0873-fc6f-4206-d675-08d8c6119ce2 x-ms-traffictypediagnostic: SA2PR10MB4475: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1284; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: +Ksrgb2XIQnm94s7yk746EEtsH460Kci6EVVazgI0AlI+H0CyxqIZLrbIB1nZVq3hPXjWq8jrp8cJhzouxzhl3UB25zEtQ+n16wAMDqRMNDYYQIlhfKpmYeghF7wgVBJSyCucnSXnrjUrMsekouIcnWE+xrd1YEE0UikvtMWJpP06OrrJ15F46E33NdvtA4Cx3llGtyfco3yfDpv5dWuPZUBZHIaPD8BN5nS+A+tYsRFo4nFrZVCQuDDyG81IaI9cMAkiuKZxMgPg5CNya6AeloXBZzP26TFJyWTb9JU7vZ+nSi1F8TKZ998xQy7bU0wthaxsW23ycXPnY/UEIKcK/IvamnNAzzCRld6E7q5qAa/HJzK8VwAKPOlxHJUxT9PhiEUwfLIvV96sEeV/KJi5r7Rkn9N/flzIs69c19AYBrXqdW+XN0gjzfuJS0j9vRxXFDtz1Xe3XuMMHDbZPUlpTZj0a9ue4oqw20m09ZVMHaLVcxhdIILdEluiszBCMqI5zxRIeJHlYHz8DVP0cT42A== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SA2PR10MB4474.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(136003)(396003)(376002)(39860400002)(366004)(346002)(54906003)(52536014)(2906002)(7696005)(110136005)(8936002)(5660300002)(8676002)(71200400001)(44832011)(86362001)(316002)(66946007)(66476007)(66556008)(64756008)(6506007)(186003)(66446008)(76116006)(9686003)(4326008)(26005)(33656002)(478600001)(55016002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?k78wZlIgdo7Ftc9jdSBbp6wLS8gFb9hbmVeER/W9HY/Cvh93JdgdanIXiM9L?= =?us-ascii?Q?IFiYoT6cFZFTySfAmme3UC+8hnBo+MK9/QD0BF9pBfxCSOGAHW6u8nVXSXx2?= =?us-ascii?Q?/AnaS7RVqJTChsAbV6vGiytIwjsyKVTbIJZ3ofkjZM84zfslw3t0q3yAb1pE?= =?us-ascii?Q?ctUmPGneuzbuahqt2Y7g7u9pPiN29UMbDw4H9MN2kdC+YWVeMFEe/pEjiPiM?= =?us-ascii?Q?vWWdsXsLxLwsi0gHqBJLPDTS5CC5P+vIaHYjZ2ao7/RjzQHeKv0qxJMAMh8M?= =?us-ascii?Q?jvGUTVtJBmZYv1Io+u9l3YZNUpzU7IQsdE8KHSaJeUVlqsT/4wpILnEBdaPG?= =?us-ascii?Q?zCdjK3+dfqNPwHorGf5X4HeJcApRfcPmrjjTDd2vlh/MJ4EXaAZydGTLCbs1?= =?us-ascii?Q?xgEWmTtDY4l5kDcZ+LqYB4gkTCvhprTxRhc9UkPkp/gymYp0jCUtHC7w7NgA?= =?us-ascii?Q?tnA5H5vLWAIYQKww7E4iyHM6p/BMuxrq0zSDA/BvNV00peUoZAbrAi+TDj5M?= =?us-ascii?Q?4nsyOulG7mvP6MRG0ZXm0tucuxoCgSkDrtnrFG8of+Rhfzt73LzOspwLw+ZI?= =?us-ascii?Q?mK0bqE7qrzbUHNXUCy6+tmScMAhhIfNKCnxbpN41J7A+8H+lDbquGp8vY8Pd?= =?us-ascii?Q?tAIsrskX9YIRspaTDugrJDk9KJp/5zfp49UVBptK5HTF1HJsLLPIsU21icuE?= =?us-ascii?Q?kP8XhYdu+I75BeWZnR605VfQCgAWQ/In5sOjl7sbGib4KprSolWlmoIWKFlo?= =?us-ascii?Q?c9C8T2r9d62lOvYa8MvXUu/ix+BEtHVre7uQdVkTeFyat4Hz0ppXuRsfT5Q1?= =?us-ascii?Q?WYuR9rOCrzFkI0Kc4DaHQubPwwkKq2HSr3nKFWoCY43WMvLzCZ3hEn1her30?= =?us-ascii?Q?QmP6yJZTQBLgdpI30S251JxHdXs5BgiU14/4LCTdSV3Bauah1U1XRjn1dbem?= =?us-ascii?Q?1CkTVRVRotPfxQ57HQEHvPKvTodFgHGtVWRvOmAu98cJgIbDLSI8Dt8Jd7mo?= =?us-ascii?Q?4FpVHF06YjmW29uqxdH6zzlJMdFkumqGcO8T7AYMJyjp7hGrukMdQyo9fI6h?= =?us-ascii?Q?DtUs5amp?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SA2PR10MB4474.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: d06e0873-fc6f-4206-d675-08d8c6119ce2 X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Jan 2021 17:57:02.0416 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Uq2p7U9kejuSBiXiaLE13B0x745Wykp1TkArFSRt/2pTB7Lw6a7qP8jbCvfAWcJpvy23V6T3bUiUQFrssSpp7w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR10MB4475 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9881 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 mlxscore=0 suspectscore=0 spamscore=0 mlxlogscore=842 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2101310104 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9881 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 mlxlogscore=999 mlxscore=0 priorityscore=1501 spamscore=0 impostorscore=0 clxscore=1011 suspectscore=0 lowpriorityscore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2101310104 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 46151 Cc: Sean Whitton , "46151@debbugs.gnu.org" <46151@debbugs.gnu.org>, Juri Linkov X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > 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. Yes, very useful. Dunno whether we need to bind it to a key by default, however. Users who use it a lot will bind it themselves. And it already has various (different) bindings in different modes. And for modes where it makes no sense, well, it makes no sense. ;-) If we do sacrifice another new key binding for it then it should preferably not be a key that's repeatable. (Personally, because key `F5' does that on MS Windows, I bind `F5' to it. But yes, that wastes a repeatable key. Is `F5' used beyond MS Windows, e.g. for web browsers on other platforms?) > 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). `C-r' is conventionally an opposite to `C-s' (e.g. for search). It's best to save `C-r' for some (future or 3rd-party) need where there's an opposite action that can be bound to `C-s'. As an example, my code binds `C-x / C-s' and `C-x / C-r' to commands that search forward and backward within defined zones. > 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'. >=20 > Any opinions? Overall, my opinion is to NOT bind it by default. Yes, it's useful. But it's also easy to do with `M-x revert'. (And then repeat that as a previous command, as needed.) And it has many existing bindings, for modes where it's used frequently. From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 31 13:05:58 2021 Received: (at 46151) by debbugs.gnu.org; 31 Jan 2021 18:05:58 +0000 Received: from localhost ([127.0.0.1]:57956 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6H6k-0001rT-BI for submit@debbugs.gnu.org; Sun, 31 Jan 2021 13:05:58 -0500 Received: from aserp2130.oracle.com ([141.146.126.79]:34934) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6H6i-0001qm-VP for 46151@debbugs.gnu.org; Sun, 31 Jan 2021 13:05:57 -0500 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 10VHxoZH070681; Sun, 31 Jan 2021 18:05:47 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2020-01-29; bh=sBdIUOFo9FURRrn+W6/XywcWS6gHliNjKaiCKDBo/uo=; b=loCk5Uhk5LQvUkvbuOWOie+3MSenSD9eeNdb+JOSoo4VZ8mW5Wr4dOLNznMbGrJ5dVqg QHqkJnzQAkvsPQ8v1DSZO0jAi3M6i5Ye+cCKf2X5LMbsSfhdzEnX+oiizqA1L70xMC6M vW54nPeCaK9ljNVO9aqcYoUvyCmPupckoq/IC9epOmXjIk8JDDBGJRVQYadsmmn2nmOF iG9MtwBfeGlU8ZB+U6xbPcHXILhKkawUsd+Z8MiDaE81cdli01ajxwwFebSRMJUcBfGr rjE2R5KiuwC+skNqS4tN4/bxJCfpimxVm4vmS3NqZau4+Pc96O1DVAlfuIaNy+Gbvud+ yQ== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by aserp2130.oracle.com with ESMTP id 36cvyajujk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 31 Jan 2021 18:05:46 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 10VI0Rhd161604; Sun, 31 Jan 2021 18:03:46 GMT Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2105.outbound.protection.outlook.com [104.47.55.105]) by userp3030.oracle.com with ESMTP id 36dhcu2r48-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 31 Jan 2021 18:03:46 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QZ7bEOsoZ9KVCRP9BoNXkpa8p7J5QAFfHhUZ5EMlpe5tEkNRKbzxtWL5onWvWMVUIRYFa5MSmmLVeYhuhBKAnqVEdEo49J0ApPZEbRPCTYWqwRsI+/a7Xv9AB8QsOJeV7YcGA6ilqztD3KYE+ei9r93WZ8n2xKJl+4c7QlWYT9rqWBN/J7likwbn0UCXZNeDlVH61g0PLMVRfFc7ll/nUTbveI7IL7r0sgprcv2w5TJMw66dOg0ROFA8EppzB0mSQdVTKxdajeBwTX1wJ0UHEGUQcMhNWulo+xmXrmRaYHUNcczEqxoelit5dHWqlr8RcLU6TX8m+I6ad0lyFIFeNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sBdIUOFo9FURRrn+W6/XywcWS6gHliNjKaiCKDBo/uo=; b=VbrgTVcynchhN78gO4oEscJWObxNTq6N8W8WssypnrOPaGmNs4Wh77r51fstxee96/l3aftdv70HuPMkAP50x7Z73osGGfdBdlrfTH+8tfYhIG81Wz7gF8L/AFvf/rDSdSR/TSeQKVwOo5KCK+XJqOYXPHbjpG0FLa2XYySogoCdtxrwBKWAzfM4qd29tniwrXb/10YUirZwWKs3ba922byd2ZvjdZ5eZeHOq860H8x2wOEy22XZZGIRs5zP1pY28BcNtTmXgdnD3ZgwKn+L7cau7SvgFOjm+bk4WlXe/cIxxFCn/Vce56D6jCFt8ZX9bdZDS95tEQyr/zzGljJwdg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sBdIUOFo9FURRrn+W6/XywcWS6gHliNjKaiCKDBo/uo=; b=FqQ4wIj/fOAL8azqrEJbbjWdZKiHweNJALAyhcb4f2ITCooeeJoTe+2y5rcAZVN3242uf3kiHTqwe3OVGKxxtimMPN4J/wVXoskWaisKsRWLJCuks9OOTek0fG2t/mUdQqrVaWt+hmjL7+GrP6vzVIBm8OhWmiJ9QMjvuymnXHg= Received: from SA2PR10MB4474.namprd10.prod.outlook.com (2603:10b6:806:11b::15) by SA2PR10MB4475.namprd10.prod.outlook.com (2603:10b6:806:118::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3805.19; Sun, 31 Jan 2021 18:03:44 +0000 Received: from SA2PR10MB4474.namprd10.prod.outlook.com ([fe80::dc4d:9cd0:2010:daa2]) by SA2PR10MB4474.namprd10.prod.outlook.com ([fe80::dc4d:9cd0:2010:daa2%7]) with mapi id 15.20.3805.024; Sun, 31 Jan 2021 18:03:43 +0000 From: Drew Adams To: Juri Linkov , Lars Ingebrigtsen Subject: RE: [External] : bug#46151: 28.0.50; Set revert-buffer-function in shell command output buffers Thread-Topic: [External] : bug#46151: 28.0.50; Set revert-buffer-function in shell command output buffers Thread-Index: AQHW97cK48FSA6xD+E2H+dxQ3P55I6pCBjLA Date: Sun, 31 Jan 2021 18:03:43 +0000 Message-ID: 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> <87bld5cvjo.fsf@mail.linkov.net> In-Reply-To: <87bld5cvjo.fsf@mail.linkov.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: linkov.net; dkim=none (message not signed) header.d=none;linkov.net; dmarc=none action=none header.from=oracle.com; x-originating-ip: [73.170.83.28] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 3f142121-2b0b-46a2-3351-08d8c6128c5c x-ms-traffictypediagnostic: SA2PR10MB4475: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: kRSg8JogaeOwNqpSNyoaQn6etaE3irD9DUUdmHzXfnLHVIv35d5yM/5xtL/9iyvQmT9jkqkRF/BfSIogRd2rGjeaXLgEs4XvGh+jIogBBjnoMD9hoBIRKeLdwQ8tog1xts7Gptj1Zvp90dQBG5rwj91CUOZ8C9P6BesWD3GqhOy33gVeFE+a26NKADBlQwCCfDjq38nQL9StIRS1GBjCfD8lm0knUB0XhhV07wtucgQdtnF11heimaCQv84Jrr3rj+tweVzAWTGzqz+WDrJUxwXmUtQATy0j2wYoKWHtep2kL5jeQr1goKx2TJdVqL/J4YHqUBV5+3o98zCldOov+qkY4AdDvFVt5s4iVsdy+V6e1YPSn6ZJLsg93ZXU/xpgRossbmsEIfmsru4d5lAmvOM1RmYA6SzBXBuOBaaOm64XuswD/BkIZjicFcCBbQXt7GbQI+wqAWMXXr9HBiPea7g3Rz7l/1Se1tjJ4bJfsEJjbVlA2EHB4kxD/oK26F7WZcM5TjOY/1t/U0R3dvP+WA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SA2PR10MB4474.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(346002)(366004)(39860400002)(376002)(396003)(136003)(66446008)(66476007)(66556008)(66946007)(64756008)(6506007)(186003)(478600001)(26005)(33656002)(83380400001)(55016002)(76116006)(9686003)(4326008)(7696005)(110136005)(8936002)(2906002)(54906003)(52536014)(86362001)(71200400001)(44832011)(4744005)(316002)(5660300002)(8676002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?X9oYXumZe21vzsswokAbHiw76EERo7e7voFCgQLpeErz5rgNyWT1wlvG/fjQ?= =?us-ascii?Q?nQ01zLA3gW5WO3XHtbY46s8d01Icsg7SZWna/PDrGmFyWC0Dkx1aNSXj5myC?= =?us-ascii?Q?p0Jpn6gpB9K2bNzfvTrRozJyCaQP6eoHleke03XRh2kFL3A8raBDkWJYA/w7?= =?us-ascii?Q?Vv7qFgC8oTYnRl7umKocgQsnb1RvszoHkD3UT0XeCwzWYydCFaQhyofC/YaE?= =?us-ascii?Q?srTyiEjd/m0us+KCZMl2AQ309xdd5DIRqSMjNJfXU4bSCWNJPMZEpvhsv3DW?= =?us-ascii?Q?tv9LLfJBDFqAC6ltPlS904/f8TlVdJmpBy6EgB9L3JuVgg3qC5q9NRiICpKM?= =?us-ascii?Q?ck5ZWAEEMIBJjFuymyDQW8mxX78P8JJohBDM70z/cO6G6ts8XgNDj06qnDYl?= =?us-ascii?Q?BUj6ACou3iCdBf91OVCqVk3GG/8YYtGdIujCYAcYEwHieJFZ0xZ6hwYbfhpA?= =?us-ascii?Q?J3+hU/da+xWGWnS2WxdV+GB91HF4jQFHEFTXSqDXpQyPlWs0fyHylbRx8d9z?= =?us-ascii?Q?L5S+XYtwYdt9g32+pTEMbBpVNKyxMJz9E5a/cNwWSEjurvuZOK7dlSFRDT4T?= =?us-ascii?Q?XIUzzedYnMuJnehH/4ULN6JNcHi7phBOGQ+3nt7vCy4A041ZBAyXYlBA6hsf?= =?us-ascii?Q?wCehs6noWLlP8f9PHd1WQwAGzVKMixviWDR1NtYdNWSM+GocKacDHhm4pach?= =?us-ascii?Q?EtRSV/HSvySib1TTn/gSZNvrcPpKYy7geIGxB1eFCn58yJqqIAS7O9nZFvkN?= =?us-ascii?Q?UJKX7MMSVTAO2JR7eRsT+5djWVSesTU9I4wW1/3kBdrBHVbMC2VeCqmP73lB?= =?us-ascii?Q?P/J3C7o3aln1enUuSMsENdj37dbNJmTO+TgyqnH9dNEczxhylHqm9sACTVUt?= =?us-ascii?Q?rqWJaS4UfKnAxwjo9KWvPiiFrx0VOAnLOY7b5zW6mHWt/ZMDzP0oN3XFkC+F?= =?us-ascii?Q?X7E1UIRnHRDZNuM3ow9bEWIkiXMDgPOl8Nh53tKfe2ZdrdR5xthqAuOdxAAI?= =?us-ascii?Q?8vQD9rs37uDkMV7f0uw3301Un4Ht+g0HRxCtqYcoLubhNXDy9LyLB8f5zE9z?= =?us-ascii?Q?axdR92ZW?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SA2PR10MB4474.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3f142121-2b0b-46a2-3351-08d8c6128c5c X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Jan 2021 18:03:43.8045 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: y3j2KvRpoAK+6GA0tdOrvfGTGxAw6yyQRrODHtP1tecS5rcWdgZ6fcNFrYQe40ngu/157Wg+LsLWqJmn2yeeKw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR10MB4475 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9881 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 mlxlogscore=507 phishscore=0 spamscore=0 suspectscore=0 malwarescore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2101310105 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9881 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 clxscore=1015 impostorscore=0 mlxscore=0 spamscore=0 bulkscore=0 priorityscore=1501 adultscore=0 lowpriorityscore=0 malwarescore=0 phishscore=0 mlxlogscore=799 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2101310105 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 46151 Cc: Michael Welsh Duggan , "46151@debbugs.gnu.org" <46151@debbugs.gnu.org>, Sean Whitton X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > What about 'C-x g'? I know Drew will complain about wasting > precious keybinding. Then maybe put it on an existing prefix map? > For example, on 'M-g'. Yep. I gave my general opinion. But yeah, I don't think we need to sacrifice a key for this. We've had `revert-buffer' since Day One. There's no special reason why there's more need for a default binding for it now. And available keys are much rarer now than they were way back closer to the Big Bang. `revert-buffer' is useless in many buffers. That's maybe one reason it has no default binding. And for modes where it's very useful and commonly used it already has a binding. IOW, the Emacs approach has been to let the mode decide whether to bind a key for it, presumably based on how useful it is in that mode. From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 31 13:20:15 2021 Received: (at 46151) by debbugs.gnu.org; 31 Jan 2021 18:20:16 +0000 Received: from localhost ([127.0.0.1]:57982 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6HKY-0002Cn-VA for submit@debbugs.gnu.org; Sun, 31 Jan 2021 13:20:15 -0500 Received: from aserp2130.oracle.com ([141.146.126.79]:42798) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6HKV-0002CS-Mw for 46151@debbugs.gnu.org; Sun, 31 Jan 2021 13:20:13 -0500 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 10VIK5Xq098323; Sun, 31 Jan 2021 18:20:05 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2020-01-29; bh=6Pf7ZEJ4kxmKJAnKsls7j/L8aoyAsGXCDv38FDIXHqA=; b=irv3x0K/1aUF9OLCZYkS23/NVrnoAOasnbazVandNBMUBiWTveq4qnhh3PSx1l2gLlig b17o3uMkJ01Lfi8X0l4LV7teZyu33HchE6oKyTth5hsU31Mi0ezQDbLlkVFuzsaL8LRZ wDeog2HK6QHGKqrCv1GzuxGzFuDorh7cKK7KDZh9OmAnHVJlqVQvcoo+fTqbHS6XV4j3 jIktbgA7ar0nL77015bUTu8mg4NY+PWW9eMz5pHGuEeFJXzRJvUlLyxMPOnW8hi5OAln SVn5Hy4T2jDeXxpH7wGt2NTCH+1f2BNzyfbXfRzEIdRpgAn4Trl8gLV/o0jmiWZW41QN AA== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by aserp2130.oracle.com with ESMTP id 36cvyajuyr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 31 Jan 2021 18:20:05 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 10VIGPGc192489; Sun, 31 Jan 2021 18:20:04 GMT Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2103.outbound.protection.outlook.com [104.47.55.103]) by userp3030.oracle.com with ESMTP id 36dhcu2ytx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 31 Jan 2021 18:20:04 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=F11KBvNUV3haiHvq30YnzrRqH+IlSVxiO7cMZVTaFwZunOmq4NX6fuT2sclLCIwIwlauTg1ue4EyM9eazIBk9EYuk9IM6cPa+5Nqd6/rgok2+yeRGGG3DW9X/knUWoJ2OHIXnU/T+0WUwiuWcTx0hfs9IrjpK9XOUh7PyuXyyX2Z3cTdVZQOQ7Nzls1zRb9FriDqrzKnE+11emKvHBx25Vr9O7oIIP7Up7o8M6Gm70nd8zxKWBz0zry3ouix9nqmay10SprHoD2exhuVcFt8TyttgqjAZsbU2NOwtr2gdP5UNDJ45xmWGixxvT8wy7TuZJwSQ4bpefznnMEPb9GBWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6Pf7ZEJ4kxmKJAnKsls7j/L8aoyAsGXCDv38FDIXHqA=; b=Lu/yOtsD8XMIthcfWw12ZrE8GqkBIVAKofiK0vSpbS/V9ZRFEePknUKV183aNwjVmJYhUTM06BNtK8JCZMzFW+tyjjUruoKGQ5YmOMvSAy5muA02Fm1nZtFXgoOeEbE3SsJplvzA4OoAE43CjY9/j6XLXqGZ0Ik7aNtVMEimHGe071R6LaZHNLH9PDqB6Oj59x0R4YKR3r9Ptdg5GIQWUPvvIbS7TyOds41at7MMYRVgSbY4h/26PX4oHTTZOvQmJPRjuvhl0ov+7sWlg25ZqOjx0675/mH6e41aR/2DwvG2YQk1/am8gLcKewEM0ZQW0Iphjyo88mIVmQBaNhhdeg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6Pf7ZEJ4kxmKJAnKsls7j/L8aoyAsGXCDv38FDIXHqA=; b=Z3budoC3TVM64gBzRU3lgph6ZgHSnHQrg0DeC7a2OaeXYe5W0Rpyg99ajIhBVYukwRREV9uoeDH7Q/xVVFeEIRCqH8R3vsQBBtDoe+MQCY4qhqRfc4rOSk7hzDd17zuS71WfgnESij91IU13qNTbTsFrrNy/VPcFgAN2AbLHSeI= Received: from SA2PR10MB4474.namprd10.prod.outlook.com (2603:10b6:806:11b::15) by SA2PR10MB4442.namprd10.prod.outlook.com (2603:10b6:806:11a::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3805.17; Sun, 31 Jan 2021 18:20:03 +0000 Received: from SA2PR10MB4474.namprd10.prod.outlook.com ([fe80::dc4d:9cd0:2010:daa2]) by SA2PR10MB4474.namprd10.prod.outlook.com ([fe80::dc4d:9cd0:2010:daa2%7]) with mapi id 15.20.3805.024; Sun, 31 Jan 2021 18:20:03 +0000 From: Drew Adams To: Lars Ingebrigtsen , =?utf-8?B?S8OpdmluIExlIEdvdWd1ZWM=?= Subject: RE: [External] : bug#46151: 28.0.50; Set revert-buffer-function in shell command output buffers Thread-Topic: [External] : bug#46151: 28.0.50; Set revert-buffer-function in shell command output buffers Thread-Index: AQHW97crUg/w2/R4O0OK39YoiLzomKpCB5Hw Date: Sun, 31 Jan 2021 18:20:02 +0000 Message-ID: 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> <87a6spigm0.fsf@gmail.com> <87sg6htord.fsf@gnus.org> In-Reply-To: <87sg6htord.fsf@gnus.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: gnus.org; dkim=none (message not signed) header.d=none;gnus.org; dmarc=none action=none header.from=oracle.com; x-originating-ip: [73.170.83.28] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 64b04397-26dc-4592-5986-08d8c614d3ed x-ms-traffictypediagnostic: SA2PR10MB4442: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 7170Bg2f4RS354ezE06NPJ6PVtBcSBCoB9lYeOfDuykfrdmzKqciKq0I6jwcU5vj1ye2e5xPCisphgMufKMdWUXt0tTpHkywRz1FI8V5Mk7Jo6zc+KVDFco5Vi/SeBVJabXz5TX2P2rT/qNhSYucvmqVmK0MrMpwuT6E2OqdWfMAY03WePZLFjEexYG9j9h/L5eOaIFeArlmI75NxG0MKCXHwK0KJ2G/YByKXX8Txaz4z52xfEo80J48qQ15oraiepx7IgaIHp1prr4S/E+J9l8C9BqjxbE2JE0ujnTy2OOk5FcfKbrmaMT1vYT/okRfFOnVvtKtegmaZOYGQtYytvwWVJwiEd4bLIdalbgTTho0sa5M4NKXnYME8XoQnqyZYXKOBKfU9w8wgQsm83lzc4MCLCooe4u30SnRol3lrrCaSrgclsMeNZEfaDw2Fy2/eo/yOtFLc1f3AfPGyHg/IHvpez3oSotK8jBsWp1fn10rlBSrhsKUBqDcZMfXSNeuCjjKLwc5PPsadpPi/hzXdQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SA2PR10MB4474.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(346002)(376002)(136003)(39860400002)(396003)(366004)(66446008)(66476007)(44832011)(4326008)(76116006)(9686003)(33656002)(186003)(64756008)(66556008)(66946007)(26005)(55016002)(8936002)(478600001)(52536014)(6506007)(2906002)(71200400001)(7696005)(110136005)(86362001)(8676002)(316002)(5660300002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?utf-8?B?OEdlVVEvbXN3UVFGWmtoYUJ5VlRjNmNXb2ppT3Fza0UxREpHcy9pWFRraHQx?= =?utf-8?B?K1gvcERSRDIzZTUrSmxWcGNhRmJ6YkhQc2V0TndYeGZITFM1cHI0bTBCMjN3?= =?utf-8?B?TEJJYXpvZkVvUlBGa0VrbkpBcFJzZzdGb2hFdExOd3lFUU9zL2haSGhxTENh?= =?utf-8?B?QURaMTJrUjFPZys2WnR6YkdNSTY2Tm16a0lXc0xjdkJmMFE0eU9SZUN3a2N1?= =?utf-8?B?WWg3WU00VjFtQ1l1dk5NUE1JNVpjOWQwaWZrU3N2UElVWTR5aGxnNDFJNkxM?= =?utf-8?B?azhVL3VVK0FqVVJtOWZNVkU3Yi9vc0t0b3RqSHNUZ2pjU3g1YkxvaUNXQnV2?= =?utf-8?B?eWJpMGdxdGtqbmR1eW55ZEtuQnpqUmJ4ZlJ3cEsrcC9YeUVqOWY4bnRMTktS?= =?utf-8?B?cUhzWlBuWGNSN3AyNXNMNndqcmM3T0czWWN6ZHFOUWJTUC95ZG5FcWxVQ3hh?= =?utf-8?B?aEI2a2h2YWd4RHNEcFUrbnlZeUxCZTNRdHhLWXZ4dVh0R2YxQ1hxai9TRGtE?= =?utf-8?B?UjFGNXhhSDRkNm1yZ3dSbS85Y2Y5RDdwVWZrZ2h0dThjZVZxWEZ4bUI3QkN0?= =?utf-8?B?WHF2M3dvcG9WK1U4TUFKWEYrL1lyRHlQMWk4eGIybnEzTzhud1RGVDJ0Q2Uy?= =?utf-8?B?UGNnNlV2VHN6QmtJTGFHSFd5QWZPR2ozcU92OTBPQ0Z0MmtQTG4rTWZYK1o4?= =?utf-8?B?NzNaaEFocEk4eWRlKytoZEsra3U1WWU3UFN5N0ZRQzVoNUtleXJDdEpUVWJk?= =?utf-8?B?NUVNa1dHWXJpY095bTdNV2czRmVnNHMxalB3MVpRM0VHQ01Ec3BxaW5HWjRD?= =?utf-8?B?K1QrcjhqM0ZvOVF5TERLbVQ5NDMrT3c1Y3daWG1sNlFUUThXSkhXZEdIU2FG?= =?utf-8?B?b3BkeDBDNmdNV214bEFyZ3owVFM2czh3bzA0bjZtb1FvQlhVQ1ZOWXVTa040?= =?utf-8?B?a244aTBhN1BuRndSVFpsNFphY25iSE52Z2JmZEhMVGhLUTlXT2pkSEhkMG1K?= =?utf-8?B?cFBVSzAzL3BQRzlLUzc0UU5UaWpBQUVSZ0FiV0V0Q09rcWRGclBUdG9Xd0c4?= =?utf-8?B?TWhjbkpYOXQvMkpRcEhvbU5QN1A3ekQwNjdBSjIxWEdNdXFINmVYa0dQbXVH?= =?utf-8?B?L0lNekVrdU1EU095WCt4NU1HUG9MU05BQXk4MitkTjVzODMvRTV3ZXZqcmVr?= =?utf-8?B?ZEV0Uml2cnlhemtYeGJNZTlWN3B4MVdsL1FXVGlVV2ptSFNCTVpxMkg0aFAx?= =?utf-8?B?a3BpMjNMYlJUeXRKMUM3WWxpUzJPcUZCZW0rdjRKeGVEemNZejNsUEUza2VN?= =?utf-8?B?T1l3bE9OMDA5ZnRoZTNNY0tOaTZ4cEdFZnh6U2ZneFk4dkpNeVRTOVFUai9K?= =?utf-8?B?SndMcmN4QkZLOUtUTGJ6WVAxUXFiUWdWMW5BNWEycjQ0WGVVY0ptajMrU1FC?= =?utf-8?Q?0kYOtnUM?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SA2PR10MB4474.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 64b04397-26dc-4592-5986-08d8c614d3ed X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Jan 2021 18:20:02.8833 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: SVsA+WD95rCfmTZGvKGUBhg/9GxLycRGeGEO+lfqW85zQF+MUKnZaJo7a4IOzL8hzxhPTTrG2wLZuinvunzkAw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR10MB4442 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9881 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 mlxlogscore=999 phishscore=0 spamscore=0 suspectscore=0 malwarescore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2101310107 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9881 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 clxscore=1015 impostorscore=0 mlxscore=0 spamscore=0 bulkscore=0 priorityscore=1501 adultscore=0 lowpriorityscore=0 malwarescore=0 phishscore=0 mlxlogscore=999 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2101310107 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 46151 Cc: "46151@debbugs.gnu.org" <46151@debbugs.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) PiBIbS4uLiAgdGhlIGBDLXgnIG1hcCBpcyBwcmV0dHkgaGVhdmlseSBwb3B1bGF0ZWQuICBMZXQn cyBzZWUgd2hhdCdzDQo+IGZyZWUuLi4NCj4gDQo+IEMteCBDLWENCj4gQy14IEMteQ0KPiANCj4g V293LCB0aG9zZSBhcmUgdGhlIG9ubHkgYEMteCBDLTxzb21ldGhpbmc+JyBub3QgYm91bmQgb2Yg dGhlDQo+IGFscGhhYmV0aWNhbCBrZXlzLiAgTmVpdGhlciBzZWVtIGV4dHJlbWVseSBtbmVtb25p YyBmb3IgInJldmVydCIuLi4NCj4gDQo+IFBlcmhhcHMgYEMteCBDLWEnIGZvciAiYWFhcmdoLCBy ZWxvYWQgdGhhdCBmaWxlIGFscmVhZHkhIg0KDQpJTU8sIGBDLXgnIHNob3VsZCBpbiBnZW5lcmFs IGJlIGxlZnQgYWxvbmUgLSBsZWZ0DQpmb3IgdXNlcnMgYW5kIDNyZC1wYXJ0eSBsaWJyYXJpZXMu DQoNCkVhY2ggdGltZSBJIGxvb2sgZm9yIHNvbWV0aGluZyBmcmVlIG9uIGBDLXgnIChhcw0KYSB1 c2VyIG9yIGZvciBhIGxpYnJhcnkpIEkgZW5kIHVwIGZpbmRpbmcgb3V0IHRoYXQNCnRoZXJlJ3Mg c29tZSBFbWFjcyBzdGFuZGFyZCBsaWJyYXJ5IHRoYXQgYmluZHMgYQ0Ka2V5IEkgbWlnaHQgaGF2 ZSB0aG91Z2h0IHdhcyBmcmVlLiAgSSBoYXZlIHRvIGxvYWQNCnN0YW5kYXJkIGxpYnJhcmllcyAo T3JnLCBwcm9qZWN0KSB0aGF0IEkgZG9uJ3QgdXNlLA0KanVzdCB0byBzZWUgd2hldGhlciB0aGV5 IGRpbWluaXNoIHRoZSBgQy14JyBzcGFjZSBldGMuDQoNCkkgaGFkIGEgemlsbGlvbiBrZXlzIGJv dW5kIG9uIHByZWZpeCBrZXkgYEMteCBwJw0KKGZvciBCb29rbWFyayspLCBiZWNhdXNlIHRoYXQg d2FzIGZyZWUgeWVhcnMgYWdvLg0KVGhlbiB5b3UgZGVjaWRlZCB0byBnaXZlIHRoYXQgcHJlZml4 IGtleSB0byAiUHJvamVjdCIgDQooc2F5aW5nIGV4cGxpY2l0bHksIEJUVyB0aGF0IHlvdSAiZG9u J3QgbmVlZCIgdG8gcGF5DQphbnkgaGVlZCB0byB0aGUgZmFjdCB0aGF0IERyZXcgdXNlcyB0aGF0 IHByZWZpeCBrZXksDQp3aGljaCBpcyBvZiBjb3Vyc2UgdHJ1ZSkuICBBbmQgb24gYW5kIG9uIGl0 IGdvZXMuDQpJIGNob29zZSB0byB1c2UgcHJlZml4IGBDLXggLycgZm9yIHpvbmVzLmVsLCBidXQN CnRvbW9ycm93IEkgbWF5IGZpbmQgdGhhdCBzb21lIHBhcnQgb2YgRW1hY3MgaGFzIGJlZW4NCmdp dmVuIHRoYXQga2V5Lg0KDQpVc2VycyBhbmQgM3JkLXBhcnR5IGxpYnJhcmllcyBzaG91bGQgcmVh bGx5IHN0YXJ0IHRvDQp0YWtlIHByZWNlZGVuY2Ugbm93LCBJTUhPLiAgRW1hY3Mgc2hvdWxkIHRy eSBub3QgdG8NCmJpbmQgYW55IG1vcmUga2V5cyBieSBkZWZhdWx0IC0gc3RhcnRpbmcgd2l0aCBg Qy14Jy4NCkFuZCBjZXJ0YWlubHkgZm9yIHRoaW5ncyBsaWtlIGByZXZlcnQtYnVmZmVyJywgd2hp Y2gNCmhhdmUgc3Vydml2ZWQgZm9yIDM1IHllYXJzIHdpdGhvdXQgYSBkZWZhdWx0IGJpbmRpbmcu DQpZQUdOSS4NCg0KVGhlIGRheXMgb2YgdmlyZ2luIHRlcnJpdG9yeSBmb3IgcGlvbmVlcnMgdG8g Z3JhYg0KYXJlIG92ZXIuIDstKSAgQW5kIHNvbWV0aW1lcyB0aGVyZSBhcmUgYWN0dWFsbHkNCmlu ZGlnZW5vdXMgM3JkIHBhcnRpZXMgYWxyZWFkeSBsaXZpbmcgdGhlcmUuLi4NCg== From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 31 13:46:35 2021 Received: (at 46151) by debbugs.gnu.org; 31 Jan 2021 18:46:35 +0000 Received: from localhost ([127.0.0.1]:58000 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6Hk3-0002sz-Fx for submit@debbugs.gnu.org; Sun, 31 Jan 2021 13:46:35 -0500 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:49843) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6Hk1-0002sl-N6 for 46151@debbugs.gnu.org; Sun, 31 Jan 2021 13:46:34 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 6A2838B9; Sun, 31 Jan 2021 13:46:27 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sun, 31 Jan 2021 13:46:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spwhitton.name; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm2; bh=3f6V41yARJAG0ci38XqrCRIpbC HKfffE7BBnzwZ+SLk=; b=H2C2lWgDe43KmMkAMRsNXZ9UYwoWd5USiHHjEjWZ1b NiXSj7MFCbCW3xV5tuZwM9PM/xuGwdwwI9IIAURY3o5cOsfaE23o3iYfFTW6UujW Kee+k1zXbiccVLBGphqV1gv+fhyWldlsGESBQfYiQIWD0ILjxFAxxQwyay1MKSFN crhOt0yNhoHudFuVrUleb1hXVJ3gT4cKUOg1FXQDHP2IP8zLW3FswLGNDMhPjdVn eq31EvTLg8oqvaI9rYUEklPNAkH70QR6eD8LHDg+PRXLXsgiNNkWiHmkLnH/1GH7 mghFLX7rfgezXTV5Z/hmG3FOmZwTVT5t66reYSvQVrdw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=3f6V41 yARJAG0ci38XqrCRIpbCHKfffE7BBnzwZ+SLk=; b=PbeuTWB08fvCJkeLpH+Wp/ O9ke8bEskPpbIY9WswINWBM9unk/ep+8BcYvSfkj0oYMA0KPvkMMWOiKviF4pDBT mZTlNKBehcM6yy+SgcOSBYhdxFlOTluTYSJxC8pgBRzdAFhyFdGp1lFISKwUQNob c5e98THfNmnq+AQrd8qWDuYz9Bu36qteiVWfPUw3XmIYt9A2ndcgHilWpKIgVoXy rrkTKORylsg4A8d751EKIpQ9BHfn3u0f5crZO2bgUcOMVoynJPwQH49bws2FnIlW b8AoMuejDSzqqPb99+I5XTkl2Yb+Kd9Y+Z7CRSZT06WCIuJom92nxZPchQhgNUbw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfeeigdduuddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufgjfhffkfggtgesthdtredttddttdenucfhrhhomhepufgvrghnucgh hhhithhtohhnuceoshhpfihhihhtthhonhesshhpfihhihhtthhonhdrnhgrmhgvqeenuc ggtffrrghtthgvrhhnpeegtddvheegfffhffdvfeefhffgjefflefhteevffffkeetgfdt jedtiedvtdevheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehsphifhhhithhtohhnsehsphifhhhithhtohhnrdhnrghmvg X-ME-Proxy: From: Sean Whitton To: Lars Ingebrigtsen , Michael Welsh Duggan Subject: Re: bug#46151: 28.0.50; Set revert-buffer-function in shell command output buffers In-Reply-To: <875z3dv9o4.fsf@gnus.org> 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> Date: Sun, 31 Jan 2021 11:47:12 -0700 Message-ID: <87mtwpt03z.fsf@melete.silentflame.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 46151 Cc: 46151@debbugs.gnu.org, Juri Linkov X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hello, On Sun 31 Jan 2021 at 08:37AM +01, Lars Ingebrigtsen wrote: > 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). Well, C-c C-r is major mode territory, right? So would not be suitable for a global binding. > Any opinions? The C-x g suggestion from Juri seems the most reasonable so far. To be honest I am inclined to agree with Drew that the command is not worth a global binding. Most people probably use it infrequently enough in buffers where it does not have a local binding that they can just access it with M-x, and those who do use it more frequently than average can add a personal binding like C-c r. -- Sean Whitton From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 31 13:49:47 2021 Received: (at 46151) by debbugs.gnu.org; 31 Jan 2021 18:49:47 +0000 Received: from localhost ([127.0.0.1]:58017 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6Hn9-0002yG-4U for submit@debbugs.gnu.org; Sun, 31 Jan 2021 13:49:47 -0500 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:48647) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6Hn7-0002y4-Sf for 46151@debbugs.gnu.org; Sun, 31 Jan 2021 13:49:46 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 0961398B; Sun, 31 Jan 2021 13:49:39 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sun, 31 Jan 2021 13:49:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spwhitton.name; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm2; bh=ufgCg/ThO3hdjOrQq5fxTOdqUl mA5OqZuSEu1Wq90x8=; b=TxWcgcXHjzJu1IFYTHNd09Gr0qYzpPXBZNWQXPomIx lxSKWDa53K5csLDbkJjCwZSB4w2PlKE/7cC99hK7xoQ+sbdJaTIiuOZsFzDjDznu FKGmRK99vS9ZmZ2QIVCO2brh/yiU4ClEJ1lpEJ0sedCxwHa7bBAM3+C5J1m9ZklB 42DQcEw+AUC2i80XzoDTKWOmVBkpiZkaHVqw+oYa0xdPkLPhI13pXqYzwsy4KyOT tbvAqKe2V0HDxUnxVdx28E3kHM6mAotWvwqzYcx0kw4f+mtRPvkVFsKNCT/vZP0k MSzuMfCY5PPEAW8KYiiGyzp3y3kBPjQRdS1J7Q3Gg/4g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=ufgCg/ ThO3hdjOrQq5fxTOdqUlmA5OqZuSEu1Wq90x8=; b=doNdDC3jI+3EM+MyPMY5Rz Q1d6uDwXNt/mJW9D1E32ZhUi9Bsy6kCAbBC0zlI45gNE9CwQtAJxAqPPmnQxCuDF a/6P9j3L0eZdWK/cjy97YYpwQ5l9ygi6ppeYIOhJ8vyqk1TyVLrGeds+35bkRSE8 hm3+5v5CFXP/ehTVXbHq84SpmSpw1Kk4qU9dqLE1NQ52cxLh94CiuTBTaIBQWRlk rvPRZHu54z/NvW7t8MWVPc7WL9NukIqKk7QaOgNlJs3pXbgASXwO32IgUj4d6uZA diGW5ZxL3FkfzbKSdViM6qsqHosTdXmvzT6ij/2QBZ3cK1x7MvIcLh2MmoMnJZzA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfeeigdduudefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufgjfhffkfggtgesthdtredttddttdenucfhrhhomhepufgvrghnucgh hhhithhtohhnuceoshhpfihhihhtthhonhesshhpfihhihhtthhonhdrnhgrmhgvqeenuc ggtffrrghtthgvrhhnpeegtddvheegfffhffdvfeefhffgjefflefhteevffffkeetgfdt jedtiedvtdevheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehsphifhhhithhtohhnsehsphifhhhithhtohhnrdhnrghmvg X-ME-Proxy: From: Sean Whitton To: Lars Ingebrigtsen Subject: Re: bug#46151: 28.0.50; Set revert-buffer-function in shell command output buffers In-Reply-To: <87sg6j0wyg.fsf@gnus.org> References: <87lfcdd1he.fsf@melete.silentflame.com> <87im7gward.fsf@gnus.org> <87wnvwte7y.fsf@melete.silentflame.com> <87a6ssus1o.fsf@gnus.org> <87tuqztwyt.fsf@melete.silentflame.com> <87sg6j0wyg.fsf@gnus.org> Date: Sun, 31 Jan 2021 11:50:26 -0700 Message-ID: <87im7dszyl.fsf@melete.silentflame.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 46151 Cc: 46151@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hello, On Sat 30 Jan 2021 at 07:18AM +01, Lars Ingebrigtsen wrote: > Sean Whitton writes: > >> This sort of thing could be pretty annoying if you happened to want to >> type the letter 'g' and thereby reran the command .. > > Indeed -- I was thinking about the `M-!' case only, and whether we'd > want to change the mode of the resulting buffer to a new mode that > inherits from `special-mode' (and `special-mode' defines the `g' > keystroke already). > > That's not appropriate for `M-&', I guess, which is in `shell-mode'... > but is that a good mode for command output, really? I think it's in shell-mode to facilitate interacting with the command while it is running -- for example, using C-c C-c to sent SIGINT, and also just typing into STDIN. So we're talking about switching the major-mode at the point the command exits, which seems like it could cause frustration -- imagine the command finishes up just while you're typing into the buffer and you happen to type 'g' ... >> How about binding C-c C-r instead of g? The mnemonic would be >> Reexecute. In *Async Shell Command* buffers this already has an >> inherited binding but I don't believe it is one that does anything >> useful in those buffers, so should be fine to override. >> >> An alternative would be to put the whole buffer in special-mode, which >> would bind 'g', and make shell command output more like M-x compile >> buffers. Could have a defcustom to turn this off. > > Indeed. Thinking more, I think my C-c C-r solution is the one I prefer; anyone else in favour of that? -- Sean Whitton From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 31 16:50:05 2021 Received: (at 46151) by debbugs.gnu.org; 31 Jan 2021 21:50:05 +0000 Received: from localhost ([127.0.0.1]:58232 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6Kbd-0007Lc-Ar for submit@debbugs.gnu.org; Sun, 31 Jan 2021 16:50:05 -0500 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:56221) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6Kbb-0007L0-CR for 46151@debbugs.gnu.org; Sun, 31 Jan 2021 16:50:04 -0500 X-Originating-IP: 91.129.108.204 Received: from mail.gandi.net (m91-129-108-204.cust.tele2.ee [91.129.108.204]) (Authenticated sender: juri@linkov.net) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 60BE520005; Sun, 31 Jan 2021 21:49:54 +0000 (UTC) From: Juri Linkov To: Tomas Nordin Subject: Re: bug#46151: 28.0.50; Set revert-buffer-function in shell command output buffers Organization: LINKOV.NET 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> <87a6spigm0.fsf@gmail.com> <87sg6htord.fsf@gnus.org> <87sg6h4c2i.fsf@posteo.net> Date: Sun, 31 Jan 2021 23:35:56 +0200 In-Reply-To: <87sg6h4c2i.fsf@posteo.net> (Tomas Nordin's message of "Sun, 31 Jan 2021 11:48:05 +0100") Message-ID: <874kiwdc1v.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 46151 Cc: Lars Ingebrigtsen , 46151@debbugs.gnu.org, =?iso-8859-1?Q?K=E9vin?= Le Gouguec X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > Am I confused or did this discussion drift away from something specific > to shell command output buffers to something global always? > > What was wrong with C-c C-r ? Maybe that existing binding in shell mode > ('comint-show-output')? But if this new binding could be restricted to > those output buffers it might be ok? I mean, in those buffers it seems > to me that 'comint-show-output' (C-c C-r) do the same as > 'beginning-of-buffer' (M-<). I often need to revert the diff buffer to update it after changing source files. But in diff-mode C-c C-r is bound to diff-reverse-direction. So C-c C-r can't be a universal binding in all modes that support revert-buffer. FWIW, I bound revert-buffer to the global C-z r. From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 31 18:31:40 2021 Received: (at 46151) by debbugs.gnu.org; 31 Jan 2021 23:31:40 +0000 Received: from localhost ([127.0.0.1]:58319 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6MBv-0003OH-2v for submit@debbugs.gnu.org; Sun, 31 Jan 2021 18:31:39 -0500 Received: from mail-wr1-f48.google.com ([209.85.221.48]:36647) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6MBq-0003O1-Sg for 46151@debbugs.gnu.org; Sun, 31 Jan 2021 18:31:37 -0500 Received: by mail-wr1-f48.google.com with SMTP id 6so14671651wri.3 for <46151@debbugs.gnu.org>; Sun, 31 Jan 2021 15:31:34 -0800 (PST) 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=BlfCXTN3KLF8KMoT8N7S8FcJUuQCznd82svczEQID1M=; b=rEPMkTTwajI66sCcrwNc+yM8nHeRBnvwyyW93dv876gs2/57ABYa6tWULh/jmkiDca hfwv4RELPptZgt/0Qi/4H85hrBhqmIzdMR2PiPUsYQyZFaCCZge8OfZpoPEZfBD2LfEM sOGjnno5MVJW7yVWfPlg7PPZQjLA4PPCe6WHIbJozzj79sS0DbQM1u47hE5IN0aicva7 Eq5P5UEeHCP1dRParEzsViEwIORfYoDpsWQy1NRchV7agbdW7uL6X4eJ6lMiT2Uh5HPN oA3k+FvfviZCaXrkXt1/gQ9V4Hr5PLZIgStLcHzMSkvwx2Y254v1UQPKtNy7i/Yt+E4e pBYA== 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=BlfCXTN3KLF8KMoT8N7S8FcJUuQCznd82svczEQID1M=; b=e3ZiWLHVsiv6NrPIEa7i52h363hldVUSYlMCDkK0ho8CfbB77D+GyT9hAeJie14379 /pcVeI80Ys87iYCH2hxcBrbyqrkPYfZZHx/n5T7XHOYjgyTlYqRWU1ne5kIpbJ+lKbN5 h3tRNyL2kzZX9PRD6vIJZ4ytvskC//HRUzsUBDzcCEvP19AtfmeOKTdi3IwK/jL1vDwe 6JdNqBRWSClSZWBE/DTfj0NfX2FYoawtnUNHtIM5VCzAVeOXYzyCascohDWsk61Ci2om cXcqDisre/62Th0z8V3yDfGLfVE1AH7leZ3sw+n5dQ1gRLHn11oUb7RmwcRNRswY354m kGCw== X-Gm-Message-State: AOAM532SKAB4PtnznTy3suSGAlNrEKnw0JKPwJgPhzEx3oQGnVTcgS2B hEIdegyzvKcHZ0r9eqvyeOMNripFdes= X-Google-Smtp-Source: ABdhPJxaxCFtcfqGHeIetj2Od0jc/qickn2/73g1CgPd+8dBPnh/ahu+aushxxcnPnlghH4F90yF4w== X-Received: by 2002:a5d:6191:: with SMTP id j17mr15047905wru.281.1612135888529; Sun, 31 Jan 2021 15:31:28 -0800 (PST) Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id x81sm20165287wmg.40.2021.01.31.15.31.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 31 Jan 2021 15:31:27 -0800 (PST) Subject: Re: bug#46151: 28.0.50; Set revert-buffer-function in shell command output buffers To: Lars Ingebrigtsen , Sean Whitton References: <87lfcdd1he.fsf@melete.silentflame.com> <87im7gward.fsf@gnus.org> <87wnvwte7y.fsf@melete.silentflame.com> <87a6ssus1o.fsf@gnus.org> From: Dmitry Gutov Message-ID: <17531095-f533-1f00-e330-2d171e33a258@yandex.ru> Date: Mon, 1 Feb 2021 01:31:25 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <87a6ssus1o.fsf@gnus.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.4 (/) X-Debbugs-Envelope-To: 46151 Cc: 46151@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.6 (/) On 29.01.2021 09:21, Lars Ingebrigtsen wrote: >> I take it a minor mode is more appropriate than a major mode for this? >> If so, I can come up with a patch adding that to simple.el. > Since M-! and M-& use different modes (fundamental and shell), a minor > mode is probably the best, I guess. Maybe have them use the same mode? The purpose of those buffers seems the same, just the methods they reach there are a bit different. And if the common mode will be derived from shell-mode, why not use RET? Its current shell-mode's binding doesn't seem useful there. From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 31 19:07:54 2021 Received: (at 46151) by debbugs.gnu.org; 1 Feb 2021 00:07:54 +0000 Received: from localhost ([127.0.0.1]:58353 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6Ml0-0004Db-GJ for submit@debbugs.gnu.org; Sun, 31 Jan 2021 19:07:54 -0500 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:35219) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6Mky-0004DM-Gu for 46151@debbugs.gnu.org; Sun, 31 Jan 2021 19:07:53 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 886A4961; Sun, 31 Jan 2021 19:07:46 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sun, 31 Jan 2021 19:07:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spwhitton.name; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm2; bh=5/OHrRYp3vDafIU4NkUCHD1xi8 CnfrnoGam8ejMLdAo=; b=lzgHdb1qrkmT4eQwSAwTf6F3etPHrQDNlg+rrvX2q2 tJ+bLycOSIt+g1AqFUbLca42SH+wAPbTa2CtF66+IvpX5ltljycR1HQA91BtbQfM zOaCkBG8t56DPa0byXW2U31VEeJCkvChsgCVtzDhkEj0ggVKJiCvc7RJWMZ/to5V +j1dV5FqpufNiwXAsTzDsXSQd/bBYyVaFxJkhluXwDtvKUfH9WoJMDkALHXRRmXI VxO1dZ41ZnK2IEtW4jcsQ8AeCnYcxGXushdKGF22Kg0SLF3J4gwh29k7Nx1X1ZmD u2Dr46eVQE4A1CFXTjWMf+5A5TgaLJDObfGQigqKx/Rg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=5/OHrR Yp3vDafIU4NkUCHD1xi8CnfrnoGam8ejMLdAo=; b=lbffEn551x8e2tp5nH5C2o JQIQZJ/fWbP1tWGR8rhC+OM601QNiGUzDYIvQV32MOOx35bi2zy6qU0JOj6yahlv D9b2Em3c4DJ/0FZMFaF9HJtmVgZFmXV66q/T98cCxT+YVOwJl+O3fOUUGZoSiWUk WWlh0/zToIkfOmwzlHvouQ85QzU3NFLJht8QUyCby5jK8+0k7QqCa3OvaDfou0+i zGL8n0OvvDmIH2b6erP9j/puF+oFME4NEXzEoXlvNnEOCf60s+MdCUabAG5kH1r3 Ix5uIXLwLpDrbFh7PVhVYAsIz3Mys7YKwsrqJ/ydA+sEikqJP55WcG0wL8aU1hYw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfeejgdduiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffujghffffkgggtsehttdertddttddtnecuhfhrohhmpefuvggrnhcuhghh ihhtthhonhcuoehsphifhhhithhtohhnsehsphifhhhithhtohhnrdhnrghmvgeqnecugg ftrfgrthhtvghrnhepgedtvdehgeffhfffvdeffefhgfejffelhfetveffffektefgtdej tdeivddtveehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepshhpfihhihhtthhonhesshhpfihhihhtthhonhdrnhgrmhgv X-ME-Proxy: From: Sean Whitton To: Dmitry Gutov , Lars Ingebrigtsen Subject: Re: bug#46151: 28.0.50; Set revert-buffer-function in shell command output buffers In-Reply-To: <17531095-f533-1f00-e330-2d171e33a258@yandex.ru> References: <87lfcdd1he.fsf@melete.silentflame.com> <87im7gward.fsf@gnus.org> <87wnvwte7y.fsf@melete.silentflame.com> <87a6ssus1o.fsf@gnus.org> <17531095-f533-1f00-e330-2d171e33a258@yandex.ru> Date: Sun, 31 Jan 2021 17:08:31 -0700 Message-ID: <875z3ctzsw.fsf@melete.silentflame.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 46151 Cc: 46151@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hello, On Mon 01 Feb 2021 at 01:31AM +02, Dmitry Gutov wrote: > On 29.01.2021 09:21, Lars Ingebrigtsen wrote: >>> I take it a minor mode is more appropriate than a major mode for this? >>> If so, I can come up with a patch adding that to simple.el. >> Since M-! and M-& use different modes (fundamental and shell), a minor >> mode is probably the best, I guess. > > Maybe have them use the same mode? The purpose of those buffers seems > the same, just the methods they reach there are a bit different. > > And if the common mode will be derived from shell-mode, why not use RET? > > Its current shell-mode's binding doesn't seem useful there. I think that this would have the same problem as 'g': since the buffers are freely-editable text, just trying to type something might result in a surprise re-execution of the command. -- Sean Whitton From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 31 21:08:50 2021 Received: (at 46151) by debbugs.gnu.org; 1 Feb 2021 02:08:50 +0000 Received: from localhost ([127.0.0.1]:58397 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6Odz-00071Q-IV for submit@debbugs.gnu.org; Sun, 31 Jan 2021 21:08:50 -0500 Received: from mail-wm1-f49.google.com ([209.85.128.49]:39374) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6Odu-000718-FV for 46151@debbugs.gnu.org; Sun, 31 Jan 2021 21:08:46 -0500 Received: by mail-wm1-f49.google.com with SMTP id u14so11816327wmq.4 for <46151@debbugs.gnu.org>; Sun, 31 Jan 2021 18:08:42 -0800 (PST) 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=MPbC9Fih9MTReFAkG2bySatA/ZUARfViqf4lZ9EtjHs=; b=Pnqpr+XMf6xEfZ4Ny5apnYbX6nY1GTHquJRaHxLVr3ecj4oV0WLIvqZiiwA4Ir5JDp q/OmWudek0MeClw86EGna9oltyzBAkHsDaAQycWOTM+FP2XE2xDnaUge6PzKNXRrMobC AbZiKwmiFX6FQHKhj7IvfJfaORsH2HHrjKWp5VcDd9wxzSopiEMhi2WiZBz1ldzdo2o8 fxuUXd3M8ESzjXBvWFXiULT54quDQRJ/DCvdQ5UHGGYkgWFr62/4X6ka96PS8yKQCkEQ KAUl2zSB93uQiT/WhHxhXTUdPKxRCfsuhPqjBW/vJD+32gcAwD/DBTGphm4TuHmdXlpy /g1g== 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=MPbC9Fih9MTReFAkG2bySatA/ZUARfViqf4lZ9EtjHs=; b=qtJl2ZNvNpyWjcsuLob5wwFvdoD+i1Td3G7ccMO7UgBf1VtdEYSbbv7prL2g43m//b ptb6t9j8JEwqZGKBYe+BQwYStpaQDRSrXkZ5+/M8YKGvSQ4xDMPZtvs+9yPzOgWGw+0T EVxdoT7axX4STrJRfU5ZnpvYDLpvcfc9uRQp/mdMYW7IyNJ/assZuIWJWzNiVzET8ZFF DmfPlOaNk00Kka7hhIduYpcIZLtYPrgY/BLT5fpHOy2s7yWf/IcBRi0CAvWTVOh3xzb0 VlaXT+TMKxiw0qi5muP/oKrXUmsV7EMogcPEkvxlj36ASftYiQAM/6YutUcmqrsZkNhh mItA== X-Gm-Message-State: AOAM532O5+oE7d7Qp2TQrXx61JDALXZLe8Mp2S2NwUCjLoxosKtK/HU6 6w/D9zpthv0bmmh+5+EzB5/4v/00UT8= X-Google-Smtp-Source: ABdhPJzxVMHsWMOiK2Rqcu7KLmd6xSAFM/+f1bnClaHuavfjSCOu/iK7+/2ron+0dCHAMovLBbeGgg== X-Received: by 2002:a05:600c:268b:: with SMTP id 11mr13041836wmt.132.1612145316313; Sun, 31 Jan 2021 18:08:36 -0800 (PST) Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id v4sm28514293wrw.42.2021.01.31.18.08.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 31 Jan 2021 18:08:35 -0800 (PST) Subject: Re: bug#46151: 28.0.50; Set revert-buffer-function in shell command output buffers To: Sean Whitton , Lars Ingebrigtsen References: <87lfcdd1he.fsf@melete.silentflame.com> <87im7gward.fsf@gnus.org> <87wnvwte7y.fsf@melete.silentflame.com> <87a6ssus1o.fsf@gnus.org> <17531095-f533-1f00-e330-2d171e33a258@yandex.ru> <875z3ctzsw.fsf@melete.silentflame.com> From: Dmitry Gutov Message-ID: Date: Mon, 1 Feb 2021 04:08:33 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <875z3ctzsw.fsf@melete.silentflame.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.4 (/) X-Debbugs-Envelope-To: 46151 Cc: 46151@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.6 (/) On 01.02.2021 02:08, Sean Whitton wrote: > I think that this would have the same problem as 'g': since the buffers > are freely-editable text, just trying to type something might result in > a surprise re-execution of the command. Fair enough. But following that logic, having a easy global binding for revert-buffer (such as 'C-x g' or even 'C-c C-r') is likely to be dangerous. It could still be possible for command output buffers, if we switch them to a special-mode derivative. Just how important is the ability to freely edit those buffers? Compared to being able to easily re-run the command. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 01 00:43:59 2021 Received: (at 46151) by debbugs.gnu.org; 1 Feb 2021 05:43:59 +0000 Received: from localhost ([127.0.0.1]:58505 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6S0F-0003pS-Au for submit@debbugs.gnu.org; Mon, 01 Feb 2021 00:43:59 -0500 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:44545) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6S0B-0003p9-5z for 46151@debbugs.gnu.org; Mon, 01 Feb 2021 00:43:58 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 17E899D9; Mon, 1 Feb 2021 00:43:49 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 01 Feb 2021 00:43:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spwhitton.name; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm2; bh=PYZNsF5jYtsWyvAstN09uf/rih PWzjkTgMs01kvh0Zw=; b=ieYp2+J6vd8XeS1f615oIrK8OIrOlbUz1l5gjVoqoE 3Fvq9modbLYEyaiCUTYoMLFU89/oRoGV05VxgGXOYK4+S7OtWTxsSv3yxDcfeu1z SUUvJnCbj+PeT/u4hLrPxn3F0d1MUniTm+R2xT3iREhNKnthx7P1gVhQ72VGuSmG E9M/wC9cls2tgcXpSTw6HXJvDYJa5AQv6QS3ee2BPGVsZ7fRyvZM82LXxnU4d2XM d5AP9W2nznG97+/VwQGDpUbWyj82iI9IlYGwExThjl0exZkL5k2FuL8j6CbNP/UL oZb3tloSZo+M7wwX6f3mJcP1OjDtZD1Vw8EryhSxP3gw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=PYZNsF 5jYtsWyvAstN09uf/rihPWzjkTgMs01kvh0Zw=; b=rnDt+mtyTizI0M63l/HTGi HlLSdYGKNivDotd+yzmuaU5v5ZnwQOa4NS8NgE/Ov6z1RHbZfA3nSDihoTUPpWCr dNtFhNB482AmlCQ2QtcI+ExlmelmiwlAkP1hPuera9ojKMjhBUyIIzp4Z5GSKcZ+ GVpp0otNlQxKBJswDvI+XvnYkJ22FmROLbMDmE52pjVotrVxkgLLFOmaFzJqI4/N 2TDjOtEMjOccLNAiAq37lR8TZ3lFytACW/ykldZshVde65U2PNA75+M+X0dtvDrU g/ZqBF2sFFQM3WzDhcyEhBjlKsYptvtPs+WqrFhh3/vefjHP0Isr2GiTVm4PS1oA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfeejgdekgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffujghffffkgggtsehttdertddttddtnecuhfhrohhmpefuvggrnhcuhghh ihhtthhonhcuoehsphifhhhithhtohhnsehsphifhhhithhtohhnrdhnrghmvgeqnecugg ftrfgrthhtvghrnhepgedtvdehgeffhfffvdeffefhgfejffelhfetveffffektefgtdej tdeivddtveehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepshhpfihhihhtthhonhesshhpfihhihhtthhonhdrnhgrmhgv X-ME-Proxy: From: Sean Whitton To: Dmitry Gutov , Lars Ingebrigtsen Subject: Re: bug#46151: 28.0.50; Set revert-buffer-function in shell command output buffers In-Reply-To: References: <87lfcdd1he.fsf@melete.silentflame.com> <87im7gward.fsf@gnus.org> <87wnvwte7y.fsf@melete.silentflame.com> <87a6ssus1o.fsf@gnus.org> <17531095-f533-1f00-e330-2d171e33a258@yandex.ru> <875z3ctzsw.fsf@melete.silentflame.com> Date: Sun, 31 Jan 2021 22:44:35 -0700 Message-ID: <8735ygtk8s.fsf@melete.silentflame.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 46151 Cc: 46151@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hello, On Mon 01 Feb 2021 at 04:08AM +02, Dmitry Gutov wrote: > On 01.02.2021 02:08, Sean Whitton wrote: >> I think that this would have the same problem as 'g': since the buffers >> are freely-editable text, just trying to type something might result in >> a surprise re-execution of the command. > > Fair enough. > > But following that logic, having a easy global binding for revert-buffer > (such as 'C-x g' or even 'C-c C-r') is likely to be dangerous. Sorry, I don't follow -- my point is that SPC and g are usually self-inserting, so without having any intention of doing anything other than typing text, you could trigger a reexecution of the command. C-x g and C-c C-r do not have that property. > It could still be possible for command output buffers, if we switch > them to a special-mode derivative. Just how important is the ability > to freely edit those buffers? Compared to being able to easily re-run > the command. Well, they need to be editable while the command is running as you can send text to process' STDIN that way. Having them suddenly stop being editable when the command dies has the same problem as above if the user happens to be typing 'g' a moment after the command dies. -- Sean Whitton From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 01 03:50:02 2021 Received: (at 46151) by debbugs.gnu.org; 1 Feb 2021 08:50:02 +0000 Received: from localhost ([127.0.0.1]:58711 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6UuH-0000P5-Ui for submit@debbugs.gnu.org; Mon, 01 Feb 2021 03:50:02 -0500 Received: from quimby.gnus.org ([95.216.78.240]:46182) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6UuF-0000Oq-QO for 46151@debbugs.gnu.org; Mon, 01 Feb 2021 03:50:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=KZOOl+KQll+M7+/M/CLaskQRbuvJuc3HgWGucz1d8OE=; b=ud083vu/ZbtGcTUS208K8o+OmX PKK6MDg0FF/mf1dCfbNsyC+90xKp7j1PMzms0uiaMXZFvkvcn9g8sBVrxBbNblD0QgvWR2ir5AnPt AE5qCV9lOvFyoJAeEh6ZF7VKXNsc4K0qeVfy/oMP5uwx+sZi1PyxC/epLQWNtG7Id/Nk=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l6Uu3-0007D6-Pa; Mon, 01 Feb 2021 09:49:53 +0100 From: Lars Ingebrigtsen To: Sean Whitton Subject: Re: bug#46151: 28.0.50; Set revert-buffer-function in shell command output buffers References: <87lfcdd1he.fsf@melete.silentflame.com> <87im7gward.fsf@gnus.org> <87wnvwte7y.fsf@melete.silentflame.com> <87a6ssus1o.fsf@gnus.org> <87tuqztwyt.fsf@melete.silentflame.com> <87sg6j0wyg.fsf@gnus.org> <87im7dszyl.fsf@melete.silentflame.com> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEUKCAYtJx9fWEqK gHKzp5v////iIdWkAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+UCAQggE1cIIFAAAAGhSURBVDjLlVOB kdwwCAQnBQBuwEIpICe5gf9T/zVlkeSzLslnJjvjmzMLywojItaBXEvSC0JA/PFkVtzBxKtoxMmY xIq61woKAVbvFYYnF0gFCgrM6wFatiQW6QOl/0QFm4tafcPRe6gTJ1SUfMXPQRCHk+g89c72GHGD 3ThGRk17nrU1GRV2sNvM7fikSaSUDzRoF+qoYPZQOdtNTFe0v0Qm8XO6qosM8NRpl1Z9hJUu7KvS B93gtQDv2yVF25uSmrxKUjrbs/lZ+2c8aOmC0IMjByM7LJfr8DB26H7iQ8newstVIs5CmlsrMhre alaLy/6sic5JzJVwz/XB8Vm3/OxEbxlNkEya/KBNvGeHeHwmi90RjgDtrw7HJjiO8Dwcj1+l79hD x56xy+0Hu0Vb4b6xnGipAL7NxPeKNcPeCf4t7ybsr1GZS9HvyiKs97AADc+aF4J/BFEwDU68LwSR D2BEcZuEtc8LjxluE7SUeZWCNfMMOdxN9gjrZcEZlxclqiAwojEeuMkwy90w39vIKn8OqhfoZL8G /4Pkr0ml/8YvoI5XsdQ7Bh8AAAAldEVYdGRhdGU6Y3JlYXRlADIwMjEtMDItMDFUMDg6MzI6MTkr MDA6MDBfTrVOAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIxLTAyLTAxVDA4OjMyOjE5KzAwOjAwLhMN 8gAAAABJRU5ErkJggg== X-Now-Playing: Normil Hawaiians's _What's Going On?_: "Going Down" Date: Mon, 01 Feb 2021 09:49:46 +0100 In-Reply-To: <87im7dszyl.fsf@melete.silentflame.com> (Sean Whitton's message of "Sun, 31 Jan 2021 11:50:26 -0700") Message-ID: <87bld4rx3p.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Sean Whitton writes: > So we're talking about switching the major-mode at the point the command > exits, which seems like it could cause frustration -- imagine the > command finishes up just while you're typing into the b [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 46151 Cc: 46151@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Sean Whitton writes: > So we're talking about switching the major-mode at the point the command > exits, which seems like it could cause frustration -- imagine the > command finishes up just while you're typing into the buffer and you > happen to type 'g' ... Yeah, that wouldn't be good. > Thinking more, I think my C-c C-r solution is the one I prefer; anyone > else in favour of that? I think a global `revert-buffer' binding is the way to go. How to reload a file is something that comes up all the time, so I think it is high time it got bound. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 01 11:14:26 2021 Received: (at 46151) by debbugs.gnu.org; 1 Feb 2021 16:14:27 +0000 Received: from localhost ([127.0.0.1]:32963 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6bqL-00004v-NP for submit@debbugs.gnu.org; Mon, 01 Feb 2021 11:14:26 -0500 Received: from userp2130.oracle.com ([156.151.31.86]:40450) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6bqH-0008WM-Pc for 46151@debbugs.gnu.org; Mon, 01 Feb 2021 11:14:25 -0500 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 111FeGh1187630; Mon, 1 Feb 2021 16:14:16 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2020-01-29; bh=9HfyCoJa2quwzrM+U+v/SLdPfECuEmgrS4NPtNxnYJY=; b=jtJZA6av7qSuNGWkoaSidCzhmGhPJuPem3ZN/GG+VNUGzjrwrqTMjr+YuKZfi9+i3V+b UzN16lmHUMrKVtXDFYLqILPrDmy8U+FkPOF6vtxdItAqMT95CaQghaLxTD/8Ld8uH3kr pW+xq8HskALwvy3ZPBotcRgF3QsVAtLTQwtDZMjiTdyQi4Ed+KjGtm/90FGiHKfRkLi+ mSnDoCz8ULtDZd69Z69NG2hxUTJpNS5jpaJCGLF6YutleI3QYuCm5u7Wwrqu5EaMhVqU F4zF1UY1S1GmNdtmyGPRrDcerQNCQprq6wfWX8O/UzqiUxm7lFmcBiexwC7jMTZiR8dz oA== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by userp2130.oracle.com with ESMTP id 36cxvqx4kf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 01 Feb 2021 16:14:15 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 111Fe9UR172061; Mon, 1 Feb 2021 16:14:15 GMT Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2042.outbound.protection.outlook.com [104.47.66.42]) by userp3020.oracle.com with ESMTP id 36dh7px5um-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 01 Feb 2021 16:14:15 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=luVkJ2GjySHK0oHJxbNYtcp6QBYe42epAcymxDEHNFBDeUTrpdN7/1mNNRrikwEWjfFMXcrS41Pf3j9dxvc+GTR3IMU4rDhSyHqQyG+xsYZOfFiSPYSQZDzmpBiwMA2uFyAow+Ec5YW1o0vcfk5Mv9SNdGsewVZ4cnq4xcq6ofDUosFgScGGarr+9YlYbW7BSWkpNeu1BFOnw8w2/SoxuYm9uxlutEH8FLyWFb4gNbMvRsa8ZF4YGuNmWlHC9oojWwEtunY6yDwcHwSeP0Np3A1jJi4dyW6Q4ZSLY1Nr78PjQIXksywqLCJW77N2kKrr1zA/B5cWz8e0cXgSKfAcMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9HfyCoJa2quwzrM+U+v/SLdPfECuEmgrS4NPtNxnYJY=; b=knUbCqQYcFbE992i1oE1JIZWUnV0Na1BD9XBPcjE7kavwApw9wDUsLgH9NbLMUSZ6Lcs9LjfVfdczmmcwhGvi4jAItrfH0wbaIPYwI6UuotRXlaFChRM2AMqawR5aSPInnUh+YLATKPLi1ygWNPMwvw/xwBfUSad6xL1oZfkBZV/ya5ifYmtmB5XzIP5lmt0Kv9DG53JFphD6Fh/bQIbbwfUZUkKrwXMy+OzxdwVb37XjAamiTloTSyTgGBpDEtUF/BkG+D1r8utnzMPoNJoAGwkWqY/eGP/jKm+tK54dtxjKcz45J+KpzZ5XuFXxa10lBbnUqqK7jzojr37ByeTMw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9HfyCoJa2quwzrM+U+v/SLdPfECuEmgrS4NPtNxnYJY=; b=GFUAVocx0Phb4iUS2eTWhMBOq7JvHxJ56lTf2xomx5pVkK3zNHySrRXflJbsOZndxv6PYghebHNLCy57fklFsUC+1wJsp0V9QictbCEohJ7eB9U9ufuM2JVkMYDUjnDg5tz7HtgqIsJPBIUuG090V9qKjfL4f5RyXqKtkUZc1Cs= Received: from SA2PR10MB4474.namprd10.prod.outlook.com (2603:10b6:806:11b::15) by SA2PR10MB4523.namprd10.prod.outlook.com (2603:10b6:806:113::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3805.19; Mon, 1 Feb 2021 16:14:13 +0000 Received: from SA2PR10MB4474.namprd10.prod.outlook.com ([fe80::dc4d:9cd0:2010:daa2]) by SA2PR10MB4474.namprd10.prod.outlook.com ([fe80::dc4d:9cd0:2010:daa2%7]) with mapi id 15.20.3805.026; Mon, 1 Feb 2021 16:14:13 +0000 From: Drew Adams To: Lars Ingebrigtsen , Sean Whitton Subject: RE: [External] : bug#46151: 28.0.50; Set revert-buffer-function in shell command output buffers Thread-Topic: [External] : bug#46151: 28.0.50; Set revert-buffer-function in shell command output buffers Thread-Index: AQHW+HdpFPsmxuOAFUaGQXAI9OURf6pDdILA Date: Mon, 1 Feb 2021 16:14:13 +0000 Message-ID: References: <87lfcdd1he.fsf@melete.silentflame.com> <87im7gward.fsf@gnus.org> <87wnvwte7y.fsf@melete.silentflame.com> <87a6ssus1o.fsf@gnus.org> <87tuqztwyt.fsf@melete.silentflame.com> <87sg6j0wyg.fsf@gnus.org> <87im7dszyl.fsf@melete.silentflame.com> <87bld4rx3p.fsf@gnus.org> In-Reply-To: <87bld4rx3p.fsf@gnus.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: gnus.org; dkim=none (message not signed) header.d=none;gnus.org; dmarc=none action=none header.from=oracle.com; x-originating-ip: [73.170.83.28] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: f9e9afb1-5326-4a04-342c-08d8c6cc6aa7 x-ms-traffictypediagnostic: SA2PR10MB4523: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: b7foC0fUbNTqkZUo2fE1TSRLwmp4UVy0Kd5Mp9QbNuYwX0DmKK6P7ApJ8RaGIiF/wD49Jb9i6QlQW/mj+YNZYlJisP1FZ5RTSPK13q1b6qXghXTEkg7ICFCR1pO86hyPtDVg8+CgmT4hljERpgKhUy/lizRwQ2dQ4EK7ueZXR5xeqLKDtpXq+YAsKm8spw+TmThv6Txf4Dfc7h/3rQd/Wu3zkbdzNnGDSQs3rd6fhQWKbewqpwGImZCD2pf45KIl0jbQq8rHE5PGR8FJPy6J5eH6LtOPHhkE1g1YBrzR0M4xcN1oktvMa3rpjl0zvPC8ws+/AAtYJmEB9T6Dw3amXI+224HNIAx3viB3IPX4773gb5tclIzEaJFU/Da+sll9VTsAdjNY1VqOcYiAFHpBRXYVyJAGsrfyKjV6yS//O11McB4F0wGHw8oJFFGF4IwYijV1DKk0nAOR9L6bhjzpvGr0Sfw+wo70aP0NvnN8y68/uko/4NML3d8UwQFHkxhaXNfTwmewXMnajI4u44eN6Q== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SA2PR10MB4474.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(376002)(39860400002)(346002)(396003)(136003)(83380400001)(66446008)(66556008)(66476007)(2906002)(64756008)(110136005)(8936002)(316002)(66946007)(76116006)(52536014)(5660300002)(9686003)(478600001)(86362001)(7696005)(55016002)(6506007)(26005)(71200400001)(33656002)(8676002)(186003)(4326008)(44832011); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?kS6XWc42HHfxpJG8gRFhsdwMdWehCSeO4TNOeUbvxHXuN1qL8F037RthF4zD?= =?us-ascii?Q?/eP8fQdfI3h/G29cHjUad6rsG3fO6EFmdutAREtOyH+0OgShWVct4/KpfyBU?= =?us-ascii?Q?uU2jzoVYDVqVZmruGmRMPTwm617YaIxEBn6kLQ30F1P93zyQfNt92JXhOnLz?= =?us-ascii?Q?H7OtN1X5bQR9PaLdACzEM3/RtjxkX6gnSYBNClKZ7zTMyE1riaGtljy8XfKA?= =?us-ascii?Q?e1b8J+JwHep6ov8g5FQs680/jBP2HUvblLxwjrWOvBcHHBVuNrO22eGxAVIm?= =?us-ascii?Q?pcgMb1TpVsr1Ks3ry36R+gurbQB5UDcFTEXlBsrFmP4lQmXyEwGM/tgi7HS3?= =?us-ascii?Q?cz5mlMgj010rCCWg5ZVeHwuYKbu0ICus/LGqeuspeLz4XwzUJJUOT1GfDVXs?= =?us-ascii?Q?oRShWN2fYWNw8adaCrTDV5f4I7VyaH9VjVkYdwaM2SRbM58Poe42BDmsu56D?= =?us-ascii?Q?xKSuNxozPaEa+BWShUUIcN91Q9a7jmh/sl3nBjOXPX2njgvQ95N48TUayivE?= =?us-ascii?Q?5abBelpD93ib8RDCZLidopmj2cqAWs7iLLAahkwaI29yojxcu5U6iEhLEsxH?= =?us-ascii?Q?luBGd5a2ikX4pM4KHIt1q7Blm1HQmHwESLmAnABrohuULJeH4gAV572VQkij?= =?us-ascii?Q?IuIEdtnCZjmXdEya5emo7mHtnGPr113wcRqye6HFzBnNypHhmzWi3jp+dqjT?= =?us-ascii?Q?Q6uQqGgsB9VjQzpLku3f+87xY2e1wb8NQsMbrxTOuGVMnZIuHmN4LrVFRCiw?= =?us-ascii?Q?MHleHs6qfJ5wjHlvhFM/8mt0rbcPdK/JJBF03Ak8btxlnEC7ihxKoW6vfD/6?= =?us-ascii?Q?1SKleBXgNuPgD9fFaqUcwgr4kTxOfTcHlabb0mwBGzRR9owb/6A4GDvhZZY0?= =?us-ascii?Q?Tb1pxXMYnYDQTbHA4Rx/tEbMUR0o68DMUf6wa6sCfNBv2aGjczY7v8piQMsb?= =?us-ascii?Q?5jr8iqRdVrCaK2WyVzPnhSk+uW0ln7gRi+7TYtpuWnBGS+ksGeoXMsnpD52m?= =?us-ascii?Q?toQr2GK0W9Slfq5nnfc9JxxHBEspjbLcrCYWAdnvaTPM2Ed8UFuKxnFKkDuQ?= =?us-ascii?Q?MZAAzlKN?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SA2PR10MB4474.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: f9e9afb1-5326-4a04-342c-08d8c6cc6aa7 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Feb 2021 16:14:13.6472 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: qrL8Dg1bleOTIbebZtyt079d9f0cOm/4AcxAF1glC9B/aupqeCxPlVJIxg8NxOE/dsTaQ77enf+HRzbLsoNnRA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR10MB4523 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9882 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 mlxscore=0 suspectscore=0 spamscore=0 mlxlogscore=985 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2102010084 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9882 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 mlxlogscore=999 mlxscore=0 priorityscore=1501 spamscore=0 impostorscore=0 clxscore=1015 suspectscore=0 lowpriorityscore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2102010084 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 46151 Cc: "46151@debbugs.gnu.org" <46151@debbugs.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > I think a global `revert-buffer' binding is the way to go. How to > reload a file is something that comes up all the time, so I think it is > high time it got bound. I disagree, for reasons given before: 1. Anyone who wants it can bind it. (I do.) 2. It has no meaning for many modes. By its very nature it is essentially mode-specific. 3. Modes where it is useful typically already bind it. And they bind it to a key that makes sense for that particular mode. You just need to use `C-h m' to find out what the key is. 4. Given #3, if you add a global binding for it then there's not much point in those mode-specific bindings. 5. Emacs has been fine for 35+ years without any global binding for it. The "Founders" knew what they were doing in this regard. (Perhaps they were thinking of some of this list.) 6. Emacs should impose a moratorium on itself NOW, to stop binding keys by default. Just say NO. Seriously. The few keys that still have no default global bindings should be left as is, in general - left for users and 3rd-party code. 7. IF many users start using some binding over a period of years THEN Emacs can consider giving it a default binding. Don't be prematurely "optimizing" UI in this way for people when there has been no popular request for it. 8. YAGNI. One opinion. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 01 12:59:47 2021 Received: (at 46151) by debbugs.gnu.org; 1 Feb 2021 17:59:47 +0000 Received: from localhost ([127.0.0.1]:33092 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6dUI-0006sS-Mx for submit@debbugs.gnu.org; Mon, 01 Feb 2021 12:59:47 -0500 Received: from new3-smtp.messagingengine.com ([66.111.4.229]:42711) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6dUE-0006sA-3r for 46151@debbugs.gnu.org; Mon, 01 Feb 2021 12:59:46 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id 0AAC15804F2; Mon, 1 Feb 2021 12:59:36 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 01 Feb 2021 12:59:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spwhitton.name; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm2; bh=mA1t29S1fj8RPGQI76iXK5aRp8 yZvFmJH4Lo8qNTuoU=; b=GufAcoC+G5FKxhCulw4Db6kcbQ6Ohrbj/UwLeF9N4I 1Hy4lIYjlBziXrcSGEyiwTq8wsFGTNrhitZNp5W4DxqcPjqZ59ctlsobimTpqxqs YlLs4S/yMMRQR9+sYPuVOeXy7oJmfpD9pM3HhqgirVE757yCrDkMKM0W08Wuealg og69hkjwS58IhssaeWoon1MIjAfxfbISn/d6YZvAM216Sj87fubtHbsxHOcyrAoP 6OSDxO/dVAkt0g7t/zLzknpKenZPhW9KNJvj4IuTmmxrZ2sfwGjRUqgHuDAobtK7 jl6vsyr3uB/9hkSf7XynYe5DeGvbp6r5qZPbDQvGYGvw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=mA1t29 S1fj8RPGQI76iXK5aRp8yZvFmJH4Lo8qNTuoU=; b=WHVh456UA+xY3tuVNQ8UCw 4vD9GNcoo8+He/kUwJXNTTqUvJ9zVB3VMehHSUIkMvRHP+3FEHeKeyW+Hd89yVBC kaY7bnvJhnHwTH8Vf1gwaMR4EyzB3TLI32H1muFRq4eNMDuZ98md7avvDKEEqe4j Ko5Qtxikx+U7zzSxm3YAvMaaMiYH2OIeqUJWOgpjQN+GEwBocfFeLCLFYHPexCA6 /MKLM41WFspJEZKE2DqhqyO620sZOmfem0YU/Q9ZZICSbWyu3XC6ga4sSukdQFF+ lHo1jkanGKEx09K1rY8OTzFfqsr252xXTy+FsxicuXolQr62WCedRGt935mVxPTA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfeekgddutdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gohfhorhgsihguuggvnhfuohhrthfjughrucdlhedttddmnecujfgurhephffvufgjfhff kfggtgesmhdtreertddttdenucfhrhhomhepufgvrghnucghhhhithhtohhnuceoshhpfi hhihhtthhonhesshhpfihhihhtthhonhdrnhgrmhgvqeenucggtffrrghtthgvrhhnpeei fffhffduhfejgfefueeluedtvedtkedtheeigfeiteelveevkeegudehtddufeenucfhoh hrsghiugguvghnufhorhhtjfgurhepfffhkffuvfggjggtfhesmhdtreertddttdenucev lhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehsphifhhhith htohhnsehsphifhhhithhtohhnrdhnrghmvg X-ME-Proxy: From: Sean Whitton To: Lars Ingebrigtsen Subject: Re: bug#46151: 28.0.50; Set revert-buffer-function in shell command output buffers In-Reply-To: <87bld4rx3p.fsf@gnus.org> References: <87lfcdd1he.fsf@melete.silentflame.com> <87im7gward.fsf@gnus.org> <87wnvwte7y.fsf@melete.silentflame.com> <87a6ssus1o.fsf@gnus.org> <87tuqztwyt.fsf@melete.silentflame.com> <87sg6j0wyg.fsf@gnus.org> <87im7dszyl.fsf@melete.silentflame.com> <87bld4rx3p.fsf@gnus.org> Date: Mon, 01 Feb 2021 11:00:22 -0700 Message-ID: <87k0rr7jnt.fsf@melete.silentflame.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 46151 Cc: 46151@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain Hello, On Mon 01 Feb 2021 at 09:49AM +01, Lars Ingebrigtsen wrote: > I think a global `revert-buffer' binding is the way to go. How to > reload a file is something that comes up all the time, so I think it is > high time it got bound. Okay, here is a patch. -- Sean Whitton --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-Bind-revert-buffer-to-C-x-g-globally.patch >From 4e5db21270cebc6027ad991bffb6e48756f00191 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Mon, 1 Feb 2021 10:56:49 -0700 Subject: [PATCH] Bind 'revert-buffer' to 'C-x g' globally * lisp/bindings.el: Bind 'revert-buffer' to 'C-x g' globally. * doc/emacs/files.texi: Replace 'M-x revert-buffer' with 'C-x g'. * etc/NEWS: Document the change. --- doc/emacs/files.texi | 6 +++--- etc/NEWS | 3 +++ lisp/bindings.el | 2 ++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/doc/emacs/files.texi b/doc/emacs/files.texi index ede382c146..12ceac800e 100644 --- a/doc/emacs/files.texi +++ b/doc/emacs/files.texi @@ -927,9 +927,9 @@ Manual}). For customizations, see the Custom group @code{time-stamp}. If you have made extensive changes to a file-visiting buffer and then change your mind, you can @dfn{revert} the changes and go back to -the saved version of the file. To do this, type @kbd{M-x -revert-buffer}. Since reverting unintentionally could lose a lot of -work, Emacs asks for confirmation first. +the saved version of the file. To do this, type @kbd{C-x g}. Since +reverting unintentionally could lose a lot of work, Emacs asks for +confirmation first. The @code{revert-buffer} command tries to position point in such a way that, if the file was edited only slightly, you will be at diff --git a/etc/NEWS b/etc/NEWS index 29499639e7..c8c9535cfb 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -233,6 +233,9 @@ search string is at least this long. 'lazy-highlight-initial-delay' still applies for shorter search strings, which avoids flicker in the search buffer due to too many matches being highlighted. ++++ +** 'revert-buffer' is now bound to 'C-x g' globally. + * Editing Changes in Emacs 28.1 diff --git a/lisp/bindings.el b/lisp/bindings.el index 43b62f9bbf..9ea188d1a0 100644 --- a/lisp/bindings.el +++ b/lisp/bindings.el @@ -1413,6 +1413,8 @@ if `inhibit-field-text-motion' is non-nil." (define-key ctl-x-map "z" 'repeat) +(define-key ctl-x-map "g" #'revert-buffer) + (define-key esc-map "\C-l" 'reposition-window) (define-key ctl-x-4-map "a" 'add-change-log-entry-other-window) -- 2.29.2 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 01 14:43:27 2021 Received: (at 46151) by debbugs.gnu.org; 1 Feb 2021 19:43:27 +0000 Received: from localhost ([127.0.0.1]:33293 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6f6c-00014W-Km for submit@debbugs.gnu.org; Mon, 01 Feb 2021 14:43:26 -0500 Received: from aserp2130.oracle.com ([141.146.126.79]:51104) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6f6a-00014I-H1 for 46151@debbugs.gnu.org; Mon, 01 Feb 2021 14:43:25 -0500 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 111JXmM0120854; Mon, 1 Feb 2021 19:43:13 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2020-01-29; bh=jijIicEkKPa65m0HHaE6sKupb1sqXMJwqJBPNz5h7TI=; b=LN7SRSPEHbwaQNEOnx4b28qPuLG/NeFWZxRqHOa4ZUHlApFG3G28NMIWG3cnHwKe05jm SDJ4CssXuJ7l4dW9rrZ1+PWyD8StpVynXL7q14ebzxqEK3vmFxQE/A1FzL0sFNM+xZy0 4IfcCXmb6qA7u0XrRBz3K3+mvRkHvF7HqUWIIpcc73ySo7GXeNNQ7Hdc2VGsYBlP9/Ug GzJRTVKFbJZeeHG4o1ydViWHCy4VOwb6UT6KwPF/1glfjc0JiCNDgoS2XUG6NUNWK0Cz THIG4NgVA+kNfBfqI/d4sx789vuXL0uBm7GSqPcu+slhshDR/okRnZ6+INqAuPsi86ng Mg== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by aserp2130.oracle.com with ESMTP id 36cvyaqbtu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 01 Feb 2021 19:43:13 +0000 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 111Jes6p150346; Mon, 1 Feb 2021 19:43:13 GMT Received: from nam10-dm6-obe.outbound.protection.outlook.com (mail-dm6nam10lp2103.outbound.protection.outlook.com [104.47.58.103]) by aserp3020.oracle.com with ESMTP id 36dhbx48yt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 01 Feb 2021 19:43:13 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RVYFjThSwLyANW7xMoll74N7fx80SC16JdGfCPjfWXAHOitOfqGK5ToSc45982P38PDjUUNO73UuDQVh484LXvNLPT3+aQRxyJOsjI7e8kgom+AV+++hcB2QaFIaeB2+WhCJardiTj5+UwD5+iuoJswEMRoVMVgG3GBAAxl79+9rUxv9yhgTIS0b0OZdJqOlLSB68fMfv9i36x7QuTS/W4XNYHHx439L2hkDmwXRY8d+a26rKyHayXVrH1e8/4j3KLEI7NskyBShv7fptNj486sHbpannIOs+C1al9XB7/0+5JCtzyUO06MJGmMO/fuI4OfgpivjjhAc6Umgv1elLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jijIicEkKPa65m0HHaE6sKupb1sqXMJwqJBPNz5h7TI=; b=BEojkWPIy58uDMpcEG7kocSr1VndIWtca27iaGbudrJcRCtZIG/noRQaPI2CWWXbDkW5x7ao9NR055+5TnvTzHXwS+zMH5Qh07isHSmDmBSK+RF8mzb5r9t6mzDIVmQbvZjHqWfm8h/jjRAulypsAykJBYEbWr8BGupFNSgmVh5YCRTy/oaIWecaSnC86yBB39vXKLox3Ia2IX8PFwSI5y5zvzAjXnUzdbINRTMAQuLzDafJqNDDFq156dz5I6oma6Q8ZLzqTGkKnLHnwlcMmSe86pSB9QdplyvawJFYbP59Bk1MmC5iyF6D1yD6ViiJSlvpFFx75rmvtzjbouMV5Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jijIicEkKPa65m0HHaE6sKupb1sqXMJwqJBPNz5h7TI=; b=tzJdjxY/q37pINljz/818V3zOkIy1FOjwCXmDplRuke5kNUg72aGkWo8YNnSe3n16CmdGGclV7zOnnFR4d2rgII7PAGaQVGpjyCX0pyo702xOPhESuxSmVSiTXyDKK2hEtRbXT33pkg4XXXDnPpMN17CS3+HnOSFGDLt3WwByIU= Received: from SA2PR10MB4474.namprd10.prod.outlook.com (2603:10b6:806:11b::15) by SA2PR10MB4428.namprd10.prod.outlook.com (2603:10b6:806:fa::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3805.19; Mon, 1 Feb 2021 19:43:12 +0000 Received: from SA2PR10MB4474.namprd10.prod.outlook.com ([fe80::dc4d:9cd0:2010:daa2]) by SA2PR10MB4474.namprd10.prod.outlook.com ([fe80::dc4d:9cd0:2010:daa2%7]) with mapi id 15.20.3805.026; Mon, 1 Feb 2021 19:43:12 +0000 From: Drew Adams To: Sean Whitton , Lars Ingebrigtsen Subject: RE: [External] : bug#46151: 28.0.50; Set revert-buffer-function in shell command output buffers Thread-Topic: [External] : bug#46151: 28.0.50; Set revert-buffer-function in shell command output buffers Thread-Index: AQHW+MQkLVJLvcE5BU+1cUREAblQDqpDsaNQ Date: Mon, 1 Feb 2021 19:43:11 +0000 Message-ID: References: <87lfcdd1he.fsf@melete.silentflame.com> <87im7gward.fsf@gnus.org> <87wnvwte7y.fsf@melete.silentflame.com> <87a6ssus1o.fsf@gnus.org> <87tuqztwyt.fsf@melete.silentflame.com> <87sg6j0wyg.fsf@gnus.org> <87im7dszyl.fsf@melete.silentflame.com> <87bld4rx3p.fsf@gnus.org> <87k0rr7jnt.fsf@melete.silentflame.com> In-Reply-To: <87k0rr7jnt.fsf@melete.silentflame.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spwhitton.name; dkim=none (message not signed) header.d=none;spwhitton.name; dmarc=none action=none header.from=oracle.com; x-originating-ip: [73.170.83.28] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 62ae76f5-1c8a-4cc8-e9f1-08d8c6e99c09 x-ms-traffictypediagnostic: SA2PR10MB4428: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: xgljus/59RG0uOInmwBwjJDPxKFuuP7dZ7CnttdUTXUfKXZiOq+1cPJ6OUWIRiuPb4aXOcnN9ihrY7yJa4ZlEY9GnYrXjiQvHTUoE6Tn2G4nddZVSs+Db+5bNpSl5gzCmEDbh0ip16gX2U6/GMTX5NBmaIjBLrXuMv+i0507OMujsA3ZMmwVYMABO7mM5m9nv9H4ymC9IcBaCGmWpZFzH7lRtwv9krjzoe6KMtdVc6RAwwh+WPxZr9M6mxvLRZmnAofb5y7MdEW7s5VtmpVrRl5dyXbHXxT6FHzjcffO5v0e++zRQmqyGp0m1M/JymCQDTQYxywoxdj+4k9TZy7f55HzlGozhICiFFbtb8HpLJHup3lAxBG8XaLGKwBIJT4+SLV0SFO76sBZ+jmccEUeNeN8V2E1uO/tS5OKygDFwbc2eYQnEatVRQ5TA4dytQWC0A4dv+B/htpa+E6GZa+KDChFltT5HueVHO4jcmtbyiyMlBw7B3tbbF1enaWTa8S0OiWIZw5x7B9M8LI9ST+GQw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SA2PR10MB4474.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(346002)(366004)(136003)(39860400002)(376002)(396003)(6506007)(66476007)(186003)(55016002)(83380400001)(478600001)(66556008)(66946007)(64756008)(9686003)(33656002)(66446008)(52536014)(26005)(76116006)(4326008)(2906002)(8676002)(7696005)(110136005)(8936002)(71200400001)(86362001)(316002)(44832011)(4744005)(5660300002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?1hpKNhQejpJF9PJJfM6nSZIyWS2LlZ20fcrfCVOxz0KE7m/pXlf7zhvMGH2O?= =?us-ascii?Q?bNFaSUjrxsfAsjNJoaoU4IG+q3RJ1rNs2VvOuDuB/S958FC+cSNoCLORWOxe?= =?us-ascii?Q?TNtARgF24AGx8nLLbEXijoF9O/6SGQoK7eer2T7VihMWJHR8M523sgXWn4oq?= =?us-ascii?Q?UhetF6tMkMdbQj6SZu10yGpOGIVEaBFxUWYe9H8nvg1jW1VxWDFSkT5Xe4VB?= =?us-ascii?Q?zqDIAd/3z4LmI+80uObz5uxZhac7YGZh7LFWc5s41LY++0yWhLSdIQ4vdL7y?= =?us-ascii?Q?0dNXTIwk066/5w99DWCftOR+cc0QXpEwL4+GNvAwOg0udw+uDbMuffbMLZit?= =?us-ascii?Q?vR89t2okz2ta45e1iyvopdQcnfhAmyGrfv9UQymSIhA/6Xzd00ALfXFr8bEn?= =?us-ascii?Q?cxYyGuUPg/fG0kbj5nIkGgudS4dg/+R6i2HxCZswG4yBVgFEm3oe+CFN1iCg?= =?us-ascii?Q?d+H38THOEdNPxgzI3xGiDMZqCf1uluEx1XBDGUMdi3dP/IK1narN7s80UVKO?= =?us-ascii?Q?AqE4P73Vh+rJZur8RuJo3zeNIrgVHl7rtNVYGJ+lvdMP4EN4Pwp2vMgMFbYV?= =?us-ascii?Q?yfXli0mdwR0dy3uSZdNdWRpuE+w3ZodKbSdoRvFpdLy8x5ynAGiPFJ9DldAA?= =?us-ascii?Q?GZ4anu+7iSdurF9KD1wuMu/7bv2AaP/gBQmHWh2jVB2THAZ2iHS9/0pEfCcF?= =?us-ascii?Q?Lhe20dDBGiOdMovvfzPF6R98jRppT1bz7pKj+mScipZzfhueZJx2IB+4z7Hc?= =?us-ascii?Q?Am3/yA5CCtSTJ1AlV2BAxG8O38dnB3GZoMYxwBn/s3UDYxE1Pvx7sLVAsGGX?= =?us-ascii?Q?oXxLGrw6zcWU7AIQG29+hsYEWIokP3trzr3x+KMbjcsm6xBNhNiR3XLzlQXF?= =?us-ascii?Q?5sDpURquwc8s2zWoyUJVY8iqIDJdvExMJJVeGFbaHCjZrevy3St58UguXb4d?= =?us-ascii?Q?s8LtOiX3EjyWs/h2lgnpkyYgZL9ECd2C8pm12WgL+ESAn42oNXZEeuHTDAuq?= =?us-ascii?Q?acNbpdToOChPSDYwHmJ2IDzwUfvUnUUpJFme4ghK812TWZtLSNbKcwee2R2L?= =?us-ascii?Q?VJMDwnZ8?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SA2PR10MB4474.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 62ae76f5-1c8a-4cc8-e9f1-08d8c6e99c09 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Feb 2021 19:43:11.9564 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: q/0EovpGGNI85XlvaVx009hMypJyfLRNkF5O37yKeP4Av0O9v3TRSewTxg+KLp2eS40UiSAe3ZHh0BfOolhDlw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR10MB4428 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9882 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 adultscore=0 suspectscore=0 spamscore=0 mlxscore=0 malwarescore=0 mlxlogscore=999 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2102010104 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=9882 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 clxscore=1015 impostorscore=0 mlxscore=0 spamscore=0 bulkscore=0 priorityscore=1501 adultscore=0 lowpriorityscore=0 malwarescore=0 phishscore=0 mlxlogscore=999 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2102010103 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 46151 Cc: "46151@debbugs.gnu.org" <46151@debbugs.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > > I think a global `revert-buffer' binding is the way to go. How to > > reload a file is something that comes up all the time, so I think it > > is high time it got bound. >=20 > Okay, here is a patch. Please don't do this. Don't remove `C-x g' from the little remaining virgin (non-default) key territory. It is not "high time" to bind this or any other key by default. It's high time to _desist_ from having default Emacs taking over more territory. It doesn't need it, and it shouldn't take it. 35 years with no global binding for `revert-buffer'. No problem - thousands of users and hackers. But now, from one user request Lars decides it's "high time"... No need. All proposals to sacrifice keys to default bindings should really be discussed on emacs-devel. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 01 15:05:08 2021 Received: (at 46151) by debbugs.gnu.org; 1 Feb 2021 20:05:08 +0000 Received: from localhost ([127.0.0.1]:33315 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6fRc-0001dD-3J for submit@debbugs.gnu.org; Mon, 01 Feb 2021 15:05:08 -0500 Received: from mail-wm1-f49.google.com ([209.85.128.49]:35549) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6fRY-0001cc-8Q for 46151@debbugs.gnu.org; Mon, 01 Feb 2021 15:05:06 -0500 Received: by mail-wm1-f49.google.com with SMTP id e15so377226wme.0 for <46151@debbugs.gnu.org>; Mon, 01 Feb 2021 12:05:04 -0800 (PST) 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=/OiCwDh5Kuec5qwRBTKSXm0p7S41umVw+6yHLfZnqAg=; b=m3fjvd32dvASbmSpstoQSwW15tVtjDE9MrUFiAWqYvg+0YBlBelmXMbLUQKGnW1k8R r7DUuYnOqwpzzsoL5eKg/PwCci+4FU4x0P75fXyTcsG/hvzz1mcekfh50E80MZ/GiR/J GUHM+608lj7dVqJHyYKAS7i6vrHGgA3ZbqF2VOfc5Bxd2a2uopXhS3rcMsAvpfdRlTNh HtnMGVeHZhmqoaXasT6f59sDz94yFc7nqFc2fCmBe46e+y6GHzafoCEbnu+7pR2kUShg VwL+SJsijA1iOs45kWoAFVa9r8sthLu47Z3tWYtm0ZogjmGNCkFK7U1+cA9eM0xXleBa 37lw== 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=/OiCwDh5Kuec5qwRBTKSXm0p7S41umVw+6yHLfZnqAg=; b=XLP964/ULCx4lD8jsNgf2ZLvgheKW8jjY9XmVbpGu01crs/kw7INIaRLzc9JMnIbPI ACL+m/TqRu4cCT0GSDFBPcPRpOTodvE0fsBVdrORPf6Os1mtOanRpg9Kr1j7t5WYGf6B EihiOJwDQba1DnWOLB2YRzPhqgIMhtSeKbtRVJZNL27il+GHgJGPrVgzNgALi8c8ZfGZ CeZKmB+rHwmevyW7fAz0j5vFPhFrN/YVBI+Q0hrl5w7lMxQHPzP270e57Bp7XEFKUMGs iynTs4t4PB4NFdvvhY8adzmuEcZmuGgElYuASB2Hya4YFAfxq7Fo1krkenR8Qz00K+BA 35xA== X-Gm-Message-State: AOAM530Yk/2nodYKGSX/6kiD9GG9LUCduPFh2BUP17t+wQG7JL5bJ5dR rwNPDK3y8SWwZZ0jr69CTci4ueeEeYA= X-Google-Smtp-Source: ABdhPJzDLiQAcH2iGInp+04JTaBPLCRkwtgZGV70VyKb7bqBXfJWZFRjSrwjg3iHsgvYPGfcq/qoSA== X-Received: by 2002:a7b:ca4c:: with SMTP id m12mr459332wml.115.1612209898149; Mon, 01 Feb 2021 12:04:58 -0800 (PST) Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id b7sm27770376wru.33.2021.02.01.12.04.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 01 Feb 2021 12:04:57 -0800 (PST) Subject: Re: bug#46151: 28.0.50; Set revert-buffer-function in shell command output buffers To: Sean Whitton , Lars Ingebrigtsen References: <87lfcdd1he.fsf@melete.silentflame.com> <87im7gward.fsf@gnus.org> <87wnvwte7y.fsf@melete.silentflame.com> <87a6ssus1o.fsf@gnus.org> <17531095-f533-1f00-e330-2d171e33a258@yandex.ru> <875z3ctzsw.fsf@melete.silentflame.com> <8735ygtk8s.fsf@melete.silentflame.com> From: Dmitry Gutov Message-ID: <89741b53-a9c3-a4f6-cbd2-985517dceea8@yandex.ru> Date: Mon, 1 Feb 2021 22:04:54 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <8735ygtk8s.fsf@melete.silentflame.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 46151 Cc: 46151@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) On 01.02.2021 07:44, Sean Whitton wrote: > Sorry, I don't follow -- my point is that SPC and g are usually > self-inserting, so without having any intention of doing anything other > than typing text, you could trigger a reexecution of the command. C-x g > and C-c C-r do not have that property. My point is that we could make them all, normally, not self-inserting. >> It could still be possible for command output buffers, if we switch >> them to a special-mode derivative. Just how important is the ability >> to freely edit those buffers? Compared to being able to easily re-run >> the command. > > Well, they need to be editable while the command is running as you can > send text to process' STDIN that way. I see. I hadn't considered that scenario... > Having them suddenly stop being editable when the command dies has the > same problem as above if the user happens to be typing 'g' a moment > after the command dies. ...though, come to think of it, I routinely use a Compilation-based mode (rspec-compilation-mode), where I need to switch to a different major mode temporarily for debugging and shell-like interaction, and then back to rspec-compilation-mode when I'm finished. That works okay. So it wouldn't be too terrible if the major mode is switched to something else when the process finishes. The user will likely learn than quickly, and managing to type 'g' before learning it is fairly improbable. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 01 15:14:04 2021 Received: (at 46151) by debbugs.gnu.org; 1 Feb 2021 20:14:04 +0000 Received: from localhost ([127.0.0.1]:33323 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6faG-0001q1-7Z for submit@debbugs.gnu.org; Mon, 01 Feb 2021 15:14:04 -0500 Received: from mail-wr1-f54.google.com ([209.85.221.54]:37787) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6faC-0001pJ-Fq for 46151@debbugs.gnu.org; Mon, 01 Feb 2021 15:14:03 -0500 Received: by mail-wr1-f54.google.com with SMTP id v15so18060635wrx.4 for <46151@debbugs.gnu.org>; Mon, 01 Feb 2021 12:14:00 -0800 (PST) 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=aozmyuPr9W0YbSIJ/59Ct4dDiIlOppREw3lbSxYvyR0=; b=uCyro3DkCeqa/ySfHo84cxkR3KIf+NjKwMeCiNiRMHufykaSRKV/ufFvY+kU+V+hIa b7EWKKL0f5+r3fxhijJWg/7JAtrQaZZu0+4JVxBsCzaT/bo2BiM6ZEyQUUiuQ5M5Eggu lpluM+6iywL/DFHHA+bH/pOV4yD1Uy1ZyRAtvc3UJtQgZCunjisZOP2Tt8WD81HDfVBI D3T+6s1FxAadYc9L7kcP7g9YF5jkY8UQ0RSR1n8y2K/SAt4htt8j3vZ2hhSbR9qUXS8S yp59u05P2EZvITNn5mnWhfnvPja7u8U3VDFeptaP2qWxfcF4oT2xVIvJmWsyrIAKT39w JRlA== 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=aozmyuPr9W0YbSIJ/59Ct4dDiIlOppREw3lbSxYvyR0=; b=iCJExXaE/rChOm0L6rHrXyPvGJR2vbgmY4pHMMJlV4/s2wOhfpW3gly0foXjXuhBYV 8hmL1tQfBXUqvzeBxVGr3PXb/YitSFJ7vIfdXm7GnnHRW1GoF1ljw7nTuQNVKsZ2jFsj zxlBFGSJSb44oEbjvPKRsvRw+adlw9mMBkTk0jgWIU3dR+/C2QmI/WOO2YM1X3Rjh+lJ HgmYrREE2kyuwGzXlYeY8XofvGo82DaZb5XqwZ/p7SXq8SLO3nKZNFNZSxtaKx0jnDxP cJOYo6bm160UVC4HzxeGlosKG0yBGk+wrDF6QkRdDSw4tDDuv3jr83ZtErT+HszY1SxW MB5w== X-Gm-Message-State: AOAM531ZoygAoIOg52CWN2Vfx+13Lm7ORTrDVnnnPOV9sE4LJF9pImaU F8QfjI0fytTB95G9yYCQVJMmW2J0u+g= X-Google-Smtp-Source: ABdhPJwUpXEIcitsFqrUrdo00yvG5UXcEW9CGh+YgXLRrkgnbkUn29H9Y3pPA2TnOoXdPeybCL/JDw== X-Received: by 2002:a5d:4988:: with SMTP id r8mr20213357wrq.26.1612210434109; Mon, 01 Feb 2021 12:13:54 -0800 (PST) Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id c62sm334689wmd.43.2021.02.01.12.13.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 01 Feb 2021 12:13:53 -0800 (PST) Subject: Re: bug#46151: 28.0.50; Set revert-buffer-function in shell command output buffers To: Lars Ingebrigtsen , Sean Whitton References: <87lfcdd1he.fsf@melete.silentflame.com> <87im7gward.fsf@gnus.org> <87wnvwte7y.fsf@melete.silentflame.com> <87a6ssus1o.fsf@gnus.org> <87tuqztwyt.fsf@melete.silentflame.com> <87sg6j0wyg.fsf@gnus.org> <87im7dszyl.fsf@melete.silentflame.com> <87bld4rx3p.fsf@gnus.org> From: Dmitry Gutov Message-ID: <1adedcd1-52e6-40e1-dfaf-351c3c29eadc@yandex.ru> Date: Mon, 1 Feb 2021 22:13:49 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <87bld4rx3p.fsf@gnus.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 46151 Cc: 46151@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) On 01.02.2021 10:49, Lars Ingebrigtsen wrote: > I think a global `revert-buffer' binding is the way to go. How to > reload a file is something that comes up all the time, so I think it is > high time it got bound. My general feeling is that novice users don't often have a reason to call 'revert-buffer' manually (aside from major modes which already have a 'g' binding), and the power users generally already have some other command on 'C-x g' already (like magit-status or project-find-regexp). So the target audience for that chance seems limited. From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 01 15:48:53 2021 Received: (at 46151) by debbugs.gnu.org; 1 Feb 2021 20:48:53 +0000 Received: from localhost ([127.0.0.1]:33355 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6g7w-0002hc-Ou for submit@debbugs.gnu.org; Mon, 01 Feb 2021 15:48:53 -0500 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:56681) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6g7s-0002hF-S4 for 46151@debbugs.gnu.org; Mon, 01 Feb 2021 15:48:52 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id AE09B5C01BC; Mon, 1 Feb 2021 15:48:43 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 01 Feb 2021 15:48:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spwhitton.name; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm2; bh=xZpgS03of3upMsbagHJM3oYG9D WVuHIVREJ8vHth+HA=; b=UnuXhJhvlsNJSe7WGRE5nrwfsGksS7IH08sylpToKh wkfccl0o0xeWQmue9jeO/Ua/yG4L+TzT61b7NhtbxiFOwWbxA3TNFXyeQk0uR2VT AGoCMoACfdT4RAcxLok3lb9oblBb9YDDEo08bO/WoHL2CwswWcrWEPQu8rRJ12qX 8wO+r8RgcCKH+voT5nSQzKsD6qOt1IU4mRoowOZeN4/M6SxgblgfkcOPJwmtuwFO AgWqSwITCE0Rh/xsGoq4JbQqZkNZhKehFVvQd4EN56ULw2xUQNeAUD3m+vDro67S dzG8E3x+tr8BNutzuJfAHgbWoVGpsjOg6sL8XB/9vwTg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=xZpgS0 3of3upMsbagHJM3oYG9DWVuHIVREJ8vHth+HA=; b=c+h6c4y0C9sUuvClKX/u9p 3iMm7QTXYVzSjNno7XYoWiDa4Jh4ZLyfT/fRhkIB5PM7Ieiq7KnHpexkpWOo4Ue/ NYxaKX6CJNdGQOb3Xt4nKaP0QdJeSyuD0/lVCzWq17SJzXhbtR4L+h3rh+vu7z7+ EoIhaPQfmqbqXu69TOHx/k5xZk1WglAB+52gLaUeTPl/iLr7o2ODsPpJLBoLLete 8VUkLnog7788dkbHYQ7FhJE4yocnYBQDzqBbZ60rcg+BXts7rutAavhFQ4uXD0KI 9QpaMJ3BhPQ34lX/CP3WMcumznwhMK5h5xVXAC1RAZvu7eR+GwF9z2qfQzFm6zRQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfeekgddugedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufgjfhffkfggtgesthdtredttddttdenucfhrhhomhepufgvrghnucgh hhhithhtohhnuceoshhpfihhihhtthhonhesshhpfihhihhtthhonhdrnhgrmhgvqeenuc ggtffrrghtthgvrhhnpeegtddvheegfffhffdvfeefhffgjefflefhteevffffkeetgfdt jedtiedvtdevheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehsphifhhhithhtohhnsehsphifhhhithhtohhnrdhnrghmvg X-ME-Proxy: From: Sean Whitton To: Dmitry Gutov , Lars Ingebrigtsen Subject: Re: bug#46151: 28.0.50; Set revert-buffer-function in shell command output buffers In-Reply-To: <89741b53-a9c3-a4f6-cbd2-985517dceea8@yandex.ru> References: <87lfcdd1he.fsf@melete.silentflame.com> <87im7gward.fsf@gnus.org> <87wnvwte7y.fsf@melete.silentflame.com> <87a6ssus1o.fsf@gnus.org> <17531095-f533-1f00-e330-2d171e33a258@yandex.ru> <875z3ctzsw.fsf@melete.silentflame.com> <8735ygtk8s.fsf@melete.silentflame.com> <89741b53-a9c3-a4f6-cbd2-985517dceea8@yandex.ru> Date: Mon, 01 Feb 2021 13:49:29 -0700 Message-ID: <87a6sn7bty.fsf@melete.silentflame.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 46151 Cc: 46151@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hello, On Mon 01 Feb 2021 at 10:04PM +02, Dmitry Gutov wrote: > So it wouldn't be too terrible if the major mode is switched to > something else when the process finishes. The user will likely learn > than quickly, and managing to type 'g' before learning it is fairly > improbable. The sort of thing I had in mind was the process dying unexpectedly while you'd typing into STDIN. -- Sean Whitton From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 01 16:30:28 2021 Received: (at 46151) by debbugs.gnu.org; 1 Feb 2021 21:30:28 +0000 Received: from localhost ([127.0.0.1]:33431 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6gmA-0003l7-WF for submit@debbugs.gnu.org; Mon, 01 Feb 2021 16:30:27 -0500 Received: from mail-wm1-f47.google.com ([209.85.128.47]:37835) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6gm5-0003km-6j for 46151@debbugs.gnu.org; Mon, 01 Feb 2021 16:30:25 -0500 Received: by mail-wm1-f47.google.com with SMTP id m1so528949wml.2 for <46151@debbugs.gnu.org>; Mon, 01 Feb 2021 13:30:21 -0800 (PST) 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=m71r1pPX7AHHF5+SPdnG0GddHoS8INu+BNHPD3Pu3Os=; b=jdl5Y8qY4RGIoOX8YSGWHd6B/yy+2+y9Rkygujl3Nj7YEpQj3MeGNpgFfQzeRD1p0/ iQh+5zGbztgbuTLoZ6NNFaoEcKAKkWCXrAn+2FZR1wXG1SkaD0rUFZyA++06VL6o7JFU 0fJ5+DDaRSDbh3WUiP0SLGKcS+zCELboUbrKYsGkPj7roipctKsDOOjHWjjbI9Ua6IcO lEPc45rDNWpju4gGaytNSpXqjq6xY5kAHJP9QynN9LFQaV5Hpb/GwIfRilesoAvgILZ1 zHJySEmnqFdmSXrYtNiqxZVIZ/qMQ0uPbHX6Oy215qBs/nlOvk2jDtJZCLQ8cQzei1dT CCzw== 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=m71r1pPX7AHHF5+SPdnG0GddHoS8INu+BNHPD3Pu3Os=; b=Ek82v5ysHfYJsTwDB/gEFJi6Im1PWkuI0cXFNqD6rI7gSCFvkLuSU9aRWl4dWEX/Sz bUqMqeuYTk5cMwCPJ00snQXjEF+oLoYQyi7sXex/z6+hQRzZMoqyVgSvRdP/JypJMF1D urNcHE5YwqXU0Doj8HTUp2m8moclvcWHLpMdcfDoN4o9cM8F35d5heW+lWBZQbpB2VKF 9beEUsRu905jvTIsaGO4Wu6S7c9fRbK24++LCkOifCb3kfrjo1KbLENr9+JxkjC0C31y 1CC5z/6sh1PoRkZD3IHTqeIf0osND1lknZPpZzQ1lCyKmce6zHtmNH8SRTSrLr70gMJG aaQA== X-Gm-Message-State: AOAM533NCQyYFQu1abYUblYXMqc4usLjsXDHDmi1pVp4LbD6o2lKqCIu wYR2s1R62BeJd9zdbJMwL/3eNeR86Iw= X-Google-Smtp-Source: ABdhPJzkSi56CGVk163lqyEoCjWW0DlE7jMDQUSHPNZXnToQ8ZH+nzXhE+x9oPQqm4qUPw2spZ0abQ== X-Received: by 2002:a05:600c:198e:: with SMTP id t14mr683682wmq.109.1612215015132; Mon, 01 Feb 2021 13:30:15 -0800 (PST) Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id u1sm537548wml.11.2021.02.01.13.30.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 01 Feb 2021 13:30:14 -0800 (PST) Subject: Re: bug#46151: 28.0.50; Set revert-buffer-function in shell command output buffers To: Sean Whitton , Lars Ingebrigtsen References: <87lfcdd1he.fsf@melete.silentflame.com> <87im7gward.fsf@gnus.org> <87wnvwte7y.fsf@melete.silentflame.com> <87a6ssus1o.fsf@gnus.org> <17531095-f533-1f00-e330-2d171e33a258@yandex.ru> <875z3ctzsw.fsf@melete.silentflame.com> <8735ygtk8s.fsf@melete.silentflame.com> <89741b53-a9c3-a4f6-cbd2-985517dceea8@yandex.ru> <87a6sn7bty.fsf@melete.silentflame.com> From: Dmitry Gutov Message-ID: <82f5d18c-ff05-6746-dde2-599e3773aa37@yandex.ru> Date: Mon, 1 Feb 2021 23:30:12 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <87a6sn7bty.fsf@melete.silentflame.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 46151 Cc: 46151@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) On 01.02.2021 22:49, Sean Whitton wrote: > The sort of thing I had in mind was the process dying unexpectedly while > you'd typing into STDIN. All right, then. Never experienced that myself, but I guess that's what Emacs is for: enabling all sorts of different workflows. From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 02 03:45:15 2021 Received: (at 46151) by debbugs.gnu.org; 2 Feb 2021 08:45:15 +0000 Received: from localhost ([127.0.0.1]:33993 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6rJD-0007fS-8s for submit@debbugs.gnu.org; Tue, 02 Feb 2021 03:45:15 -0500 Received: from quimby.gnus.org ([95.216.78.240]:58450) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6rJB-0007f8-Cm for 46151@debbugs.gnu.org; Tue, 02 Feb 2021 03:45:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=I9QrWNfRMEgOwBEwcuGJN897r2uk3U02dIzFn15/ucM=; b=Eb8dPSXsfacIUnBaLXDunVTvqH ZZ6jdv1l2qQFytM5Lp4o5kd2GQZPv/AxMLHynPkMRoLWZWRcbOP3X3a4jdGxIP5Um2CIWWpXLt8ym jQiCOjnItjsSaGgfIhzI2ysGvVRbUMRNgpV8xS7Afu5PkIX11Yddof3IwqpXxKN10EGo=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l6rIw-0002GG-BL; Tue, 02 Feb 2021 09:45:07 +0100 From: Lars Ingebrigtsen To: Sean Whitton Subject: Re: bug#46151: 28.0.50; Set revert-buffer-function in shell command output buffers References: <87lfcdd1he.fsf@melete.silentflame.com> <87im7gward.fsf@gnus.org> <87wnvwte7y.fsf@melete.silentflame.com> <87a6ssus1o.fsf@gnus.org> <87tuqztwyt.fsf@melete.silentflame.com> <87sg6j0wyg.fsf@gnus.org> <87im7dszyl.fsf@melete.silentflame.com> <87bld4rx3p.fsf@gnus.org> <87k0rr7jnt.fsf@melete.silentflame.com> X-Now-Playing: Joe Jackson's _At the BBC (1)_: "Tuxedo Junction" Date: Tue, 02 Feb 2021 09:44:57 +0100 In-Reply-To: <87k0rr7jnt.fsf@melete.silentflame.com> (Sean Whitton's message of "Mon, 01 Feb 2021 11:00:22 -0700") Message-ID: <871rdyoo3a.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Sean Whitton writes: >> I think a global `revert-buffer' binding is the way to go. How to >> reload a file is something that comes up all the time, so I think it is >> high time it got bound. > > Okay, here is a patch. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 46151 Cc: 46151@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Sean Whitton writes: >> I think a global `revert-buffer' binding is the way to go. How to >> reload a file is something that comes up all the time, so I think it is >> high time it got bound. > > Okay, here is a patch. Thanks; applied to Emacs 28. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 02 03:45:26 2021 Received: (at control) by debbugs.gnu.org; 2 Feb 2021 08:45:26 +0000 Received: from localhost ([127.0.0.1]:33996 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6rJO-0007fv-I4 for submit@debbugs.gnu.org; Tue, 02 Feb 2021 03:45:26 -0500 Received: from quimby.gnus.org ([95.216.78.240]:58464) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6rJM-0007fg-9Y for control@debbugs.gnu.org; Tue, 02 Feb 2021 03:45:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=rURHWh7KIJLl7drMZ3iCZNpB0FKDckBGsvTtqXYoBHg=; b=Dlq+UjA7UgyzTBy2IrcbssEBp7 VQF/AgWYDCAxaZOU71/ylArIzbG2XggCvcstJH0F2Gqw7ZGP3VHNoTBewhNK5bNefncjsosjsCoFC QXr8u3VykWTfTizlnp93WhiqzSutSZxh1w1j+ws/gWAaaTdgfvZbixXkk+dG2wdKek0Q=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l6rJE-0002GT-LK for control@debbugs.gnu.org; Tue, 02 Feb 2021 09:45:18 +0100 Date: Tue, 02 Feb 2021 09:45:15 +0100 Message-Id: <87zh0mn9ic.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #46151 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 46151 fixed close 46151 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 46151 fixed close 46151 28.1 quit From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 02 03:49:29 2021 Received: (at 46151) by debbugs.gnu.org; 2 Feb 2021 08:49:29 +0000 Received: from localhost ([127.0.0.1]:34011 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6rNJ-0007nj-8S for submit@debbugs.gnu.org; Tue, 02 Feb 2021 03:49:29 -0500 Received: from quimby.gnus.org ([95.216.78.240]:58506) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6rNH-0007nU-5h for 46151@debbugs.gnu.org; Tue, 02 Feb 2021 03:49:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=lHBXKWdJh0HfsxhyfM/jUwfeatux1/TCLfpbEZKoOog=; b=YpnyRn92kS9gntzOwLtHo/KvY0 5/2i3bf/am18RE8RB02ePiuA35ogZWvg6sAitNG4aZypUdEc4QUt8LdwsvLf4sRw+T+XQ+rEWHvvp LaVcQ1NwoEn+SHouveE0YQWbtsFLo//PgI17n5WPHPz6DWjMAvzW09L27wOkxrqvyyuA=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l6rN5-0002J9-Rs; Tue, 02 Feb 2021 09:49:21 +0100 From: Lars Ingebrigtsen To: Dmitry Gutov Subject: Re: bug#46151: 28.0.50; Set revert-buffer-function in shell command output buffers References: <87lfcdd1he.fsf@melete.silentflame.com> <87im7gward.fsf@gnus.org> <87wnvwte7y.fsf@melete.silentflame.com> <87a6ssus1o.fsf@gnus.org> <87tuqztwyt.fsf@melete.silentflame.com> <87sg6j0wyg.fsf@gnus.org> <87im7dszyl.fsf@melete.silentflame.com> <87bld4rx3p.fsf@gnus.org> <1adedcd1-52e6-40e1-dfaf-351c3c29eadc@yandex.ru> X-Now-Playing: Joe Jackson's _At the BBC (1)_: "Tuxedo Junction" Date: Tue, 02 Feb 2021 09:49:14 +0100 In-Reply-To: <1adedcd1-52e6-40e1-dfaf-351c3c29eadc@yandex.ru> (Dmitry Gutov's message of "Mon, 1 Feb 2021 22:13:49 +0200") Message-ID: <87v9ban9bp.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Dmitry Gutov writes: > On 01.02.2021 10:49, Lars Ingebrigtsen wrote: >> I think a global `revert-buffer' binding is the way to go. How to >> reload a file is something that comes up all the time, so I think it is >> high [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 46151 Cc: 46151@debbugs.gnu.org, Sean Whitton X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Dmitry Gutov writes: > On 01.02.2021 10:49, Lars Ingebrigtsen wrote: >> I think a global `revert-buffer' binding is the way to go. How to >> reload a file is something that comes up all the time, so I think it is >> high time it got bound. > > My general feeling is that novice users don't often have a reason to > call 'revert-buffer' manually (aside from major modes which already > have a 'g' binding), and the power users generally already have some > other command on 'C-x g' already (like magit-status or > project-find-regexp). > > So the target audience for that chance seems limited. The impetus for introducing this binding now is that we have two cases of a non-special mode with a (very) useful `revert-buffer' binding, so we can't use `g' there. So it's time to give it a global binding. But I disagree that it's not a useful general command for non-power users: A common question is "how do I reload a file?", and we didn't have a key binding for that. `C-x C-f' does not reliably reload a file, since it has DWIM stuff going on. So giving the command a global binding fixes both these things. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 02 07:38:41 2021 Received: (at 46151) by debbugs.gnu.org; 2 Feb 2021 12:38:41 +0000 Received: from localhost ([127.0.0.1]:34298 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6ux7-0005SC-Ei for submit@debbugs.gnu.org; Tue, 02 Feb 2021 07:38:41 -0500 Received: from mail-wr1-f50.google.com ([209.85.221.50]:44378) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6ux3-0005Rv-Cs for 46151@debbugs.gnu.org; Tue, 02 Feb 2021 07:38:40 -0500 Received: by mail-wr1-f50.google.com with SMTP id d16so20247764wro.11 for <46151@debbugs.gnu.org>; Tue, 02 Feb 2021 04:38:37 -0800 (PST) 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=rPxPmb0dCj7AVgRrQ6f/QoPhZttMgchUns/+GzRc49k=; b=izR5mcqJ2Lni3jcu1fSlOj06klnKPi07m9G4hC/1cxoqjQT8ZI4dlV3N6IZG7vahW8 D5lYxFHgAOtXxd5BE0/I+Sj4eml0JKwCTq1Px8Lt7OL/6OvEfNMnXG6FCjACDQQND3qq wxM+EvQMl4xhIif1fwLNVcmxaXKt1p9MheTpgz/saiNF22mT0rIFHcdaDA1UJ4iNQOK1 WrmzYfZDANFPVSA/f/sXgIYUDF50lSBwWQy3HxgV7P7R4v7+cJQMc/NwytXmurVjwNjp sgmXjp6EaF6LAx5y0WY4yXLV1LotOthzlEwsZEi4E9bWfxwDRX0uJ5InhJzmJo9vf4cc IyHg== 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=rPxPmb0dCj7AVgRrQ6f/QoPhZttMgchUns/+GzRc49k=; b=X+GEi1MC3PbYEmSiRBA4tsk1PhzpIJUzbaEdUHgc9gVHiHV4pYTsArmytKrRyqcpfm kc8o1Et9HqjcOt7Uch09NsoMVA6nz9JGbul5t917ftjypDgnPpQAQXqlu7+EfDCxULkd GFn/fb3zMaBg7xjrXCM1aPVIMQ2xRipJaPF3wkEvUTsqtR2AIKaPY1uQ8z6SgxDvY+OZ QCtaPurXx5I75UHSLmEPhdkE8jNQmNjTme4uyMclEf1ZyS8zN2vLOx4yzAetLHqLq1y5 1GcEl/4eVHFlBWIQSkqMZ0bJGrmYX9vJmZyCpoS1rRdRwaHREtaKsw6EqFlOyUFLGFXy mUDQ== X-Gm-Message-State: AOAM530GSInsXHInAKLUlFx4k2Uz8SjL0g8vgZcqzd/57/OorGGnd1LE NwfUsNx8hDlEVpEphabI4cc= X-Google-Smtp-Source: ABdhPJy4jwo5Z/u7BmXgNEhFza9xN7/LgYHpaSPR/f8CB6EU4FWTF2WHRJW2Y8AWukFyJWp24guZUQ== X-Received: by 2002:a5d:4203:: with SMTP id n3mr23514817wrq.49.1612269511498; Tue, 02 Feb 2021 04:38:31 -0800 (PST) Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id c9sm30841484wrw.76.2021.02.02.04.38.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 02 Feb 2021 04:38:30 -0800 (PST) Subject: Re: bug#46151: 28.0.50; Set revert-buffer-function in shell command output buffers To: Lars Ingebrigtsen References: <87lfcdd1he.fsf@melete.silentflame.com> <87im7gward.fsf@gnus.org> <87wnvwte7y.fsf@melete.silentflame.com> <87a6ssus1o.fsf@gnus.org> <87tuqztwyt.fsf@melete.silentflame.com> <87sg6j0wyg.fsf@gnus.org> <87im7dszyl.fsf@melete.silentflame.com> <87bld4rx3p.fsf@gnus.org> <1adedcd1-52e6-40e1-dfaf-351c3c29eadc@yandex.ru> <87v9ban9bp.fsf@gnus.org> From: Dmitry Gutov Message-ID: Date: Tue, 2 Feb 2021 14:38:28 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <87v9ban9bp.fsf@gnus.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 46151 Cc: 46151@debbugs.gnu.org, Sean Whitton X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On 02.02.2021 10:49, Lars Ingebrigtsen wrote: > The impetus for introducing this binding now is that we have two cases > of a non-special mode with a (very) useful `revert-buffer' binding, so > we can't use `g' there. So it's time to give it a global binding. I offered an alternative suggestion for how 'g' could work (prohibit free editing when the command finishes). Or perhaps some of the other suggestions could be taken and standardized on for similar circumstances ('C-c C-g' might be appropriate since it's major mode specific). I think it's a nice property that major modes that have this binding implement some special behavior for reverting. And all that do, have this binding. But now, if a global binding is added, I worry that people might abandon that convention. > But I disagree that it's not a useful general command for non-power > users: A common question is "how do I reload a file?", and we didn't > have a key binding for that. `C-x C-f' does not reliably reload a file, > since it has DWIM stuff going on. Isn't the answer to most such questions, 'enable global-auto-revert-mode'? I do revert buffers explicitly from time to time too (especially when developing or debugging certain Elisp packages), but still not often enough to worry about having to type 'M-x revert-buffer'. From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 03 13:37:10 2021 Received: (at 46151) by debbugs.gnu.org; 3 Feb 2021 18:37:10 +0000 Received: from localhost ([127.0.0.1]:38847 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l7N1Z-0000sl-Uz for submit@debbugs.gnu.org; Wed, 03 Feb 2021 13:37:10 -0500 Received: from quimby.gnus.org ([95.216.78.240]:47970) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l7N1X-0000sP-MP for 46151@debbugs.gnu.org; Wed, 03 Feb 2021 13:37:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=MhbTjgfYOIx0LvuudxaZyprk4AITjd0XLsBvpcZ+UPs=; b=r45Hd+1jE6bYCwKg2nZ/79XK+2 eOeAB7+ULBpmadY4G3ASFjH+AF1E/sMARumfTkFFanWiby/jF9zsw+LkmyihPE10RwDUZL/498uX3 k9tF0LBPVgTEDEGJ0jxTrp2DtdMorNEVMMBd1k5NXsTQ9N01KqZd9sPYBy5OrdDRCwfA=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l7N1G-0004XR-43; Wed, 03 Feb 2021 19:37:00 +0100 From: Lars Ingebrigtsen To: Dmitry Gutov Subject: Re: bug#46151: 28.0.50; Set revert-buffer-function in shell command output buffers References: <87lfcdd1he.fsf@melete.silentflame.com> <87im7gward.fsf@gnus.org> <87wnvwte7y.fsf@melete.silentflame.com> <87a6ssus1o.fsf@gnus.org> <87tuqztwyt.fsf@melete.silentflame.com> <87sg6j0wyg.fsf@gnus.org> <87im7dszyl.fsf@melete.silentflame.com> <87bld4rx3p.fsf@gnus.org> <1adedcd1-52e6-40e1-dfaf-351c3c29eadc@yandex.ru> <87v9ban9bp.fsf@gnus.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAD1BMVEUUCgpbPCihhFrp 25v///9c8SoiAAAAAWJLR0QEj2jZUQAAAAd0SU1FB+UCAxIJACxIEEgAAAGESURBVDjLzZPRmcQg CIRxKxDSwIoVRPrv7QYEk7sKzof9Nv4OyCBEWMxDVMzUltJrfZjx21gN6/vstzVcRc2Raj/gsjGo dUj6R1XHEZhdqgvg+l4rjpTA5gZtCDOXpFmshX+dPyyDeUs+vn1ZKnBzSSB+/Frm4sG9U287VMQx VxA22RUPwPKKe5TZMlQCcdBkKGtmj+Nb4cdVq0ZUcYuttQPDGGTRVLixAQShEGb7pTNChVrgDWyc YXEmD8CoZ6L0yG7HEg9f2r9Ahv9lKgXSWIQSvx/SZI5oKXkHGffrNO12sFDRqhwykWLfCg6oXzIe C2rrxBZ1xBdWKlA6epUAZLsA2/dGgW1PNsg/6QCW7gb2iLdBEYAej6uAt6wA17EA9IAMJNtRphfw C2dr+eRoCdrO3ereBZQPGJnNQZtWgxCODC6gZ0Li8fIG3Xt4P/NhQ4bXFjmeYbvWDNtRakd3S0De mJjJ7YE8M+hZ7mPOa9+D5UMfv/f3ADh4T/lr3qGg/7F+ANSeRC6Wl5FSAAAAJXRFWHRkYXRlOmNy ZWF0ZQAyMDIxLTAyLTAzVDE4OjA5OjAwKzAwOjAwfdGp4AAAACV0RVh0ZGF0ZTptb2RpZnkAMjAy MS0wMi0wM1QxODowOTowMCswMDowMAyMEVwAAAAASUVORK5CYII= X-Now-Playing: Kate Bush's _The Red Shoes_: "The Red Shoes" Date: Wed, 03 Feb 2021 19:36:48 +0100 In-Reply-To: (Dmitry Gutov's message of "Tue, 2 Feb 2021 14:38:28 +0200") Message-ID: <87y2g5gfr3.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Dmitry Gutov writes: > I offered an alternative suggestion for how 'g' could work (prohibit > free editing when the command finishes). Or perhaps some of the other > suggestions could be taken and standardized on for simi [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 46151 Cc: 46151@debbugs.gnu.org, Sean Whitton X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Dmitry Gutov writes: > I offered an alternative suggestion for how 'g' could work (prohibit > free editing when the command finishes). Or perhaps some of the other > suggestions could be taken and standardized on for similar > circumstances ('C-c C-g' might be appropriate since it's major mode > specific). > > I think it's a nice property that major modes that have this binding > implement some special behavior for reverting. And all that do, have > this binding. > > But now, if a global binding is added, I worry that people might > abandon that convention. I don't think modes will stop creating reversion functions, and I think special modes will continue to bind `g' -- it's more convenient than `C-x g', after all. So I don't think this is much to worry about. >> But I disagree that it's not a useful general command for non-power >> users: A common question is "how do I reload a file?", and we didn't >> have a key binding for that. `C-x C-f' does not reliably reload a file, >> since it has DWIM stuff going on. > > Isn't the answer to most such questions, 'enable global-auto-revert-mode'? No, I think `global-auto-revert-mode' is something most people don't want. For instance, if you're looking at /var/log/exim4/mainlog in Emacs (which I do sometimes), you do not want that to be reloaded all the time, because that would make it difficult to get any work done in that buffer. But you do want to reload it occasionally. > I do revert buffers explicitly from time to time too (especially when > developing or debugging certain Elisp packages), but still not often > enough to worry about having to type 'M-x revert-buffer'. I do it quite often (both in the log file case and because I apply patches a lot). -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 03 17:46:56 2021 Received: (at 46151) by debbugs.gnu.org; 3 Feb 2021 22:46:56 +0000 Received: from localhost ([127.0.0.1]:39094 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l7QvH-0006mJ-MS for submit@debbugs.gnu.org; Wed, 03 Feb 2021 17:46:55 -0500 Received: from mail-wr1-f48.google.com ([209.85.221.48]:32849) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l7QvF-0006m6-Vd for 46151@debbugs.gnu.org; Wed, 03 Feb 2021 17:46:54 -0500 Received: by mail-wr1-f48.google.com with SMTP id 7so1250876wrz.0 for <46151@debbugs.gnu.org>; Wed, 03 Feb 2021 14:46:53 -0800 (PST) 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=vMyFTAPezeP0M5PJAoMsw8FMdWPaM7F+nfDPeNI85KI=; b=Oug8l8Zwr7+UNoVKpjb5uR7CDEuzvuACd0yxM0umng0TMItgJxuuBzj0eYyBXKRs51 YO6cUgEXJYVBCQWvJcaw639sHkSVujCNdpddNVIWMcDrOevIcxyZo4/SICtLbIcVZ33K bxQvu5uWbkm3+bb6GivwmBuJaokwVrnC6KJ3E/3p0TWJlxtvVLG1ejHTmWNuDrBX1KH6 WbPgC6tQeTw39UVXeMxQ0XLuJZ2u+sVbRlL8roG2wAenXQAe7CXyOLvLRfHNEPfe2Y9D cUpqMhUmiF41fbn+t7K2+DDUtXq+NMnyf+c2GiIWiKcgDI8bZS028vw2hkIH7n/pHi62 NFww== 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=vMyFTAPezeP0M5PJAoMsw8FMdWPaM7F+nfDPeNI85KI=; b=qdXUO1g7bxR04J7l4oRYeuYcXgx3BgWtn5n/fUwdBDsfCrOiDDZa1PGu+9Hxx0e5GX +f9md9MxCkWd8+6oAwXSzGGmFWeT8T4Ckz1y43bCUS07/cwK/QDIV59hjExW7UL1/7mZ k4cRe/+AtMT3sUcjP6h9oQosk1dN47mXvhgwE42iQe5QyWVY41nm2zDB92r1+8/6I7rV PODXcppGz319ZxT+0pKTu4U1+VLDROcvAKW9S2eLPF6wz4DLsH0GUtuUcdIu0klFooLP fo14t38brLh5m2F33C9FIoiZ4BrATufEz+I1ivcZif16gcMRQLkoGzWUeP3LBkDH+9YE cTMA== X-Gm-Message-State: AOAM532FW41xS1ZDfEt31oJHKi1pMQpCxQy9PhFx8/i582OGv9wCdYk0 Y6DJgZI85wL7Bdsl9auNvcnEp1Cybyw= X-Google-Smtp-Source: ABdhPJxceRjVu+FRL2CzYpwwzsOK1TAC8aNUa86b27/xhVYsrvJ6RFCn3Ctmht9zoIZU9wgPG6WY1w== X-Received: by 2002:a5d:55c3:: with SMTP id i3mr5852193wrw.190.1612392408077; Wed, 03 Feb 2021 14:46:48 -0800 (PST) Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id l10sm5520587wro.4.2021.02.03.14.46.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 03 Feb 2021 14:46:47 -0800 (PST) Subject: Re: bug#46151: 28.0.50; Set revert-buffer-function in shell command output buffers To: Lars Ingebrigtsen References: <87lfcdd1he.fsf@melete.silentflame.com> <87im7gward.fsf@gnus.org> <87wnvwte7y.fsf@melete.silentflame.com> <87a6ssus1o.fsf@gnus.org> <87tuqztwyt.fsf@melete.silentflame.com> <87sg6j0wyg.fsf@gnus.org> <87im7dszyl.fsf@melete.silentflame.com> <87bld4rx3p.fsf@gnus.org> <1adedcd1-52e6-40e1-dfaf-351c3c29eadc@yandex.ru> <87v9ban9bp.fsf@gnus.org> <87y2g5gfr3.fsf@gnus.org> From: Dmitry Gutov Message-ID: Date: Thu, 4 Feb 2021 00:46:44 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <87y2g5gfr3.fsf@gnus.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 46151 Cc: 46151@debbugs.gnu.org, Sean Whitton X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On 03.02.2021 20:36, Lars Ingebrigtsen wrote: >> I think it's a nice property that major modes that have this binding >> implement some special behavior for reverting. And all that do, have >> this binding. >> >> But now, if a global binding is added, I worry that people might >> abandon that convention. > > I don't think modes will stop creating reversion functions, and I think > special modes will continue to bind `g' -- it's more convenient than > `C-x g', after all. So I don't think this is much to worry about. I hope so. OTOH, I think it might seem perfectly reasonable for some future maintainer to stop that practice because, after all, a handy global binding already exists. For example, this bug can be considered only halfway fixed for anyone who uses 'C-x g' for other purposes. It's not a big deal in one instance, only as part of a possible future trend. >>> But I disagree that it's not a useful general command for non-power >>> users: A common question is "how do I reload a file?", and we didn't >>> have a key binding for that. `C-x C-f' does not reliably reload a file, >>> since it has DWIM stuff going on. >> >> Isn't the answer to most such questions, 'enable global-auto-revert-mode'? > > No, I think `global-auto-revert-mode' is something most people don't > want. For instance, if you're looking at /var/log/exim4/mainlog in > Emacs (which I do sometimes), you do not want that to be reloaded all > the time, because that would make it difficult to get any work done in > that buffer. But you do want to reload it occasionally. Avoiding a feature that saves people time on account of certain rare buffers being more difficult seems counter-productive. It's like giving up on automatic transmission on account of the existence of hills. Even if somebody doesn't want to use auto-revert is all buffers, toggling auto-revert-mode on only in certain ones is bound to save them time. Or people can explicitly disable the mode in certain buffers, like ones showing log files. Does 'exim4/mainlog' have a dedicated major mode? It can go in global-auto-revert-ignore-modes. I can understand calling revert-buffer manually if you're editing a few files, but if you're working on a larger project and switch to a different Git branch with multiple buffers open, that's unmanageable. Almost all editors I used have this feature on by default (except Vim, I guess?), so there is a consensus there. >> I do revert buffers explicitly from time to time too (especially when >> developing or debugging certain Elisp packages), but still not often >> enough to worry about having to type 'M-x revert-buffer'. > > I do it quite often (both in the log file case and because I apply > patches a lot). FWIW, I apply patches with diff-mode. From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 04 02:51:22 2021 Received: (at 46151) by debbugs.gnu.org; 4 Feb 2021 07:51:23 +0000 Received: from localhost ([127.0.0.1]:39566 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l7ZQA-0007tv-OS for submit@debbugs.gnu.org; Thu, 04 Feb 2021 02:51:22 -0500 Received: from quimby.gnus.org ([95.216.78.240]:54006) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l7ZQ8-0007th-Bk for 46151@debbugs.gnu.org; Thu, 04 Feb 2021 02:51:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=8rb8GHoUR82CufwJcOKFgbG+dqnJ6WuQn1n2g6SypEE=; b=L1pund+y3Hp1+aGBp0U6Qj2cl2 42uDxK8yt/P6hSqCXhhlb5tiAOW0XlHAbb30F+j0W9kigJ2+506dWZyQgd0Yokf1b4R9TS1GMy87h EX6S6Xpvkh8vLiDzO/QsQGVl5u0NdI1h9+NksT4aY/0pJOxzIP1i9eh1C/Eeee1Fuuvs=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l7ZPt-0004Pf-0u; Thu, 04 Feb 2021 08:51:13 +0100 From: Lars Ingebrigtsen To: Dmitry Gutov Subject: Re: bug#46151: 28.0.50; Set revert-buffer-function in shell command output buffers References: <87lfcdd1he.fsf@melete.silentflame.com> <87im7gward.fsf@gnus.org> <87wnvwte7y.fsf@melete.silentflame.com> <87a6ssus1o.fsf@gnus.org> <87tuqztwyt.fsf@melete.silentflame.com> <87sg6j0wyg.fsf@gnus.org> <87im7dszyl.fsf@melete.silentflame.com> <87bld4rx3p.fsf@gnus.org> <1adedcd1-52e6-40e1-dfaf-351c3c29eadc@yandex.ru> <87v9ban9bp.fsf@gnus.org> <87y2g5gfr3.fsf@gnus.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADFBMVEUcEiVHNlSBc5v/ //9Mv8YwAAAAAWJLR0QDEQxM8gAAAAd0SU1FB+UCBAcxLfkyqeQAAAFkSURBVCjPRVJBasMwEByB FWhOPlglzmtkiHtWQCuITz0k0PgVyQ9cSAq59RCXSq/srmSoDt4dze7OWBJQVg1VcbC1B9SHwyuD eYxAtU0pWYC/XNVyuGTgNISZoFKKvsH4G5LD2yE+DHA6f50tbsbvlVUThYfF1HkrAkAHkETjbJYe WJH2vipg5zR5XRiyu44OqDPlrWp6x23CNRbSrYxj58seFLQTIOnJ2U3D0ctGii832RSWUspVvJwJ KfV10eqImY4WYaIhXZucWwZuvBazXEW+3ecBas+A2jJMOc7P26kALz3DP/AqYAEtU+FSAG0pDPRd KFpRSJ/HZZomGu/N4rObaZg2C1AzhftBS16R4mk/8zozRmynuZRpGEYmm6v0nUFHebLVsWcHz1LW R/G9MCp65bVcE/+ajnwWmVm/E7d76IOt0R49p0buBlj5nmL2LorUU7LLc9JygF1WyCAkuQj1xB+U AXI1nRYVdQAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMS0wMi0wNFQwNzo0OTo0NCswMDowMPqLPL0A AAAldEVYdGRhdGU6bW9kaWZ5ADIwMjEtMDItMDRUMDc6NDk6NDQrMDA6MDCL1oQBAAAAAElFTkSu QmCC X-Now-Playing: Catnapp's _Break_: "Down in the Basement" Date: Thu, 04 Feb 2021 08:51:03 +0100 In-Reply-To: (Dmitry Gutov's message of "Thu, 4 Feb 2021 00:46:44 +0200") Message-ID: <87pn1ggtjs.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Dmitry Gutov writes: > I can understand calling revert-buffer manually if you're editing a > few files, but if you're working on a larger project and switch to a > different Git branch with multiple buffers open, that's u [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 46151 Cc: 46151@debbugs.gnu.org, Sean Whitton X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Dmitry Gutov writes: > I can understand calling revert-buffer manually if you're editing a > few files, but if you're working on a larger project and switch to a > different Git branch with multiple buffers open, that's unmanageable. People have different use cases -- that shouldn't be a surprise. Emacs caters to them all, but I think there was an obvious usability hole here to be fixed for one of the use cases, so I did. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Tue Jun 17 20:19:45 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 04 Mar 2021 12:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator