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>.
(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)