From b794b3cf27118618f0266c2e3f5159b332ee406f Mon Sep 17 00:00:00 2001 From: yamaoka Date: Sun, 4 Jul 1999 23:41:19 +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 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lisp/gnus-sum.el b/lisp/gnus-sum.el index 9514695..ee421d3 100644 --- a/lisp/gnus-sum.el +++ b/lisp/gnus-sum.el @@ -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. -- 1.7.10.4