diff options
| author | Stefan Monnier | 2004-02-10 21:59:19 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2004-02-10 21:59:19 +0000 |
| commit | ef5c80252f3ebaf44e429e5aaa1ac08609eb7398 (patch) | |
| tree | d97853107914565a7d1241b2b3f5183f32ff6e18 /lisp/diff.el | |
| parent | 4c11f6a8f2031270f07e1beef0ebd7cf0fe306db (diff) | |
| download | emacs-ef5c80252f3ebaf44e429e5aaa1ac08609eb7398.tar.gz emacs-ef5c80252f3ebaf44e429e5aaa1ac08609eb7398.zip | |
(diff): Add a revert-buffer function.
Diffstat (limited to 'lisp/diff.el')
| -rw-r--r-- | lisp/diff.el | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/diff.el b/lisp/diff.el index c776e36dfdc..dab3c7ebff3 100644 --- a/lisp/diff.el +++ b/lisp/diff.el | |||
| @@ -247,6 +247,9 @@ With prefix arg, prompt for diff switches." | |||
| 247 | 'diff-parse-differences | 247 | 'diff-parse-differences |
| 248 | nil nil nil nil nil nil no-async)) | 248 | nil nil nil nil nil nil no-async)) |
| 249 | (set-buffer buf) | 249 | (set-buffer buf) |
| 250 | (set (make-local-variable 'revert-buffer-function) | ||
| 251 | `(lambda (ignore-auto noconfirm) | ||
| 252 | (diff ',old ',new ',switches ',no-async))) | ||
| 250 | (set (make-local-variable 'diff-old-file) old) | 253 | (set (make-local-variable 'diff-old-file) old) |
| 251 | (set (make-local-variable 'diff-new-file) new) | 254 | (set (make-local-variable 'diff-new-file) new) |
| 252 | (set (make-local-variable 'diff-old-temp-file) old-alt) | 255 | (set (make-local-variable 'diff-old-temp-file) old-alt) |