From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Phil Sainty Newsgroups: gmane.emacs.bugs Subject: bug#45084: so-long mode vs. dired-view-file Date: Mon, 07 Dec 2020 17:24:12 +1300 Message-ID: <376f3bbf8aa9df9efc2fc798077ea954@webmail.orcon.net.nz> References: <87v9dfunti.5.fsf@jidanni.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9059"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Orcon Webmail Cc: 45084@debbugs.gnu.org To: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 07 05:25:10 2020 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 1km85F-0002G3-VY for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 07 Dec 2020 05:25:09 +0100 Original-Received: from localhost ([::1]:52736 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1km85E-0004u1-GS for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 06 Dec 2020 23:25:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55008) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1km858-0004ts-EV for bug-gnu-emacs@gnu.org; Sun, 06 Dec 2020 23:25:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40437) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1km858-0007cl-6I for bug-gnu-emacs@gnu.org; Sun, 06 Dec 2020 23:25:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1km858-0005Iq-1V for bug-gnu-emacs@gnu.org; Sun, 06 Dec 2020 23:25:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Phil Sainty Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 07 Dec 2020 04:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45084 X-GNU-PR-Package: emacs Original-Received: via spool by 45084-submit@debbugs.gnu.org id=B45084.160731505720323 (code B ref 45084); Mon, 07 Dec 2020 04:25:01 +0000 Original-Received: (at 45084) by debbugs.gnu.org; 7 Dec 2020 04:24:17 +0000 Original-Received: from localhost ([127.0.0.1]:51983 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1km84P-0005Hj-2u for submit@debbugs.gnu.org; Sun, 06 Dec 2020 23:24:17 -0500 Original-Received: from smtp-4.orcon.net.nz ([60.234.4.59]:53449) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1km84N-0005Ha-0M for 45084@debbugs.gnu.org; Sun, 06 Dec 2020 23:24:15 -0500 Original-Received: from [10.253.37.70] (port=13199 helo=webmail.orcon.net.nz) by smtp-4.orcon.net.nz with esmtpa (Exim 4.90_1) (envelope-from ) id 1km84K-0001eL-Su; Mon, 07 Dec 2020 17:24:13 +1300 Original-Received: from wlgwil-nat-wlan.catalyst.net.nz ([202.78.240.10]) via [10.253.37.253] by webmail.orcon.net.nz with HTTP (HTTP/1.1 POST); Mon, 07 Dec 2020 17:24:12 +1300 In-Reply-To: <87v9dfunti.5.fsf@jidanni.org> X-Sender: psainty@orcon.net.nz X-GeoIP: -- X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- 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:195205 Archived-At: On 2020-12-07 01:22, 積丹尼 Dan Jacobson wrote: > That's right. We stumbled into a file that triggers so-long mode. > > Our whole rhythm is busted. And we have to go through hoops to finally > do what just a "q" did. > > So so-long mode and whatever dired-view-file calls should somehow make > a deal not to mess up "q". It's true that, by default, so-long changing the major mode is going to cause key bindings for the original mode to not be available. This is one of the trade-offs we make -- we have the benefit that Emacs isn't going to freeze up, with the cost that the file is being treated differently. I don't think it would be very practical to try to account for all of the special cases that might arise in people's workflows, and try to implement workarounds. Adding `view-mode' support wouldn't be hard, but I do worry about the slippery slope factor. You can alternatively use: (setq so-long-action 'so-long-minor-mode) And then the buffers would remain in view-mode, and "q" will work as normal. -Phil