aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/tar-mode.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/tar-mode.el b/lisp/tar-mode.el
index 2e1b8c5d5de..4c89f9b4caf 100644
--- a/lisp/tar-mode.el
+++ b/lisp/tar-mode.el
@@ -1245,8 +1245,9 @@ Leaves the region wide."
1245 ;; tar-header-offset turns out to be null for files fetched with W3, 1245 ;; tar-header-offset turns out to be null for files fetched with W3,
1246 ;; at least. 1246 ;; at least.
1247 (let ((coding-system-for-write 'no-conversion)) 1247 (let ((coding-system-for-write 'no-conversion))
1248 (write-region (or (byte-to-position tar-header-offset) 1248 (write-region (if tar-header-offset
1249 (point-min)) 1249 (byte-to-position tar-header-offset)
1250 (point-min))
1250 (point-max) 1251 (point-max)
1251 buffer-file-name nil t)) 1252 buffer-file-name nil t))
1252 (tar-clear-modification-flags) 1253 (tar-clear-modification-flags)