diff options
| author | Kenichi Handa | 1998-06-15 01:23:35 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1998-06-15 01:23:35 +0000 |
| commit | 32dcfa299b8740b03472aad7aff034f99c44d7fc (patch) | |
| tree | 052f780c07ee1830c135e234ec1182a485d489fb | |
| parent | 81a7030d5f336eee18acad0dc27b338c2a5f221a (diff) | |
| download | emacs-32dcfa299b8740b03472aad7aff034f99c44d7fc.tar.gz emacs-32dcfa299b8740b03472aad7aff034f99c44d7fc.zip | |
(tar-extract): Adjusted for the change of the spec
of set-auto-coding-function.
| -rw-r--r-- | lisp/tar-mode.el | 10 |
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))) |