1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-01 21:30:54 -08:00

(diff-sentinel): Take note of diff error return value.

This commit is contained in:
Chong Yidong 2008-11-24 21:11:12 +00:00
parent 27f98b7e61
commit d02b0e305c

View 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)