(gnus-get-newsgroup-headers): Don't bind the value of
authoryamaoka <yamaoka>
Sun, 4 Jul 1999 23:41:19 +0000 (23:41 +0000)
committeryamaoka <yamaoka>
Sun, 4 Jul 1999 23:41:19 +0000 (23:41 +0000)
`mail-parse-ignored-charsets' if its local value in `gnus-summary-buffer' is
nil.

lisp/gnus-sum.el

index 9514695..ee421d3 100644 (file)
@@ -4530,9 +4530,11 @@ The resulting hash table is returned, or nil if no Xrefs were found."
                             gnus-newsgroup-dependencies)))
        headers id end ref
        (mail-parse-charset gnus-newsgroup-charset)
-       (mail-parse-ignored-charsets 
-            (save-excursion (set-buffer gnus-summary-buffer)
-                            gnus-newsgroup-ignored-charsets)))
+       (mail-parse-ignored-charsets
+        (or (and (buffer-live-p gnus-summary-buffer)
+                 (save-excursion (set-buffer gnus-summary-buffer)
+                                 gnus-newsgroup-ignored-charsets))
+            gnus-newsgroup-ignored-charsets)))
     (save-excursion
       (set-buffer nntp-server-buffer)
       ;; Translate all TAB characters into SPACE characters.