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.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/diff-mode.el b/lisp/diff-mode.el
index 0090a61d0ab..4913ef72e35 100644
--- a/lisp/diff-mode.el
+++ b/lisp/diff-mode.el
@@ -1717,7 +1717,7 @@ For use in `add-log-current-defun-function'."
1717 (let ((old (if switched dst src))) 1717 (let ((old (if switched dst src)))
1718 (with-temp-buffer 1718 (with-temp-buffer
1719 (insert (car old)) 1719 (insert (car old))
1720 (funcall (with-current-buffer buf major-mode)) 1720 (funcall (buffer-local-value 'major-mode buf))
1721 (goto-char (+ (point-min) (cdr old))) 1721 (goto-char (+ (point-min) (cdr old)))
1722 (add-log-current-defun)))) 1722 (add-log-current-defun))))
1723 (with-current-buffer buf 1723 (with-current-buffer buf