# HG changeset patch # User Stefan Monnier # Date 1178403160 0 # Node ID b8d11546ac610d054174d4d06e3a820a8569d3a9 # Parent edb6a93b3b2b3a56f8611768797941ecb258089b (diff): Use buffer-local vars diff-old-file and diff-new-file rather than storing their value in the revert-buffer function. diff -r edb6a93b3b2b -r b8d11546ac61 lisp/ChangeLog --- a/lisp/ChangeLog Sat May 05 00:36:21 2007 +0000 +++ b/lisp/ChangeLog Sat May 05 22:12:40 2007 +0000 @@ -1,3 +1,8 @@ +2007-05-05 Stefan Monnier + + * diff.el (diff): Use buffer-local vars diff-old-file and diff-new-file + rather than storing their value in the revert-buffer function. + 2007-05-04 Nick Roberts * t-mouse.el (t-mouse-mode): Do nothing on a graphical display @@ -5,17 +10,16 @@ 2007-05-01 Davis Herring - * calendar/timeclock.el: Update version number. - (timeclock-modeline-display): Mention timeclock-use-display-time - in explanatory message. - (timeclock-in): Fix non-interactive workday specifications. - (timeclock-log): Don't kill the log buffer if it already existed. - Suppress warnings when finding the log. Don't check for a nil - project twice. Run hooks after killing the buffer (if - applicable). - (timeclock-geometric-mean): Rename to `timeclock-mean' (it never - was geometric). All uses changed. - (timeclock-generate-report): Support prefix argument. + * calendar/timeclock.el: Update version number. + (timeclock-modeline-display): Mention timeclock-use-display-time + in explanatory message. + (timeclock-in): Fix non-interactive workday specifications. + (timeclock-log): Don't kill the log buffer if it already existed. + Suppress warnings when finding the log. Don't check for a nil + project twice. Run hooks after killing the buffer (if applicable). + (timeclock-geometric-mean): Rename to `timeclock-mean' (it never + was geometric). All uses changed. + (timeclock-generate-report): Support prefix argument. 2007-05-01 Romain Francoise diff -r edb6a93b3b2b -r b8d11546ac61 lisp/diff.el --- a/lisp/diff.el Sat May 05 00:36:21 2007 +0000 +++ b/lisp/diff.el Sat May 05 22:12:40 2007 +0000 @@ -124,9 +124,13 @@ (erase-buffer)) (buffer-enable-undo (current-buffer)) (diff-mode) + ;; Use below 2 vars for backward-compatibility. + (set (make-local-variable 'diff-old-file) old) + (set (make-local-variable 'diff-new-file) new) + (set (make-local-variable 'diff-extra-args) (list switches no-async)) (set (make-local-variable 'revert-buffer-function) - `(lambda (ignore-auto noconfirm) - (diff ',old ',new ',switches ',no-async))) + (lambda (ignore-auto noconfirm) + (apply 'diff diff-old-file diff-new-file diff-extra-args))) (set (make-local-variable 'diff-old-temp-file) old-alt) (set (make-local-variable 'diff-new-temp-file) new-alt) (setq default-directory thisdir) @@ -186,5 +190,5 @@ (provide 'diff) -;;; arch-tag: 7de2c29b-7ea5-4b85-9b9d-72dd860de2bd +;; arch-tag: 7de2c29b-7ea5-4b85-9b9d-72dd860de2bd ;;; diff.el ends here