]> git.eshelyaron.com Git - emacs.git/commitdiff
(ediff-diff-mandatory-option): Protect against
authorJesper Harder <harder@ifa.au.dk>
Tue, 6 Jun 2006 18:45:21 +0000 (18:45 +0000)
committerJesper Harder <harder@ifa.au.dk>
Tue, 6 Jun 2006 18:45:21 +0000 (18:45 +0000)
file-error.

lisp/ChangeLog
lisp/ediff-diff.el

index 2aedcbc3280c99196d8f1523c7eed5b4ac2a99f9..23c99963e35b9c6a5e466f77a3f3fce44d891ec7 100644 (file)
@@ -1,3 +1,8 @@
+2006-06-06  Jesper Harder  <harder@phys.au.dk>
+
+       * ediff-diff.el (ediff-test-utility): Protect against
+       file-error.
+
 2006-06-06  Chong Yidong  <cyd@stupidchicken.com>
 
        * diff-mode.el (diff-mode): Set buffer-read-only to t when
index 574563675224079c631c9d00a64b5ddab5d5cb8e..7746954292ddcea843222097ce2c658fa1fe98a8 100644 (file)
@@ -65,8 +65,10 @@ Must produce output compatible with Unix's diff3 program."
 ;; The following functions needed for setting diff/diff3 options
 ;; test if diff supports the --binary option
 (defsubst ediff-test-utility (diff-util option &optional files)
-  (eq 0 (apply 'call-process
-              (append (list diff-util nil nil nil option) files))))
+  (condition-case ()
+      (eq 0 (apply 'call-process
+                  (append (list diff-util nil nil nil option) files)))
+    (file-error nil)))
 
 (defun ediff-diff-mandatory-option (diff-util)
   (let ((file (if (boundp 'null-device) null-device "/dev/null")))