Function: mh-signature-highlight
mh-signature-highlight is a byte-compiled function defined in
mh-mime.el.gz.
Signature
(mh-signature-highlight &optional HANDLE)
Documentation
Highlight message signature in HANDLE.
The optional argument, HANDLE is a MIME handle if the function is being used to highlight the signature in a MIME part.
Source Code
;; Defined in /usr/src/emacs/lisp/mh-e/mh-mime.el.gz
(defun mh-signature-highlight (&optional handle)
"Highlight message signature in HANDLE.
The optional argument, HANDLE is a MIME handle if the function is
being used to highlight the signature in a MIME part."
(let ((regexp
(cond ((not handle) "^-- $")
((not (and (equal (mm-handle-media-supertype handle) "text")
(equal (mm-handle-media-subtype handle) "html")))
"^-- $")
((eq (mh-mm-text-html-renderer) 'lynx) "^ --$")
(t "^--$"))))
(save-excursion
(goto-char (point-max))
(when (re-search-backward regexp nil t)
(mh-do-in-gnu-emacs
(let ((ov (make-overlay (point) (point-max))))
(overlay-put ov 'face 'mh-show-signature)
(overlay-put ov 'evaporate t)))
(mh-do-in-xemacs
(set-extent-property (make-extent (point) (point-max))
'face 'mh-show-signature))))))