summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/tar-mode.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/tar-mode.el b/lisp/tar-mode.el
index f24a91d4145..a02fd1b2ba9 100644
--- a/lisp/tar-mode.el
+++ b/lisp/tar-mode.el
@@ -736,7 +736,8 @@ appear on disk when you save the tar-file's buffer."
(funcall set-auto-coding-function
name (- (point-max) (point)))))
(car (find-operation-coding-system
- 'insert-file-contents name t))))
+ 'insert-file-contents
+ (cons name (current-buffer)) t))))
(multibyte enable-multibyte-characters)
(detected (detect-coding-region
(point-min)