(gnus-set-summary-default-charset): Delete unlabeled-1.1.6
authorakr <akr>
Sun, 22 Mar 1998 18:52:18 +0000 (18:52 +0000)
committerakr <akr>
Sun, 22 Mar 1998 18:52:18 +0000 (18:52 +0000)
buffer-local binding of `default-mime-charset' when the
newsgroup doesn't match `gnus-newsgroup-default-charset-alist'.

lisp/gnus-i18n.el

index 3737fb9..5126a0a 100644 (file)
@@ -76,15 +76,15 @@ It is specified by variable `gnus-newsgroup-default-charset-alist'
                       ))
                   (setq alist (cdr alist)))
                 ))))
-       (when charset
-         (save-excursion
-           (set-buffer gnus-summary-buffer)
+       (if charset
+         (progn
+           (save-excursion
+             (set-buffer gnus-summary-buffer)
+             (make-local-variable 'default-mime-charset)
+             (setq default-mime-charset charset))
            (make-local-variable 'default-mime-charset)
-           (setq default-mime-charset charset)
-           )
-         (make-local-variable 'default-mime-charset)
-         (setq default-mime-charset charset)
-         ))))
+           (setq default-mime-charset charset))
+         (kill-local-variable 'default-mime-charset)))))
 
 
 ;;; @ end