1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 04:10:54 -08:00

(diff): Add a revert-buffer function.

This commit is contained in:
Stefan Monnier 2004-02-10 21:59:19 +00:00
parent 4c11f6a8f2
commit ef5c80252f

View file

@ -247,6 +247,9 @@ With prefix arg, prompt for diff switches."
'diff-parse-differences
nil nil nil nil nil nil no-async))
(set-buffer buf)
(set (make-local-variable 'revert-buffer-function)
`(lambda (ignore-auto noconfirm)
(diff ',old ',new ',switches ',no-async)))
(set (make-local-variable 'diff-old-file) old)
(set (make-local-variable 'diff-new-file) new)
(set (make-local-variable 'diff-old-temp-file) old-alt)