aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/diff-mode.el
diff options
context:
space:
mode:
authorJohn Paul Wallington2008-05-15 01:22:40 +0000
committerJohn Paul Wallington2008-05-15 01:22:40 +0000
commit337f393eb411586e370fb42372d3f39fe2154cfc (patch)
tree5233a3ba17b375b9ddb727f50baa1c7b39f70ca7 /lisp/diff-mode.el
parent3516a0187c9eb995187a56aede6774642b2d6fc5 (diff)
downloademacs-337f393eb411586e370fb42372d3f39fe2154cfc.tar.gz
emacs-337f393eb411586e370fb42372d3f39fe2154cfc.zip
(diff-current-defun): Use `buffer-local-value'.
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