(gnus-message-maybe-setup-default-charset): Move from message.el and rename
authorkeiichi <keiichi>
Fri, 16 Oct 1998 03:02:39 +0000 (03:02 +0000)
committerkeiichi <keiichi>
Fri, 16 Oct 1998 03:02:39 +0000 (03:02 +0000)
from `message-maybe-setup-default-charset'.
(gnus-setup-message): Call `gnus-message-maybe-setup-default-charset'.

lisp/gnus-msg.el

index 5774e25..55556d8 100644 (file)
@@ -218,11 +218,25 @@ Thank you for your help in stamping out bugs.
         (set (make-local-variable 'gnus-message-group-art)
              (cons ,group ,article))
         (make-local-variable 'gnus-newsgroup-name)
+        (gnus-message-maybe-setup-default-charset)
         (gnus-run-hooks 'gnus-message-setup-hook))
        (gnus-add-buffer)
        (gnus-configure-windows ,config t)
        (set-buffer-modified-p nil))))
 
+(defun gnus-message-maybe-setup-default-charset ()
+  (let ((charset
+        (and (boundp 'gnus-summary-buffer)
+              (buffer-live-p gnus-summary-buffer)
+             (save-excursion
+               (set-buffer gnus-summary-buffer)
+               default-mime-charset))))
+    (if charset
+       (progn
+         (make-local-variable 'default-mime-charset)
+         (setq default-mime-charset charset)
+         ))))
+
 (defun gnus-inews-add-send-actions (winconf buffer article)
   (make-local-hook 'message-sent-hook)
   (add-hook 'message-sent-hook 'gnus-inews-do-gcc nil t)