aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog26
-rw-r--r--lisp/diff.el10
2 files changed, 22 insertions, 14 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 5bb3225f1ae..a6680ef9afa 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12007-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * diff.el (diff): Use buffer-local vars diff-old-file and diff-new-file
4 rather than storing their value in the revert-buffer function.
5
12007-05-04 Nick Roberts <nickrob@snap.net.nz> 62007-05-04 Nick Roberts <nickrob@snap.net.nz>
2 7
3 * t-mouse.el (t-mouse-mode): Do nothing on a graphical display 8 * t-mouse.el (t-mouse-mode): Do nothing on a graphical display
@@ -5,17 +10,16 @@
5 10
62007-05-01 Davis Herring <herring@lanl.gov> 112007-05-01 Davis Herring <herring@lanl.gov>
7 12
8 * calendar/timeclock.el: Update version number. 13 * calendar/timeclock.el: Update version number.
9 (timeclock-modeline-display): Mention timeclock-use-display-time 14 (timeclock-modeline-display): Mention timeclock-use-display-time
10 in explanatory message. 15 in explanatory message.
11 (timeclock-in): Fix non-interactive workday specifications. 16 (timeclock-in): Fix non-interactive workday specifications.
12 (timeclock-log): Don't kill the log buffer if it already existed. 17 (timeclock-log): Don't kill the log buffer if it already existed.
13 Suppress warnings when finding the log. Don't check for a nil 18 Suppress warnings when finding the log. Don't check for a nil
14 project twice. Run hooks after killing the buffer (if 19 project twice. Run hooks after killing the buffer (if applicable).
15 applicable). 20 (timeclock-geometric-mean): Rename to `timeclock-mean' (it never
16 (timeclock-geometric-mean): Rename to `timeclock-mean' (it never 21 was geometric). All uses changed.
17 was geometric). All uses changed. 22 (timeclock-generate-report): Support prefix argument.
18 (timeclock-generate-report): Support prefix argument.
19 23
202007-05-01 Romain Francoise <romain@orebokech.com> 242007-05-01 Romain Francoise <romain@orebokech.com>
21 25
diff --git a/lisp/diff.el b/lisp/diff.el
index 83de826bd03..7149ef0d150 100644
--- a/lisp/diff.el
+++ b/lisp/diff.el
@@ -124,9 +124,13 @@ With prefix arg, prompt for diff switches."
124 (erase-buffer)) 124 (erase-buffer))
125 (buffer-enable-undo (current-buffer)) 125 (buffer-enable-undo (current-buffer))
126 (diff-mode) 126 (diff-mode)
127 ;; Use below 2 vars for backward-compatibility.
128 (set (make-local-variable 'diff-old-file) old)
129 (set (make-local-variable 'diff-new-file) new)
130 (set (make-local-variable 'diff-extra-args) (list switches no-async))
127 (set (make-local-variable 'revert-buffer-function) 131 (set (make-local-variable 'revert-buffer-function)
128 `(lambda (ignore-auto noconfirm) 132 (lambda (ignore-auto noconfirm)
129 (diff ',old ',new ',switches ',no-async))) 133 (apply 'diff diff-old-file diff-new-file diff-extra-args)))
130 (set (make-local-variable 'diff-old-temp-file) old-alt) 134 (set (make-local-variable 'diff-old-temp-file) old-alt)
131 (set (make-local-variable 'diff-new-temp-file) new-alt) 135 (set (make-local-variable 'diff-new-temp-file) new-alt)
132 (setq default-directory thisdir) 136 (setq default-directory thisdir)
@@ -186,5 +190,5 @@ With prefix arg, prompt for diff switches."
186 190
187(provide 'diff) 191(provide 'diff)
188 192
189;;; arch-tag: 7de2c29b-7ea5-4b85-9b9d-72dd860de2bd 193;; arch-tag: 7de2c29b-7ea5-4b85-9b9d-72dd860de2bd
190;;; diff.el ends here 194;;; diff.el ends here