(uniquify-rationalize-file-buffer-names): Add an
explicit test for " **lose**" buffers generated by find-alternate-file to avoid an error in particular conditions.
This commit is contained in:
parent
cc46bfe76a
commit
d06a07057a
1 changed files with 4 additions and 2 deletions
|
@ -202,10 +202,12 @@ file name elements. Arguments cause only a subset of buffers to be renamed."
|
||||||
newbuffile)))
|
newbuffile)))
|
||||||
(uniquify-buffer-file-name buffer)))
|
(uniquify-buffer-file-name buffer)))
|
||||||
(rawname (and bfn (uniquify-file-name-nondirectory bfn)))
|
(rawname (and bfn (uniquify-file-name-nondirectory bfn)))
|
||||||
|
(bufname (buffer-name buffer))
|
||||||
(deserving (and rawname
|
(deserving (and rawname
|
||||||
|
(not (string= bufname " **lose**"))
|
||||||
(not (and uniquify-ignore-buffers-re
|
(not (and uniquify-ignore-buffers-re
|
||||||
(string-match uniquify-ignore-buffers-re
|
(string-match uniquify-ignore-buffers-re
|
||||||
(buffer-name buffer))))
|
bufname)))
|
||||||
(or (not newbuffile)
|
(or (not newbuffile)
|
||||||
(equal rawname newbuffile-nd))))
|
(equal rawname newbuffile-nd))))
|
||||||
(min-proposed (if deserving
|
(min-proposed (if deserving
|
||||||
|
@ -213,7 +215,7 @@ file name elements. Arguments cause only a subset of buffers to be renamed."
|
||||||
rawname bfn uniquify-min-dir-content))))
|
rawname bfn uniquify-min-dir-content))))
|
||||||
(if deserving
|
(if deserving
|
||||||
(push (list rawname bfn buffer min-proposed) fix-list)
|
(push (list rawname bfn buffer min-proposed) fix-list)
|
||||||
(push (list (buffer-name buffer)) uniquify-non-file-buffer-names))))
|
(push (list bufname) uniquify-non-file-buffer-names))))
|
||||||
;; selects buffers whose names may need changing, and others that
|
;; selects buffers whose names may need changing, and others that
|
||||||
;; may conflict.
|
;; may conflict.
|
||||||
(setq fix-list
|
(setq fix-list
|
||||||
|
|
Loading…
Add table
Reference in a new issue