Function: lm-get-header-re

lm-get-header-re is a byte-compiled function defined in lisp-mnt.el.gz.

Signature

(lm-get-header-re HEADER &optional MODE)

Documentation

Return regexp for matching HEADER.

If called with optional MODE and with value section, return section regexp instead.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/lisp-mnt.el.gz
;;; Functions:

;; These functions all parse the headers of the current buffer

(defun lm-get-header-re (header &optional mode)
  "Return regexp for matching HEADER.
If called with optional MODE and with value `section',
return section regexp instead."
  (if (eq mode 'section)
      (concat "^;;;;* \\(" header "\\):[ \t]*$")
    (concat lm-header-prefix "\\(" header "\\)[ \t]*:[ \t]*")))