Function: lm-section-start
lm-section-start is a byte-compiled function defined in
lisp-mnt.el.gz.
Signature
(lm-section-start HEADER &optional AFTER)
Documentation
Return the buffer location of a given section start marker.
The HEADER is the section mark string to search for. If AFTER is non-nil, return the location of the next line. If the given section does not exist, return nil.
Aliases
lm-section-mark (obsolete since 30.1)
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/lisp-mnt.el.gz
(defun lm-section-start (header &optional after)
"Return the buffer location of a given section start marker.
The HEADER is the section mark string to search for.
If AFTER is non-nil, return the location of the next line.
If the given section does not exist, return nil."
(save-excursion
(let ((case-fold-search t))
(goto-char (point-min))
(if (re-search-forward (lm-get-header-re header 'section) nil t)
(line-beginning-position (if after 2))))))