HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c54055b
)
(tar-extract): Don't assume buffer is visiting a file.
author
Richard M. Stallman
<rms@gnu.org>
Mon, 6 Sep 1999 22:03:38 +0000
(22:03 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Mon, 6 Sep 1999 22:03:38 +0000
(22:03 +0000)
lisp/tar-mode.el
patch
|
blob
|
blame
|
history
diff --git
a/lisp/tar-mode.el
b/lisp/tar-mode.el
index
e45b36b
..
7e95ef3
100644
(file)
--- a/
lisp/tar-mode.el
+++ b/
lisp/tar-mode.el
@@
-753,7
+753,9
@@
appear on disk when you save the tar-file's buffer."
(end (+ start size)))
(let* ((tar-buffer (current-buffer))
(tar-buffer-multibyte enable-multibyte-characters)
- (tarname (file-name-nondirectory (buffer-file-name)))
+ (tarname (if (buffer-file-name)
+ (file-name-nondirectory (buffer-file-name))
+ (buffer-name)))
(bufname (concat (file-name-nondirectory name)
" ("
tarname