]> git.eshelyaron.com Git - emacs.git/commitdiff
(diff-mode): Don't evaluate `compilation-last-buffer' unless it's bound.
authorMiles Bader <miles@gnu.org>
Wed, 18 Sep 2002 02:36:10 +0000 (02:36 +0000)
committerMiles Bader <miles@gnu.org>
Wed, 18 Sep 2002 02:36:10 +0000 (02:36 +0000)
lisp/ChangeLog
lisp/diff-mode.el

index 132f879b626fb8c4661108105c2eea48f6e58189..012ac51a6f5fc6eb9808c8dcb405e45db05a50c9 100644 (file)
@@ -1,3 +1,8 @@
+2002-09-18  Miles Bader  <miles@gnu.org>
+
+       * diff-mode.el (diff-mode): Don't evaluate `compilation-last-buffer'
+       unless it's bound.
+
 2002-09-16  Markus Rost  <rost@math.ohio-state.edu>
 
        * ls-lisp.el (ls-lisp-format-time-list): Fix type and provide
index b04719298a8209cbcb00dbd4fc268dcceb7a0cde..94ce53c104028c5294d2ef770fa6b85cfcd17407 100644 (file)
@@ -1,6 +1,6 @@
 ;;; diff-mode.el --- a mode for viewing/editing context diffs
 
-;; Copyright (C) 1998, 1999, 2000, 2001  Free Software Foundation, Inc.
+;; Copyright (C) 1998, 1999, 2000, 2001, 2002  Free Software Foundation, Inc.
 
 ;; Author: Stefan Monnier <monnier@cs.yale.edu>
 ;; Keywords: convenience patch diff
@@ -889,7 +889,9 @@ a diff with \\[diff-reverse-direction]."
         (substring buffer-file-name 0 (match-beginning 0))))
   ;; Be careful not to change compilation-last-buffer when we're just
   ;; doing a C-x v = (for example).
-  (let ((compilation-last-buffer compilation-last-buffer))
+  (let ((compilation-last-buffer
+        (and (boundp 'compilation-last-buffer)
+             compilation-last-buffer)))
     (compilation-shell-minor-mode 1))
 
   (when (and (> (point-max) (point-min)) diff-default-read-only)