Subject: bug#45084: so-long mode vs. dired-view-file

From: 積丹尼 Dan Jacobson <[email-masked]>
Date: Sun, 06 Dec 2020 20:22:01 +0800

OK, here in emacs-version "27.1" we have
(global-so-long-mode 1)
in our .emacs file, and everything is working great.

We are happily using dired,

 v        ;; dired-view-file
 q        ;; View-quit
 SPC      ;; dired-next-line
 v        ;; dired-view-file
 q        ;; View-quit
 SPC      ;; dired-next-line
 v        ;; dired-view-file
 q        ;; View-quit
 SPC      ;; dired-next-line
 v        ;; dired-view-file
 q        ;; View-quit
 SPC      ;; dired-next-line
 v        ;; dired-view-file
 q        ;; self-insert-command <------Notice anything NOT funny?
 C-x k    ;; kill-buffer
 <return> ;; minibuffer-complete-and-exit

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".

The modeline says (So Long View).