Commit 6da7ea56 authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

(tar-extract): Call generate-new-buffer-name to

create a buffer for extracted file, in case there's more than one
file by that name in an archive, possibly in different
directories.  From Kevin Rodgers <kevinr@ihs.com>.
parent cb54d522
......@@ -679,10 +679,11 @@ appear on disk when you save the tar-file's buffer."
(let* ((tar-buffer (current-buffer))
(tar-buffer-multibyte enable-multibyte-characters)
(tarname (buffer-name))
(bufname (concat (file-name-nondirectory name)
" ("
tarname
")"))
(bufname (generate-new-buffer-name
(concat (file-name-nondirectory name)
" ("
tarname
")")))
(read-only-p (or buffer-read-only view-p))
(buffer (get-buffer bufname))
(just-created nil)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment