Function: org-goto--local-search-headings

org-goto--local-search-headings is a byte-compiled function defined in org-goto.el.gz.

Signature

(org-goto--local-search-headings STRING BOUND NOERROR)

Documentation

Search and make sure that any matches are in headlines.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org-goto.el.gz
(defun org-goto--local-search-headings (string bound noerror)
  "Search and make sure that any matches are in headlines."
  (catch 'return
    (while (if isearch-forward
               (search-forward string bound noerror)
             (search-backward string bound noerror))
      (when (save-match-data
	      (and (save-excursion
		     (forward-line 0)
		     (looking-at org-complex-heading-regexp))
		   (or (not (match-beginning 5))
		       (< (point) (match-beginning 5)))))
	(throw 'return (point))))))