diff options
| author | Juanma Barranquero | 2010-01-07 23:46:44 +0100 |
|---|---|---|
| committer | Juanma Barranquero | 2010-01-07 23:46:44 +0100 |
| commit | 1dfae2a207d0825e57c0ada259de77f7e68a6399 (patch) | |
| tree | 15b3d4dad24b25b4510aae4d561da3413dbfc50d | |
| parent | 32d59dc3dbdc16c25f1f78659d3167c8f9670868 (diff) | |
| download | emacs-1dfae2a207d0825e57c0ada259de77f7e68a6399.tar.gz emacs-1dfae2a207d0825e57c0ada259de77f7e68a6399.zip | |
Fix bug#3224.
* vc-dir.el (vc-dir-prepare-status-buffer): Pass a (fake) filename
to `create-file-buffer' as it expects, not just a buffer name.
(vc-dir-mode): Include the buffer name in `list-buffers-directory',
to help uniquify.
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/vc-dir.el | 6 |
2 files changed, 11 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e64fa66c490..f9f748f751d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2010-01-07 Juanma Barranquero <lekktu@gmail.com> | ||
| 2 | |||
| 3 | * vc-dir.el (vc-dir-prepare-status-buffer): Pass a (fake) filename | ||
| 4 | to `create-file-buffer' as it expects, not just a buffer name. | ||
| 5 | (vc-dir-mode): Include the buffer name in `list-buffers-directory', | ||
| 6 | to help uniquify. (Bug#3224) | ||
| 7 | |||
| 1 | 2010-01-06 Jan Djärv <jan.h.d@swipnet.se> | 8 | 2010-01-06 Jan Djärv <jan.h.d@swipnet.se> |
| 2 | 9 | ||
| 3 | * font-setting.el (font-setting-change-default-font): Use user-spec | 10 | * font-setting.el (font-setting-change-default-font): Use user-spec |
diff --git a/lisp/vc-dir.el b/lisp/vc-dir.el index 61cc8575449..6563ac83550 100644 --- a/lisp/vc-dir.el +++ b/lisp/vc-dir.el | |||
| @@ -101,7 +101,9 @@ See `run-hooks'." | |||
| 101 | (return buffer)))))))) | 101 | (return buffer)))))))) |
| 102 | (or buf | 102 | (or buf |
| 103 | ;; Create a new buffer named BNAME. | 103 | ;; Create a new buffer named BNAME. |
| 104 | (with-current-buffer (create-file-buffer bname) | 104 | ;; We pass a filename to create-file-buffer because it is what |
| 105 | ;; the function expects, and also what uniquify needs (if active) | ||
| 106 | (with-current-buffer (create-file-buffer (expand-file-name bname dir)) | ||
| 105 | (cd dir) | 107 | (cd dir) |
| 106 | (vc-setup-buffer (current-buffer)) | 108 | (vc-setup-buffer (current-buffer)) |
| 107 | ;; Reset the vc-parent-buffer-name so that it does not appear | 109 | ;; Reset the vc-parent-buffer-name so that it does not appear |
| @@ -928,7 +930,7 @@ the *vc-dir* buffer. | |||
| 928 | (set (make-local-variable 'vc-ewoc) (ewoc-create #'vc-dir-printer)) | 930 | (set (make-local-variable 'vc-ewoc) (ewoc-create #'vc-dir-printer)) |
| 929 | (set (make-local-variable 'revert-buffer-function) | 931 | (set (make-local-variable 'revert-buffer-function) |
| 930 | 'vc-dir-revert-buffer-function) | 932 | 'vc-dir-revert-buffer-function) |
| 931 | (setq list-buffers-directory default-directory) | 933 | (setq list-buffers-directory (expand-file-name "*vc-dir*" default-directory)) |
| 932 | (add-to-list 'vc-dir-buffers (current-buffer)) | 934 | (add-to-list 'vc-dir-buffers (current-buffer)) |
| 933 | ;; Make sure that if the directory buffer is killed, the update | 935 | ;; Make sure that if the directory buffer is killed, the update |
| 934 | ;; process running in the background is also killed. | 936 | ;; process running in the background is also killed. |