diff options
| author | Dan Nicolaescu | 2008-01-09 07:21:08 +0000 |
|---|---|---|
| committer | Dan Nicolaescu | 2008-01-09 07:21:08 +0000 |
| commit | e11c1d937fc41f228d261576ccdcc76308e1118a (patch) | |
| tree | 2edb7b6a969ae4a11376499842e1badeb3858050 | |
| parent | 65efc5388d0c270796027bff3c4bb4b0b85dac16 (diff) | |
| download | emacs-e11c1d937fc41f228d261576ccdcc76308e1118a.tar.gz emacs-e11c1d937fc41f228d261576ccdcc76308e1118a.zip | |
(vc-deduce-fileset): Return the currently selected file if
no files are selected when using vc-status.
| -rw-r--r-- | lisp/ChangeLog | 17 | ||||
| -rw-r--r-- | lisp/vc.el | 9 |
2 files changed, 17 insertions, 9 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index dd955494b77..e72275e9010 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,19 +1,24 @@ | |||
| 1 | 2008-01-09 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 2 | |||
| 3 | * vc.el (vc-deduce-fileset): Return the currently selected file if | ||
| 4 | no files are selected when using vc-status. | ||
| 5 | |||
| 1 | 2008-01-09 Michael Kifer <kifer@cs.stonybrook.edu> | 6 | 2008-01-09 Michael Kifer <kifer@cs.stonybrook.edu> |
| 2 | 7 | ||
| 3 | * ediff*.el: commented out declare-function. "make bootstrap" | 8 | * ediff*.el: commented out declare-function. "make bootstrap" |
| 4 | stops with an error and emacs does not compile with those things in. | 9 | stops with an error and emacs does not compile with those things in. |
| 5 | Besides, declare-function is not defined in XEmacs. | 10 | Besides, declare-function is not defined in XEmacs. |
| 6 | 11 | ||
| 7 | * ediff-util (eqiff-quit): autoraise minibuffer. | 12 | * ediff-util (eqiff-quit): autoraise minibuffer. |
| 8 | 13 | ||
| 9 | * ediff-diff (ediff-convert-fine-diffs-to-overlays): make it a defin | 14 | * ediff-diff (ediff-convert-fine-diffs-to-overlays): make it a defin |
| 10 | 15 | ||
| 11 | * viper*.el: commented out declare-function -- not defined in XEmacs. | 16 | * viper*.el: commented out declare-function -- not defined in XEmacs. |
| 12 | 17 | ||
| 13 | * viper-ex.el (viper-info-on-file): take care of indiret buffers. | 18 | * viper-ex.el (viper-info-on-file): take care of indiret buffers. |
| 14 | 19 | ||
| 15 | * viper.el (viper-set-hooks, set-cursor-color): set viper-vi-state-cursor-color. | 20 | * viper.el (viper-set-hooks, set-cursor-color): set viper-vi-state-cursor-color. |
| 16 | 21 | ||
| 17 | 2008-01-09 Tom Tromey <tromey@redhat.com> | 22 | 2008-01-09 Tom Tromey <tromey@redhat.com> |
| 18 | 23 | ||
| 19 | * vc.el (vc-status-headers): Rename from | 24 | * vc.el (vc-status-headers): Rename from |
diff --git a/lisp/vc.el b/lisp/vc.el index 6e170ab1464..5966cfb7a7e 100644 --- a/lisp/vc.el +++ b/lisp/vc.el | |||
| @@ -1276,9 +1276,12 @@ Otherwise, throw an error." | |||
| 1276 | (unless (eq (vc-backend f) firstbackend) | 1276 | (unless (eq (vc-backend f) firstbackend) |
| 1277 | (error "All members of a fileset must be under the same version-control system.")))) | 1277 | (error "All members of a fileset must be under the same version-control system.")))) |
| 1278 | marked)) | 1278 | marked)) |
| 1279 | ((eq major-mode 'vc-status-mode) | 1279 | ((eq major-mode 'vc-status-mode) |
| 1280 | (vc-status-marked-files)) | 1280 | (let ((marked (vc-status-marked-files))) |
| 1281 | ((vc-backend buffer-file-name) | 1281 | (if marked |
| 1282 | marked | ||
| 1283 | (list (vc-status-current-file))))) | ||
| 1284 | ((vc-backend buffer-file-name) | ||
| 1282 | (list buffer-file-name)) | 1285 | (list buffer-file-name)) |
| 1283 | ((and vc-parent-buffer (or (buffer-file-name vc-parent-buffer) | 1286 | ((and vc-parent-buffer (or (buffer-file-name vc-parent-buffer) |
| 1284 | (with-current-buffer vc-parent-buffer | 1287 | (with-current-buffer vc-parent-buffer |