Function: mh-profile-component-value
mh-profile-component-value is a byte-compiled function defined in
mh-e.el.gz.
Signature
(mh-profile-component-value COMPONENT)
Documentation
Find and return the value of COMPONENT in the current buffer.
Returns nil if the component is not in the buffer.
Source Code
;; Defined in /usr/src/emacs/lisp/mh-e/mh-e.el.gz
(defun mh-profile-component-value (component)
"Find and return the value of COMPONENT in the current buffer.
Returns nil if the component is not in the buffer."
(let ((case-fold-search t))
(goto-char (point-min))
(cond ((not (re-search-forward (format "^%s:" component) nil t)) nil)
((looking-at "[\t ]*$") nil)
(t
(re-search-forward "[\t ]*\\([^\t \n].*\\)$" nil t)
(let ((start (match-beginning 1)))
(end-of-line)
(buffer-substring start (point)))))))