1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-23 07:19:15 +00:00

(diff): Don't pop to *diff* buffer. Change bogus

unwind-protect to save-excursion.
This commit is contained in:
Richard M. Stallman 1996-08-26 15:21:57 +00:00
parent 2a81150148
commit 9f748a354f

View File

@ -197,7 +197,7 @@ With prefix arg, prompt for diff switches."
(let ((old-alt (file-local-copy old))
(new-alt (file-local-copy new))
buf)
(unwind-protect
(save-excursion
(let ((command
(mapconcat 'identity
(append (list diff-command)
@ -220,7 +220,7 @@ With prefix arg, prompt for diff switches."
(compile-internal command
"No more differences" "Diff"
'diff-parse-differences))
(pop-to-buffer buf)
(set-buffer buf)
;; Avoid frightening people with "abnormally terminated"
;; if diff finds differences.
(set (make-local-variable 'compilation-exit-message-function)