From: Phil Sainty <psainty@orcon.net.nz>
To: "積丹尼 Dan Jacobson" <jidanni@jidanni.org>
Cc: 45084@debbugs.gnu.org
Subject: bug#45084: so-long mode vs. dired-view-file
Date: Mon, 07 Dec 2020 17:24:12 +1300 [thread overview]
Message-ID: <376f3bbf8aa9df9efc2fc798077ea954@webmail.orcon.net.nz> (raw)
In-Reply-To: <87v9dfunti.5.fsf@jidanni.org>
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
next prev parent reply other threads:[~2020-12-07 4:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-06 12:22 bug#45084: so-long mode vs. dired-view-file 積丹尼 Dan Jacobson
2020-12-07 4:24 ` Phil Sainty [this message]
2020-12-08 5:30 ` Richard Stallman
2021-06-06 10:32 ` Lars Ingebrigtsen
2021-06-07 8:14 ` Phil Sainty
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=376f3bbf8aa9df9efc2fc798077ea954@webmail.orcon.net.nz \
--to=psainty@orcon.net.nz \
--cc=45084@debbugs.gnu.org \
--cc=jidanni@jidanni.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).