mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-26 10:49:33 +00:00
(uniquify-get-proposed-name): Don't use directory-sep-char.
This commit is contained in:
parent
1b0d40de85
commit
5da10d404b
@ -298,21 +298,20 @@ in `uniquify-list-buffers-directory-modes', otherwise returns nil."
|
||||
(cond
|
||||
((null extra-string) base)
|
||||
((string-equal base "") ;Happens for dired buffers on the root directory.
|
||||
(mapconcat 'identity extra-string (string directory-sep-char)))
|
||||
(mapconcat 'identity extra-string "/"))
|
||||
((eq uniquify-buffer-name-style 'reverse)
|
||||
(let ((dirsep (string directory-sep-char)))
|
||||
(mapconcat 'identity
|
||||
(cons base (nreverse extra-string))
|
||||
(or uniquify-separator "\\"))))
|
||||
(mapconcat 'identity
|
||||
(cons base (nreverse extra-string))
|
||||
(or uniquify-separator "\\")))
|
||||
((eq uniquify-buffer-name-style 'forward)
|
||||
(mapconcat 'identity (nconc extra-string (list base))
|
||||
(string directory-sep-char)))
|
||||
"/"))
|
||||
((eq uniquify-buffer-name-style 'post-forward)
|
||||
(concat base (or uniquify-separator "|")
|
||||
(mapconcat 'identity extra-string (string directory-sep-char))))
|
||||
(mapconcat 'identity extra-string "/")))
|
||||
((eq uniquify-buffer-name-style 'post-forward-angle-brackets)
|
||||
(concat base "<" (mapconcat 'identity extra-string
|
||||
(string directory-sep-char)) ">"))
|
||||
(concat base "<" (mapconcat 'identity extra-string "/")
|
||||
">"))
|
||||
(t (error "Bad value for uniquify-buffer-name-style: %s"
|
||||
uniquify-buffer-name-style)))))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user