"skip this buffer and mark it unmodified")
(?\C-r
,(lambda (buf)
- (view-buffer buf (lambda (_) (exit-recursive-edit)))
+ ;; Like 'view-buffer' but ignore 'special' mode-class
+ ;; because 'q' should call 'exit-action' in any case:
+ (switch-to-buffer buf)
+ (view-mode-enter nil (lambda (_) (exit-recursive-edit)))
(recursive-edit)
;; Return nil to ask about BUF again.
nil)
(require 'diff) ;for diff-no-select.
(let ((diffbuf (diff-no-select (buffer-file-name buf) buf
nil 'noasync)))
- (view-buffer diffbuf (lambda (_) (exit-recursive-edit)))
+ (switch-to-buffer diffbuf)
+ (view-mode-enter nil (lambda (_) (exit-recursive-edit)))
(recursive-edit)))
;; Return nil to ask about BUF again.
nil)