diff options
| author | Eric S. Raymond | 2014-12-09 06:55:54 -0500 |
|---|---|---|
| committer | Eric S. Raymond | 2014-12-09 06:59:34 -0500 |
| commit | baab20d73e2a3ee6a06dc83fe97d0b781870e29f (patch) | |
| tree | fe1ac196c14ab4c5110009d2bfc9281ce952f784 | |
| parent | bc71376cc02b39e10f1ceb047f698bf614e18811 (diff) | |
| download | emacs-baab20d73e2a3ee6a06dc83fe97d0b781870e29f.tar.gz emacs-baab20d73e2a3ee6a06dc83fe97d0b781870e29f.zip | |
vc/vc-src.el (vc-src-do-comand): Prepend -- to file argument list
* vc/vc-src.el (vc-src-do-comand): Prepend -- to file argument list,
avoids problems witth names containing hyphens.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/vc/vc-src.el | 7 |
2 files changed, 11 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 81afe8a5ccc..bf139d6e445 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-12-09 Eric S. Raymond <esr@snark.thyrsus.com> | ||
| 2 | |||
| 3 | * vc/vc-src.el (vc-src-do-comand): Prepend -- to file argument | ||
| 4 | list, avoids problems witth names containing hyphens. | ||
| 5 | |||
| 1 | 2014-12-09 Wilson Snyder <wsnyder@wsnyder.org> | 6 | 2014-12-09 Wilson Snyder <wsnyder@wsnyder.org> |
| 2 | 7 | ||
| 3 | Sync with upstream verilog-mode revision aa4b777. | 8 | Sync with upstream verilog-mode revision aa4b777. |
diff --git a/lisp/vc/vc-src.el b/lisp/vc/vc-src.el index 3186d7254cb..36d6a20f9b1 100644 --- a/lisp/vc/vc-src.el +++ b/lisp/vc/vc-src.el | |||
| @@ -193,7 +193,12 @@ For a description of possible values, see `vc-check-master-templates'." | |||
| 193 | (defun vc-src-command (buffer file-or-list &rest flags) | 193 | (defun vc-src-command (buffer file-or-list &rest flags) |
| 194 | "A wrapper around `vc-do-command' for use in vc-src.el. | 194 | "A wrapper around `vc-do-command' for use in vc-src.el. |
| 195 | This function differs from vc-do-command in that it invokes `vc-src-program'." | 195 | This function differs from vc-do-command in that it invokes `vc-src-program'." |
| 196 | (apply 'vc-do-command (or buffer "*vc*") 0 vc-src-program file-or-list flags)) | 196 | (let (file-list) |
| 197 | (cond ((stringp file-or-list) | ||
| 198 | (setq file-list (list "--" file-or-list))) | ||
| 199 | (file-or-list | ||
| 200 | (setq file-list (cons "--" file-or-list)))) | ||
| 201 | (apply 'vc-do-command (or buffer "*vc*") 0 vc-src-program file-list flags))) | ||
| 197 | 202 | ||
| 198 | (defun vc-src-working-revision (file) | 203 | (defun vc-src-working-revision (file) |
| 199 | "SRC-specific version of `vc-working-revision'." | 204 | "SRC-specific version of `vc-working-revision'." |