diff options
Diffstat (limited to 'lisp/files.el')
| -rw-r--r-- | lisp/files.el | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lisp/files.el b/lisp/files.el index 13fdf0d020b..5af68f6014e 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -3729,7 +3729,13 @@ This requires the external program `diff' to be in your `exec-path'." ;; Return nil to ask about BUF again. nil) "view this file") - (?d diff-buffer-with-file + (?d (lambda (buf) + (save-window-excursion + (diff-buffer-with-file buf)) + (view-buffer (get-buffer-create "*Diff*") + (lambda (ignore) (exit-recursive-edit))) + (recursive-edit) + nil) "view changes in file")) "ACTION-ALIST argument used in call to `map-y-or-n-p'.") |
