Mercurial > emacs
changeset 94987:797fdc65182a
(diff-current-defun): Use `buffer-local-value'.
author | John Paul Wallington <jpw@pobox.com> |
---|---|
date | Thu, 15 May 2008 01:19:06 +0000 |
parents | e2f05c17ddad |
children | 808d98bd28ec |
files | lisp/diff-mode.el |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/diff-mode.el Thu May 15 01:16:52 2008 +0000 +++ b/lisp/diff-mode.el Thu May 15 01:19:06 2008 +0000 @@ -1717,7 +1717,7 @@ (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