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:
parent
4c11f6a8f2
commit
ef5c80252f
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue