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: Sat, 30 Jan 2021 07:18:15 +0100 Message-ID: <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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7198"; 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 To: Sean Whitton Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 30 07:19: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 1l5jbB-0001le-RX for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 30 Jan 2021 07:19:09 +0100 Original-Received: from localhost ([::1]:53846 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l5jbA-0001o2-KM for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 30 Jan 2021 01:19:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33230) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5jb4-0001ng-EJ for bug-gnu-emacs@gnu.org; Sat, 30 Jan 2021 01:19:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41813) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l5jb4-0006DZ-7J for bug-gnu-emacs@gnu.org; Sat, 30 Jan 2021 01:19:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l5jb4-0003Ao-2H for bug-gnu-emacs@gnu.org; Sat, 30 Jan 2021 01:19: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: Sat, 30 Jan 2021 06:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46151 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 46151-submit@debbugs.gnu.org id=B46151.161198751612145 (code B ref 46151); Sat, 30 Jan 2021 06:19:02 +0000 Original-Received: (at 46151) by debbugs.gnu.org; 30 Jan 2021 06:18:36 +0000 Original-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 Original-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=; 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 1l5jaL-0004bG-90; Sat, 30 Jan 2021 07:18:27 +0100 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" In-Reply-To: <87tuqztwyt.fsf@melete.silentflame.com> (Sean Whitton's message of "Fri, 29 Jan 2021 11:32:58 -0700") 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:198895 Archived-At: 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