"Set up `default-mime-charset' of summary buffer.
It is specified by variable `gnus-newsgroup-default-charset-alist'
\(cf. function `gnus-set-newsgroup-default-charset')."
+ ;; We are in `nntp-server-buffer' now.
(if (buffer-live-p gnus-summary-buffer)
(let* ((qgroup (save-excursion
(set-buffer gnus-summary-buffer)
(if charset
(progn
(save-excursion
+ ;; Set `default-mime-charset' in summary buffer.
(set-buffer gnus-summary-buffer)
(make-local-variable 'default-mime-charset)
(setq default-mime-charset charset))
+ ;; Also set `default-mime-charset' in current buffer.
(make-local-variable 'default-mime-charset)
(setq default-mime-charset charset))
+ ;; Reset `default-mime-charset' in current buffer.
(kill-local-variable 'default-mime-charset)))))
+(defun gnus-get-summary-default-charset ()
+ "Get the value of `default-mime-charset' from summary buffer."
+ (and (buffer-live-p gnus-summary-buffer)
+ (save-excursion
+ (set-buffer gnus-summary-buffer)
+ default-mime-charset)))
+
;;; @ end
;;;
(if (equal val ,ignore-value)
"" val))))
+;;; dummy function. XEmacs will redefine this.
+(defun gnus-tilde-pad-form (el pad-width)
+ "Return a form that pads EL to PAD-WIDTH."
+ )
+
(defun gnus-parse-format (format spec-alist &optional insert)
;; This function parses the FORMAT string with the help of the
;; SPEC-ALIST and returns a list that can be eval'ed to return the