Function: rmail-highlight-headers
rmail-highlight-headers is a byte-compiled function defined in
rmail.el.gz.
Signature
(rmail-highlight-headers)
Documentation
Highlight the headers specified by rmail-highlighted-headers.
Uses the face rmail-highlight.
Source Code
;; Defined in /usr/src/emacs/lisp/mail/rmail.el.gz
(defun rmail-highlight-headers ()
"Highlight the headers specified by `rmail-highlighted-headers'.
Uses the face `rmail-highlight'."
(if rmail-highlighted-headers
(save-excursion
(search-forward "\n\n" nil 'move)
(save-restriction
(narrow-to-region (point-min) (point))
(let ((case-fold-search t)
(inhibit-read-only t)
(face 'rmail-highlight)
;; List of overlays to reuse.
(overlays rmail-overlay-list))
(goto-char (point-min))
(while (re-search-forward rmail-highlighted-headers nil t)
(skip-chars-forward " \t")
(let ((beg (point))
overlay)
(while (progn (forward-line 1)
(looking-at "[ \t]")))
;; Back up over newline, then trailing spaces or tabs
(forward-char -1)
(while (member (preceding-char) '(? ?\t))
(forward-char -1))
(if overlays
;; Reuse an overlay we already have.
(progn
(setq overlay (car overlays)
overlays (cdr overlays))
(overlay-put overlay 'face face)
(move-overlay overlay beg (point)))
;; Make a new overlay and add it to
;; rmail-overlay-list.
(setq overlay (make-overlay beg (point)))
(overlay-put overlay 'face face)
(setq rmail-overlay-list
(cons overlay rmail-overlay-list))))))))))