Synch to No Gnus 200509071350.
authoryamaoka <yamaoka>
Wed, 7 Sep 2005 15:18:32 +0000 (15:18 +0000)
committeryamaoka <yamaoka>
Wed, 7 Sep 2005 15:18:32 +0000 (15:18 +0000)
lisp/ChangeLog
lisp/gnus-art.el
lisp/nnweb.el

index 47bd6b9..b2538ae 100644 (file)
@@ -1,3 +1,13 @@
+2005-09-07  Reiner Steib  <Reiner.Steib@gmx.de>
+
+       * nnweb.el (nnweb-google-wash-article): Print a message if article
+       is not available.
+
+2005-09-07  TSUCHIYA Masatoshi  <tsuchiya@namazu.org>
+
+       * gnus-art.el (gnus-mime-display-single): Revert 2004-10-07
+       change.  Decode text/* parts content before displaying.
+
 2005-09-06  Katsumi Yamaoka  <yamaoka@jpl.org>
 
        * mm-view.el (mm-display-inline-fontify): Disable support modes.
index 3c200b0..4816bb3 100644 (file)
@@ -5318,7 +5318,14 @@ If displaying \"text/html\" is discouraged \(see
              (forward-line -1)
              (setq beg (point)))
            (gnus-article-insert-newline)
-           (mm-display-inline handle)
+           (mm-insert-inline handle
+                             (let ((charset
+                                    (mail-content-type-get
+                                     (mm-handle-type handle) 'charset)))
+                               (if (eq charset 'gnus-decoded)
+                                   (mm-get-part handle)
+                                 (mm-decode-string (mm-get-part handle)
+                                                   charset))))
            (goto-char (point-max))))
          ;; Do highlighting.
          (save-excursion
index 2e7c315..94a4114 100644 (file)
@@ -319,12 +319,22 @@ Valid types include `google', `dejanews', and `gmane'.")
   ;; We have Google's masked e-mail addresses here.  :-/
   (let ((case-fold-search t))
     (goto-char (point-min))
-    (delete-region (point-min)
-                  (1+ (re-search-forward "^<pre>" nil t)))
-    (goto-char (point-min))
-    (delete-region (- (re-search-forward "^</pre>" nil t) (length "</pre>"))
-                  (point-max))
-    (mm-url-decode-entities)))
+    (if (save-excursion
+         (or (re-search-forward "The requested message.*could not be found."
+                                nil t)
+             (not (and (re-search-forward "^<pre>" nil t)
+                       (re-search-forward "^</pre>" nil t)))))
+       ;; FIXME: Don't know how to indicate "not found".
+       ;; Should this function throw an error?  --rsteib
+       (progn
+         (gnus-message 3 "Requested article not found")
+         (erase-buffer))
+      (delete-region (point-min)
+                    (1+ (re-search-forward "^<pre>" nil t)))
+      (goto-char (point-min))
+      (delete-region (- (re-search-forward "^</pre>" nil t) (length "</pre>"))
+                    (point-max))
+      (mm-url-decode-entities))))
 
 (defun nnweb-google-parse-1 (&optional Message-ID)
   (let ((i 0)