Function: rmail-mime-update-tagline
rmail-mime-update-tagline is a byte-compiled function defined in
rmailmm.el.gz.
Signature
(rmail-mime-update-tagline ENTITY)
Documentation
Update the current tag line for MIME-entity ENTITY.
Source Code
;; Defined in /usr/src/emacs/lisp/mail/rmailmm.el.gz
(defun rmail-mime-update-tagline (entity)
"Update the current tag line for MIME-entity ENTITY."
(let ((inhibit-read-only t)
(modified (buffer-modified-p))
;; If we are going to show the body, the new button label is
;; "Hide". Otherwise, it's "Show".
(label
(if (rmail-mime-display-body
(aref (rmail-mime-entity-display entity) 1))
"Hide" "Show"))
(button (next-button (point))))
;; Go to the second character of the button "Show" or "Hide".
(goto-char (1+ (button-start button)))
(setq button (button-at (point)))
(save-excursion
(insert label)
(delete-region (point) (button-end button)))
(delete-region (button-start button) (point))
(put-text-property (point) (button-end button) 'rmail-mime-entity entity)
(restore-buffer-modified-p modified)
;; The following call to forward-line must be in sync with how
;; rmail-mime-insert-tagline formats the tagline.
(forward-line 2)))