aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa2006-03-28 11:23:49 +0000
committerKenichi Handa2006-03-28 11:23:49 +0000
commit1236f7f62443b730d47d70e379a308e0917d27b2 (patch)
tree35c677cf68f2ac7cb80e117f2b09131bb403733c
parent0c30633450ba568048a46707bda33487dfa86254 (diff)
downloademacs-1236f7f62443b730d47d70e379a308e0917d27b2.tar.gz
emacs-1236f7f62443b730d47d70e379a308e0917d27b2.zip
(tar-untar-buffer, tar-summarize-buffer): Call
set-buffer-multibyte with arg `to'.
-rw-r--r--lisp/tar-mode.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/tar-mode.el b/lisp/tar-mode.el
index 00d9da4d89b..60b2155adc3 100644
--- a/lisp/tar-mode.el
+++ b/lisp/tar-mode.el
@@ -397,7 +397,8 @@ MODE should be an integer which is a file mode value."
397 (unless (file-directory-p name) 397 (unless (file-directory-p name)
398 (write-region start end name)) 398 (write-region start end name))
399 (set-file-modes name (tar-header-mode tokens)))))) 399 (set-file-modes name (tar-header-mode tokens))))))
400 (set-buffer-multibyte multibyte)))) 400 (if multibyte
401 (set-buffer-multibyte 'to)))))
401 402
402(defun tar-summarize-buffer () 403(defun tar-summarize-buffer ()
403 "Parse the contents of the tar file in the current buffer. 404 "Parse the contents of the tar file in the current buffer.
@@ -448,7 +449,8 @@ is visible (and the real data of the buffer is hidden)."
448 (progress-reporter-done progress-reporter) 449 (progress-reporter-done progress-reporter)
449 (message "Warning: premature EOF parsing tar file"))) 450 (message "Warning: premature EOF parsing tar file")))
450 ;; Obey the user's preference for the use of uni/multibytes. 451 ;; Obey the user's preference for the use of uni/multibytes.
451 (set-buffer-multibyte default-enable-multibyte-characters) 452 (if default-enable-multibyte-characters
453 (set-buffer-multibyte 'to))
452 (goto-char (point-min)) 454 (goto-char (point-min))
453 (let ((inhibit-read-only t) 455 (let ((inhibit-read-only t)
454 ;; Collect summary lines and insert them all at once since tar files 456 ;; Collect summary lines and insert them all at once since tar files