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: Tue, 02 Feb 2021 09:49:14 +0100 Message-ID: <87v9ban9bp.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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16488"; 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 Tue Feb 02 09:50:09 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 1l6rNx-0004B0-7u for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 02 Feb 2021 09:50:09 +0100 Original-Received: from localhost ([::1]:47602 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l6rNw-0006Ci-AF for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 02 Feb 2021 03:50:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58788) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6rNq-0006Cc-Ks for bug-gnu-emacs@gnu.org; Tue, 02 Feb 2021 03:50:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50698) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l6rNq-0000hx-D0 for bug-gnu-emacs@gnu.org; Tue, 02 Feb 2021 03:50:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l6rNq-0007oi-BL for bug-gnu-emacs@gnu.org; Tue, 02 Feb 2021 03:50:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 02 Feb 2021 08:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46151 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed patch Original-Received: via spool by 46151-submit@debbugs.gnu.org id=B46151.161225576929995 (code B ref 46151); Tue, 02 Feb 2021 08:50:02 +0000 Original-Received: (at 46151) by debbugs.gnu.org; 2 Feb 2021 08:49:29 +0000 Original-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 Original-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=; 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 1l6rN5-0002J9-Rs; Tue, 02 Feb 2021 09:49:21 +0100 X-Now-Playing: Joe Jackson's _At the BBC (1)_: "Tuxedo Junction" In-Reply-To: <1adedcd1-52e6-40e1-dfaf-351c3c29eadc@yandex.ru> (Dmitry Gutov's message of "Mon, 1 Feb 2021 22:13:49 +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:199124 Archived-At: 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