diff options
| author | Richard M. Stallman | 1993-05-08 16:17:01 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-05-08 16:17:01 +0000 |
| commit | 0ee7d6239af171b5bd689a7aff15dafcea9a938c (patch) | |
| tree | 18b62ea6712b072340a9c02fd0831042043b78b9 | |
| parent | 6ed5075cab814946fc39d5810facd2ca5f23df27 (diff) | |
| download | emacs-0ee7d6239af171b5bd689a7aff15dafcea9a938c.tar.gz emacs-0ee7d6239af171b5bd689a7aff15dafcea9a938c.zip | |
(vc-directory-18): cd to the directory in question before the file tree walk.
| -rw-r--r-- | lisp/vc.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/vc.el b/lisp/vc.el index 9bc5dabaa38..6a0742b8de5 100644 --- a/lisp/vc.el +++ b/lisp/vc.el | |||
| @@ -897,10 +897,11 @@ on a buffer attached to the file named in the current Dired buffer line." | |||
| 897 | (defun vc-directory-18 (verbose) | 897 | (defun vc-directory-18 (verbose) |
| 898 | "Show version-control status of all files under the current directory." | 898 | "Show version-control status of all files under the current directory." |
| 899 | (interactive "P") | 899 | (interactive "P") |
| 900 | (let (nonempty) | 900 | (let (nonempty (dir default-directory)) |
| 901 | (save-excursion | 901 | (save-excursion |
| 902 | (set-buffer (get-buffer-create "*vc-status*")) | 902 | (set-buffer (get-buffer-create "*vc-status*")) |
| 903 | (erase-buffer) | 903 | (erase-buffer) |
| 904 | (cd dir) | ||
| 904 | (vc-file-tree-walk | 905 | (vc-file-tree-walk |
| 905 | (function (lambda (f) | 906 | (function (lambda (f) |
| 906 | (if (vc-registered f) | 907 | (if (vc-registered f) |