diff options
| author | Stefan Monnier | 2006-08-02 14:14:19 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2006-08-02 14:14:19 +0000 |
| commit | c6dbae471872a8844d1ee1fb44d3ba8ffee8cd79 (patch) | |
| tree | 1081fd936af6b6f2203f7649add2dd98abae7863 | |
| parent | 424f4c9cfaf7c44e1e4ed1cc21d0d13f7dd59331 (diff) | |
| download | emacs-c6dbae471872a8844d1ee1fb44d3ba8ffee8cd79.tar.gz emacs-c6dbae471872a8844d1ee1fb44d3ba8ffee8cd79.zip | |
(cvs-get-buffer-create): Obey `noreuse' even if `name'
doesn't look like a file name.
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/pcvs-util.el | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a8d70ba5619..6703fed19db 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2006-08-02 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2006-08-02 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * pcvs-util.el (cvs-get-buffer-create): Obey `noreuse' even if `name' | ||
| 4 | doesn't look like a file name. | ||
| 5 | |||
| 3 | * complete.el (PC-expand-many-files): Avoid signalling an error when | 6 | * complete.el (PC-expand-many-files): Avoid signalling an error when |
| 4 | the current directory doesn't exist. Reported by Micha,Ak(Bl Cadilhac. | 7 | the current directory doesn't exist. Reported by Micha,Ak(Bl Cadilhac. |
| 5 | 8 | ||
diff --git a/lisp/pcvs-util.el b/lisp/pcvs-util.el index cb18fc83d59..84ce2e117b9 100644 --- a/lisp/pcvs-util.el +++ b/lisp/pcvs-util.el | |||
| @@ -126,7 +126,9 @@ with `create-file-buffer' and will probably get another name than NAME. | |||
| 126 | In such a case, the search for another buffer with the same name doesn't | 126 | In such a case, the search for another buffer with the same name doesn't |
| 127 | use the buffer name but the buffer's `list-buffers-directory' variable. | 127 | use the buffer name but the buffer's `list-buffers-directory' variable. |
| 128 | If NOREUSE is non-nil, always return a new buffer." | 128 | If NOREUSE is non-nil, always return a new buffer." |
| 129 | (or (and (not (file-name-absolute-p name)) (get-buffer-create name)) | 129 | (or (and (not (file-name-absolute-p name)) |
| 130 | (if noreuse (generate-new-buffer name) | ||
| 131 | (get-buffer-create name))) | ||
| 130 | (unless noreuse | 132 | (unless noreuse |
| 131 | (dolist (buf (buffer-list)) | 133 | (dolist (buf (buffer-list)) |
| 132 | (with-current-buffer buf | 134 | (with-current-buffer buf |