summaryrefslogtreecommitdiff
path: root/lisp/diff.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-10-28 18:45:45 +0000
committerRichard M. Stallman <rms@gnu.org>1994-10-28 18:45:45 +0000
commitd009603cbf5f88499b182c1e9f3e18b3a2a46ab4 (patch)
tree49cd7028df17c6b767ad86cb8739e978e877fc69 /lisp/diff.el
parentcaaaf02a1ae606658b03d5c6c177674658855245 (diff)
downloademacs-d009603cbf5f88499b182c1e9f3e18b3a2a46ab4.tar.gz
(diff-command): New variable.
(diff): Use it.
Diffstat (limited to 'lisp/diff.el')
-rw-r--r--lisp/diff.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/diff.el b/lisp/diff.el
index ff7906a80c4..eb2e4152896 100644
--- a/lisp/diff.el
+++ b/lisp/diff.el
@@ -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)