mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-05 19:31:02 -08: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
1 changed files with 3 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue