+2010-01-19 Vitaly Mayatskikh <v.mayatskih@gmail.com>
+ * mime-view.el (toplevel): New defcustom: mime-view-buttons-visible
+ * mime-view.el (mime-display-entity): Use mime-view-buttons-visible
+ to control visibility of MIME buttons.
+
2007-06-18 Daiki Ueno <ueno@unixuser.org>
* mime-edit.el (turn-on-mime-edit): Remove redundant comments and
:group 'mime-view
:type '(repeat file))
+(defcustom mime-view-buttons-visible t
+ "Toggle visibility of MIME buttons."
+ :group 'mime-view
+ :type 'boolean)
;;; @ in raw-buffer (representation space)
;;;
(setq situation
(mime-find-entity-preview-situation entity default-situation)))
(let ((button-is-invisible
- (eq (cdr (or (assq '*entity-button situation)
- (assq 'entity-button situation)))
- 'invisible))
+ (or mime-view-buttons-visible
+ (eq (cdr (or (assq '*entity-button situation)
+ (assq 'entity-button situation)))
+ 'invisible)))
(header-is-visible
(eq (cdr (or (assq '*header situation)
(assq 'header situation)))
(if (functionp body-presentation-method)
(funcall body-presentation-method entity situation)
(mime-display-text/plain entity situation)))
- (when button-is-invisible
- (goto-char (point-max))
- (mime-view-insert-entity-button entity)
- )
(unless header-is-visible
(goto-char (point-max))
(insert "\n"))