diff options
| author | Stefan Monnier | 2000-10-08 19:12:52 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2000-10-08 19:12:52 +0000 |
| commit | 8f4f02140540c538ed517ddbf6a3db3cf5286852 (patch) | |
| tree | eac4b7bbb56f73ce5e448ca96be760c0e7a7ab5a | |
| parent | d15c2aaaf89cac04f6a4824fa402b7fc05926b8f (diff) | |
| download | emacs-8f4f02140540c538ed517ddbf6a3db3cf5286852.tar.gz emacs-8f4f02140540c538ed517ddbf6a3db3cf5286852.zip | |
(vc-version-diff): diff-switches can be a list.
| -rw-r--r-- | lisp/vc.el | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/lisp/vc.el b/lisp/vc.el index 9b69f3be6dc..ef89bc85728 100644 --- a/lisp/vc.el +++ b/lisp/vc.el | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | ;; Author: FSF (see below for full credits) | 5 | ;; Author: FSF (see below for full credits) |
| 6 | ;; Maintainer: Andre Spiegel <spiegel@gnu.org> | 6 | ;; Maintainer: Andre Spiegel <spiegel@gnu.org> |
| 7 | 7 | ||
| 8 | ;; $Id: vc.el,v 1.277 2000/10/04 09:48:37 spiegel Exp $ | 8 | ;; $Id: vc.el,v 1.278 2000/10/05 22:55:17 monnier Exp $ |
| 9 | 9 | ||
| 10 | ;; This file is part of GNU Emacs. | 10 | ;; This file is part of GNU Emacs. |
| 11 | 11 | ||
| @@ -1531,11 +1531,16 @@ files in or below it." | |||
| 1531 | (if (string-equal rel2 "") | 1531 | (if (string-equal rel2 "") |
| 1532 | (setq rel2 nil)) | 1532 | (setq rel2 nil)) |
| 1533 | (let ((file-rel1 (vc-version-backup-file file rel1)) | 1533 | (let ((file-rel1 (vc-version-backup-file file rel1)) |
| 1534 | (file-rel2 (if (not rel2) | 1534 | (file-rel2 (if (not rel2) |
| 1535 | file | 1535 | file |
| 1536 | (vc-version-backup-file file rel2)))) | 1536 | (vc-version-backup-file file rel2)))) |
| 1537 | (if (and file-rel1 file-rel2) | 1537 | (if (and file-rel1 file-rel2) |
| 1538 | (vc-do-command t 1 "diff" nil diff-switches file-rel1 file-rel2) | 1538 | (apply 'vc-do-command t 1 "diff" nil |
| 1539 | (append (if (listp diff-switches) | ||
| 1540 | diff-switches | ||
| 1541 | (list diff-switches)) | ||
| 1542 | (list (file-relative-name file-rel1) | ||
| 1543 | (file-relative-name file-rel2)))) | ||
| 1539 | (cd (file-name-directory file)) | 1544 | (cd (file-name-directory file)) |
| 1540 | (vc-call diff file rel1 rel2)))) | 1545 | (vc-call diff file rel1 rel2)))) |
| 1541 | (if (and (zerop (buffer-size)) | 1546 | (if (and (zerop (buffer-size)) |