Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
c6dbae47
Commit
c6dbae47
authored
Aug 02, 2006
by
Stefan Monnier
Browse files
(cvs-get-buffer-create): Obey `noreuse' even if `name'
doesn't look like a file name.
parent
424f4c9c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
lisp/ChangeLog
lisp/ChangeLog
+3
-0
lisp/pcvs-util.el
lisp/pcvs-util.el
+3
-1
No files found.
lisp/ChangeLog
View file @
c6dbae47
2006-08-02 Stefan Monnier <monnier@iro.umontreal.ca>
* pcvs-util.el (cvs-get-buffer-create): Obey `noreuse' even if `name'
doesn't look like a file name.
* complete.el (PC-expand-many-files): Avoid signalling an error when
the current directory doesn't exist. Reported by Micha,Ak(Bl Cadilhac.
...
...
lisp/pcvs-util.el
View file @
c6dbae47
...
...
@@ -126,7 +126,9 @@ with `create-file-buffer' and will probably get another name than NAME.
In such a case, the search for another buffer with the same name doesn't
use the buffer name but the buffer's `list-buffers-directory' variable.
If NOREUSE is non-nil, always return a new buffer."
(
or
(
and
(
not
(
file-name-absolute-p
name
))
(
get-buffer-create
name
))
(
or
(
and
(
not
(
file-name-absolute-p
name
))
(
if
noreuse
(
generate-new-buffer
name
)
(
get-buffer-create
name
)))
(
unless
noreuse
(
dolist
(
buf
(
buffer-list
))
(
with-current-buffer
buf
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment