diff options
| author | Richard M. Stallman | 1993-07-02 21:46:42 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-07-02 21:46:42 +0000 |
| commit | 282aa6a2d22fa3388cc2fca0f16dd3c894b307a7 (patch) | |
| tree | 11a164e9c40f744406fa7126dc0dae054ca6ebea | |
| parent | b289b04e20f3c27a8bee7d0206df1dcab0c4bf2b (diff) | |
| download | emacs-282aa6a2d22fa3388cc2fca0f16dd3c894b307a7.tar.gz emacs-282aa6a2d22fa3388cc2fca0f16dd3c894b307a7.zip | |
(vc-path): New variable.
(vc-do-command): Use vc-path.
| -rw-r--r-- | lisp/vc.el | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/vc.el b/lisp/vc.el index fd1c644fdf6..3a098a1eba1 100644 --- a/lisp/vc.el +++ b/lisp/vc.el | |||
| @@ -83,6 +83,10 @@ The value is only computed when needed to avoid an expensive search.") | |||
| 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.") |
| @@ -206,7 +210,8 @@ the master name of FILE; this is appended to an optional list of FLAGS." | |||
| 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) |