From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#46151: 28.0.50; Set revert-buffer-function in shell command output buffers Date: Wed, 03 Feb 2021 19:36:48 +0100 Message-ID: <87y2g5gfr3.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> <1adedcd1-52e6-40e1-dfaf-351c3c29eadc@yandex.ru> <87v9ban9bp.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24134"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 46151@debbugs.gnu.org, Sean Whitton To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 03 19:38:11 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l7N2Z-00069b-EG for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 03 Feb 2021 19:38:11 +0100 Original-Received: from localhost ([::1]:35028 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l7N2Y-0006B7-64 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 03 Feb 2021 13:38:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60334) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l7N2Q-0006AO-9I for bug-gnu-emacs@gnu.org; Wed, 03 Feb 2021 13:38:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55535) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l7N2Q-000862-12 for bug-gnu-emacs@gnu.org; Wed, 03 Feb 2021 13:38:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l7N2P-0000tu-TU for bug-gnu-emacs@gnu.org; Wed, 03 Feb 2021 13:38:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 03 Feb 2021 18:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46151 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed patch Original-Received: via spool by 46151-submit@debbugs.gnu.org id=B46151.16123774303399 (code B ref 46151); Wed, 03 Feb 2021 18:38:01 +0000 Original-Received: (at 46151) by debbugs.gnu.org; 3 Feb 2021 18:37:10 +0000 Original-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 Original-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=; Original-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 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" In-Reply-To: (Dmitry Gutov's message of "Tue, 2 Feb 2021 14:38:28 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:199227 Archived-At: 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