]> git.eshelyaron.com Git - emacs.git/commitdiff
(diff-sentinel): Take note of diff error return value.
authorChong Yidong <cyd@stupidchicken.com>
Mon, 24 Nov 2008 21:11:12 +0000 (21:11 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Mon, 24 Nov 2008 21:11:12 +0000 (21:11 +0000)
lisp/diff.el

index e806a615cc748f3c9dc5e04b29059b610c1100d5..8fb258cf1e77d51cff777537a2f0862eb2c0cef1 100644 (file)
@@ -68,7 +68,9 @@ were found."
     (goto-char (point-max))
     (let ((inhibit-read-only t))
       (insert (format "\nDiff finished%s.  %s\n"
-                     (if (equal 0 code) " (no differences)" "")
+                     (cond ((equal 0 code) " (no differences)")
+                           ((equal 2 code) " (diff error)")
+                           (t ""))
                      (current-time-string))))))
 
 (defvar diff-old-file nil)