From 6a97014ddbe79569ac630c0dccd9505e78036a89 Mon Sep 17 00:00:00 2001 From: yamaoka Date: Fri, 3 Mar 2006 04:29:31 +0000 Subject: [PATCH] Synch to No Gnus 200603030429. --- lisp/ChangeLog | 8 ++++++++ lisp/gnus-sum.el | 7 +++++-- lisp/mm-decode.el | 18 ++++++++++-------- 3 files changed, 23 insertions(+), 10 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 96c62b0..574e408 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,11 @@ +2006-03-03 Katsumi Yamaoka + + * mm-decode.el (mm-get-part): Don't use + mm-with-unibyte-current-buffer. + + * gnus-sum.el (gnus-summary-set-display-table): Don't nix out + characters 160 through 255 in Emacs 23. + 2006-03-02 Reiner Steib * gnus-art.el (gnus-article-browse-html-temp-list): Rename from diff --git a/lisp/gnus-sum.el b/lisp/gnus-sum.el index e88b214..3c6fc6d 100644 --- a/lisp/gnus-sum.el +++ b/lisp/gnus-sum.el @@ -3276,8 +3276,11 @@ display only a single character." (aset table ?\r nil) ;; We keep TAB as well. (aset table ?\t nil) - ;; We nix out any glyphs over 126 that are not set already. - (let ((i 256)) + ;; We nix out any glyphs 127 through 255, or 127 through 159 in + ;; Emacs 23, that are not set already. + (let ((i (if (ignore-errors (= (make-char 'latin-iso8859-1 160) 160)) + 160 + 256))) (while (>= (setq i (1- i)) 127) ;; Only modify if the entry is nil. (unless (aref table i) diff --git a/lisp/mm-decode.el b/lisp/mm-decode.el index af2049d..0a39fd7 100644 --- a/lisp/mm-decode.el +++ b/lisp/mm-decode.el @@ -1078,14 +1078,16 @@ external if displayed external." (defun mm-get-part (handle) "Return the contents of HANDLE as a string." - (mm-with-unibyte-buffer - (insert (with-current-buffer (mm-handle-buffer handle) - (mm-with-unibyte-current-buffer - (buffer-string)))) - (mm-decode-content-transfer-encoding - (mm-handle-encoding handle) - (mm-handle-media-type handle)) - (buffer-string))) + (let ((default-enable-multibyte-characters + (with-current-buffer (mm-handle-buffer handle) + (mm-multibyte-p)))) + (with-temp-buffer + (insert-buffer-substring (mm-handle-buffer handle)) + (mm-disable-multibyte) + (mm-decode-content-transfer-encoding + (mm-handle-encoding handle) + (mm-handle-media-type handle)) + (buffer-string)))) (defun mm-insert-part (handle) "Insert the contents of HANDLE in the current buffer." -- 1.7.10.4