aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/tar-mode.el10
1 files changed, 2 insertions, 8 deletions
diff --git a/lisp/tar-mode.el b/lisp/tar-mode.el
index 7e5794410be..ad8bdea817b 100644
--- a/lisp/tar-mode.el
+++ b/lisp/tar-mode.el
@@ -748,14 +748,8 @@ appear on disk when you save the tar-file's buffer."
748 ;; which determine the coding-system and decode the text. 748 ;; which determine the coding-system and decode the text.
749 (let ((coding 749 (let ((coding
750 (and set-auto-coding-function 750 (and set-auto-coding-function
751 (funcall 751 (save-excursion
752 set-auto-coding-function 752 (funcall set-auto-coding-function (point-max)))))
753 (if (< (point-max) 4096)
754 (buffer-substring-no-properties 1 (point-max))
755 (concat
756 (buffer-substring-no-properties 1 1025)
757 (buffer-substring-no-properties
758 (- (point-max) 3072) (point-max)))))))
759 (multibyte enable-multibyte-characters) 753 (multibyte enable-multibyte-characters)
760 (detected (detect-coding-region 754 (detected (detect-coding-region
761 1 (min 16384 (point-max)) t))) 755 1 (min 16384 (point-max)) t)))