GNU bug report logs -
#76745
31.0.50; ?d action in save-some-buffers-action-alist to view diff does not work
Previous Next
Reported by: StrawberryTea <look <at> strawberrytea.xyz>
Date: Tue, 4 Mar 2025 18:49:03 UTC
Severity: normal
Fixed in version 31.0.50
Done: Juri Linkov <juri <at> linkov.net>
Bug is archived. No further changes may be made.
Full log
Message #23 received at 76745 <at> debbugs.gnu.org (full text, mbox):
close 76745 31.0.50
thanks
> Well, let's do this then. Patch something in so that save-some-buffers
> "d" key lets us do "q" to exit the diff buffer. I still disagree because
> view-mode is supported by Evil etc but if we do like a local-set-key or
> something, it will probably break other packages that don't handle this
> very special case of save-some-buffers.
After more analysis I found that this problem is not specific to diff-mode.
For example, hexl-mode also has
(put 'hexl-mode 'mode-class 'special)
Then in a file with 'hexl-mode' after typing 'C-x s C-r q' nothing happens,
no exit from recursive-edit. Because 'C-r' in 'save-some-buffers-action-alist'
relies on the same unreliable trick:
(view-buffer buf (lambda (_) (exit-recursive-edit)))
So now both cases are fixed in 'save-some-buffers-action-alist'.
This bug report was last modified 63 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.