comparison lisp/vc.el @ 3959:103a29fa86b7

(vc-path): New variable. (vc-do-command): Use vc-path.
author Richard M. Stallman <rms@gnu.org>
date Fri, 02 Jul 1993 21:46:42 +0000
parents ef9f2cfb6703
children e6814dfc4b3b
comparison
equal deleted inserted replaced
3958:3112c8925d39 3959:103a29fa86b7
81 "*Display run messages from back-end commands.") 81 "*Display run messages from back-end commands.")
82 (defvar vc-mistrust-permissions 'file-symlink-p 82 (defvar vc-mistrust-permissions 'file-symlink-p
83 "*Don't assume that permissions and ownership track version-control status.") 83 "*Don't assume that permissions and ownership track version-control status.")
84 (defvar vc-checkin-switches nil 84 (defvar vc-checkin-switches nil
85 "*Extra switches passed to the checkin program by \\[vc-checkin].") 85 "*Extra switches passed to the checkin program by \\[vc-checkin].")
86 (defvar vc-path
87 (if (file-exists-p "/usr/sccs")
88 '("/usr/sccs") nil)
89 "*List of extra directories to search for version control commands.")
86 90
87 (defconst vc-maximum-comment-ring-size 32 91 (defconst vc-maximum-comment-ring-size 32
88 "Maximum number of saved comments in the comment ring.") 92 "Maximum number of saved comments in the comment ring.")
89 93
90 ;;; This is duplicated in diff.el. 94 ;;; This is duplicated in diff.el.
204 (mapcar 208 (mapcar
205 (function (lambda (s) (and s (setq squeezed (append squeezed (list s)))))) 209 (function (lambda (s) (and s (setq squeezed (append squeezed (list s))))))
206 flags) 210 flags)
207 (if vc-file 211 (if vc-file
208 (setq squeezed (append squeezed (list vc-file)))) 212 (setq squeezed (append squeezed (list vc-file))))
209 (let ((default-directory (file-name-directory (or file "./")))) 213 (let ((default-directory (file-name-directory (or file "./")))
214 (exec-path (if vc-path (append exec-path vc-path) exec-path)))
210 (setq status (apply 'call-process command nil t nil squeezed))) 215 (setq status (apply 'call-process command nil t nil squeezed)))
211 (goto-char (point-max)) 216 (goto-char (point-max))
212 (previous-line 1) 217 (previous-line 1)
213 (if (or (not (integerp status)) (< okstatus status)) 218 (if (or (not (integerp status)) (< okstatus status))
214 (progn 219 (progn