Function: org-babel-lob-execute-maybe

org-babel-lob-execute-maybe is an autoloaded, interactive and byte-compiled function defined in ob-lob.el.gz.

Signature

(org-babel-lob-execute-maybe)

Documentation

Execute a Library of Babel source block, if appropriate.

Detect if this is context for a Library Of Babel source block and if so then run the appropriate source block from the Library.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/org/ob-lob.el.gz
;; Functions for executing lob one-liners.

;;;###autoload
(defun org-babel-lob-execute-maybe ()
  "Execute a Library of Babel source block, if appropriate.
Detect if this is context for a Library Of Babel source block and
if so then run the appropriate source block from the Library."
  (interactive)
  (let* ((datum (org-element-context))
         (info (org-babel-lob-get-info datum)))
    (when info
      (org-babel-execute-src-block nil info nil (org-element-type datum))
      t)))