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

lisp/gnus-sum.el

index 02b6399..1ba0ca1 100644 (file)
@@ -4561,8 +4561,10 @@ The resulting hash table is returned, or nil if no Xrefs were found."
        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)))
+        (or (and (gnus-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.