From a1e623713b245c37a80096017b0233ff7ea26f48 Mon Sep 17 00:00:00 2001 From: yamaoka Date: Sun, 4 Jul 1999 23:47:05 +0000 Subject: [PATCH] (gnus-get-newsgroup-headers): Don't bind the value of `mail-parse-ignored-charsets' if its local value in `gnus-summary-buffer' is nil. --- lisp/gnus-sum.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lisp/gnus-sum.el b/lisp/gnus-sum.el index 02b6399..1ba0ca1 100644 --- a/lisp/gnus-sum.el +++ b/lisp/gnus-sum.el @@ -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. -- 1.7.10.4