mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-02-02 20:16:25 +00:00
(tar-mode-write-file): Don't signal an error by
calling byte-to-position with a nil tar-header-offset.
This commit is contained in:
parent
974548ec2c
commit
e63f0ff0f6
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user