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:
974548e
)
(tar-mode-write-file): Don't signal an error by
author
Gerd Moellmann
<gerd@gnu.org>
Thu, 27 Sep 2001 08:11:36 +0000
(08:11 +0000)
committer
Gerd Moellmann
<gerd@gnu.org>
Thu, 27 Sep 2001 08:11:36 +0000
(08:11 +0000)
calling byte-to-position with a nil tar-header-offset.
lisp/tar-mode.el
patch
|
blob
|
blame
|
history
diff --git
a/lisp/tar-mode.el
b/lisp/tar-mode.el
index
2e1b8c5
..
4c89f9b
100644
(file)
--- a/
lisp/tar-mode.el
+++ b/
lisp/tar-mode.el
@@
-1245,8
+1245,9
@@
Leaves the region wide."
;; tar-header-offset turns out to be null for files fetched with W3,
;; at least.
(let ((coding-system-for-write 'no-conversion))
- (write-region (or (byte-to-position tar-header-offset)
- (point-min))
+ (write-region (if tar-header-offset
+ (byte-to-position tar-header-offset)
+ (point-min))
(point-max)
buffer-file-name nil t))
(tar-clear-modification-flags)