diff options
author | John Paul Wallington <jpw@pobox.com> | 2008-05-15 01:22:40 +0000 |
---|---|---|
committer | John Paul Wallington <jpw@pobox.com> | 2008-05-15 01:22:40 +0000 |
commit | 337f393eb411586e370fb42372d3f39fe2154cfc (patch) | |
tree | 5233a3ba17b375b9ddb727f50baa1c7b39f70ca7 /lisp/diff-mode.el | |
parent | 3516a0187c9eb995187a56aede6774642b2d6fc5 (diff) | |
download | emacs-337f393eb411586e370fb42372d3f39fe2154cfc.tar.gz |
(diff-current-defun): Use `buffer-local-value'.
Diffstat (limited to 'lisp/diff-mode.el')
-rw-r--r-- | lisp/diff-mode.el | 2 |
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'." (let ((old (if switched dst src))) (with-temp-buffer (insert (car old)) - (funcall (with-current-buffer buf major-mode)) + (funcall (buffer-local-value 'major-mode buf)) (goto-char (+ (point-min) (cdr old))) (add-log-current-defun)))) (with-current-buffer buf |