diff lisp/diff-mode.el @ 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 c5a53051fe83
children 6cd40c65aa90
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