]> git.eshelyaron.com Git - emacs.git/commitdiff
(diff-command): New variable.
authorRichard M. Stallman <rms@gnu.org>
Fri, 28 Oct 1994 18:45:45 +0000 (18:45 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 28 Oct 1994 18:45:45 +0000 (18:45 +0000)
(diff): Use it.

lisp/diff.el

index ff7906a80c46e0ca52f53ea98c9d47537bfa8168..eb2e41528962a382ae6d3892dee978c0b0dbecc7 100644 (file)
@@ -34,6 +34,9 @@
 (defvar diff-switches "-c"
   "*A string or list of strings specifying switches to be be passed to diff.")
 
+(defvar diff-command "diff"
+  "*The command to use to run diff.")
+
 (defvar diff-regexp-alist
   '(
     ;; -u format: @@ -OLDSTART,OLDEND +NEWSTART,NEWEND @@
@@ -196,7 +199,7 @@ With prefix arg, prompt for diff switches."
     (unwind-protect
        (let ((command
               (mapconcat 'identity
-                         (append '("diff")
+                         (append (list diff-command)
                                  ;; Use explicitly specified switches
                                  (if switches
                                      (if (consp switches)