+1998-12-28 Katsumi Yamaoka <yamaoka@jpl.org>
+
+ * lisp/gnus-sum.el (gnus-summary-preview-mime-message): Always
+ select the article before previewing. Abolish prefix arg.
+
+ * lisp/gnus-art.el (gnus-mime-preview-quitting-method): re-select
+ the article without reservation.
+ (gnus-article-display-mime-message): Show all headers if
+ `gnus-have-all-headers' the local var of summary buffer is non-nil.
+
1998-12-25 Katsumi Yamaoka <yamaoka@jpl.org>
* lisp/gnus-art.el (gnus-article-check-buffer): Rewrite (checking
(defun gnus-article-display-mime-message ()
"Article display method for MIME message."
;; called from `gnus-original-article-buffer'.
- (let ((charset (with-current-buffer gnus-summary-buffer
- default-mime-charset)))
+ (let (charset all-headers)
+ (with-current-buffer gnus-summary-buffer
+ (setq charset default-mime-charset
+ all-headers gnus-have-all-headers))
(make-local-variable 'default-mime-charset)
(setq default-mime-charset charset)
(mime-display-message mime-message-structure
gnus-article-buffer nil gnus-article-mode-map)
+ (when all-headers
+ (gnus-article-hide-headers nil -1))
(make-local-variable 'default-mime-charset)
(setq default-mime-charset charset)
)
#'gnus-article-header-presentation-method)
(defun gnus-mime-preview-quitting-method ()
- (if gnus-show-mime
- (gnus-article-show-summary)
- (mime-preview-kill-buffer)
- (delete-other-windows)
- (gnus-article-show-summary)
- (gnus-summary-select-article nil t)
- ))
+ (mime-preview-kill-buffer)
+ (delete-other-windows)
+ (gnus-article-show-summary)
+ (gnus-summary-select-article gnus-show-all-headers t))
(set-alist 'mime-preview-quitting-method-alist
'gnus-original-article-mode #'gnus-mime-preview-quitting-method)
(gnus-summary-recenter)
(gnus-summary-position-point))))
-(defun gnus-summary-preview-mime-message (arg)
+(defun gnus-summary-preview-mime-message ()
"MIME decode and play this message."
- (interactive "P")
- (or gnus-show-mime
- (let ((gnus-break-pages nil)
- (gnus-show-mime t))
- (gnus-summary-select-article t t)
- ))
- (select-window (get-buffer-window gnus-article-buffer))
- )
+ (interactive)
+ (let ((gnus-break-pages nil)
+ (gnus-show-mime t))
+ (gnus-summary-select-article gnus-show-all-headers t))
+ (select-window (get-buffer-window gnus-article-buffer)))
;;; Dead summaries.
If ARG is a positive number, turn MIME processing on."
(interactive "P")
(setq gnus-show-mime
- (if (null arg) (not gnus-show-mime)
+ (if (null arg)
+ (not gnus-show-mime)
(> (prefix-numeric-value arg) 0)))
(gnus-summary-select-article t 'force))