Function: org-find-dblock

org-find-dblock is a byte-compiled function defined in org.el.gz.

Signature

(org-find-dblock NAME)

Documentation

Find the first dynamic block with name NAME in the buffer.

If not found, stay at current position and return nil.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org.el.gz
;;;; Dynamic blocks

(defun org-find-dblock (name)
  "Find the first dynamic block with name NAME in the buffer.
If not found, stay at current position and return nil."
  (let ((case-fold-search t) pos)
    (save-excursion
      (goto-char (point-min))
      (setq pos (and (re-search-forward
		      (concat "^[ \t]*#\\+\\(?:BEGIN\\|begin\\):[ \t]+" name "\\>") nil t)
		     (match-beginning 0))))
    (when pos (goto-char pos))
    pos))