aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/diff-mode.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/diff-mode.el')
-rw-r--r--lisp/diff-mode.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/diff-mode.el b/lisp/diff-mode.el
index 27f8318f91c..75ea98ba911 100644
--- a/lisp/diff-mode.el
+++ b/lisp/diff-mode.el
@@ -1287,7 +1287,9 @@ a diff with \\[diff-reverse-direction].
1287 (set (make-local-variable 'add-log-current-defun-function) 1287 (set (make-local-variable 'add-log-current-defun-function)
1288 'diff-current-defun) 1288 'diff-current-defun)
1289 (set (make-local-variable 'add-log-buffer-file-name-function) 1289 (set (make-local-variable 'add-log-buffer-file-name-function)
1290 (lambda () (diff-find-file-name nil 'noprompt)))) 1290 (lambda () (diff-find-file-name nil 'noprompt)))
1291 (unless (buffer-file-name)
1292 (hack-dir-local-variables-non-file-buffer)))
1291 1293
1292;;;###autoload 1294;;;###autoload
1293(define-minor-mode diff-minor-mode 1295(define-minor-mode diff-minor-mode