Function: org-find-exact-headline-in-buffer
org-find-exact-headline-in-buffer is a byte-compiled function defined
in org.el.gz.
Signature
(org-find-exact-headline-in-buffer HEADING &optional BUFFER POS-ONLY)
Documentation
Find node HEADING in BUFFER.
Return a marker to the heading if it was found, or nil if not. If POS-ONLY is set, return just the position instead of a marker.
The heading text must match exact, but it may have a TODO keyword, a priority cookie and tags in the standard locations.
Source Code
;; Defined in /usr/src/emacs/lisp/org/org.el.gz
(defun org-find-exact-headline-in-buffer (heading &optional buffer pos-only)
"Find node HEADING in BUFFER.
Return a marker to the heading if it was found, or nil if not.
If POS-ONLY is set, return just the position instead of a marker.
The heading text must match exact, but it may have a TODO keyword,
a priority cookie and tags in the standard locations."
(with-current-buffer (or buffer (current-buffer))
(org-with-wide-buffer
(goto-char (point-min))
(let (case-fold-search)
(when (re-search-forward
(format org-complex-heading-regexp-format
(regexp-quote heading)) nil t)
(if pos-only
(match-beginning 0)
(move-marker (make-marker) (match-beginning 0))))))))