Function: org-map-dblocks
org-map-dblocks is a byte-compiled function defined in org.el.gz.
Signature
(org-map-dblocks &optional COMMAND)
Documentation
Apply COMMAND to all dynamic blocks in the current buffer.
If COMMAND is not given, use org-update-dblock.
Source Code
;; Defined in /usr/src/emacs/lisp/org/org.el.gz
(defun org-map-dblocks (&optional command)
"Apply COMMAND to all dynamic blocks in the current buffer.
If COMMAND is not given, use `org-update-dblock'."
(let ((cmd (or command 'org-update-dblock)))
(save-excursion
(goto-char (point-min))
(while (re-search-forward org-dblock-start-re nil t)
(goto-char (match-beginning 0))
(save-excursion
(condition-case-unless-debug nil
(funcall cmd)
(error (message "Error during update of dynamic block"))))
(unless (re-search-forward org-dblock-end-re nil t)
(error "Dynamic block not terminated"))))))