From 4fb8ad9990127093d0ef32be8d5b804f7a85ec77 Mon Sep 17 00:00:00 2001 From: Ihor Radchenko Date: Fri, 4 Aug 2023 11:33:01 +0300 Subject: [PATCH] lisp/ob-core.el: Add some missing docstrings * lisp/ob-core.el (org-babel-execute-safely-maybe): (org-babel-execute-maybe): (org-babel-active-location-p): Add docstrings. --- lisp/ob-core.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lisp/ob-core.el b/lisp/ob-core.el index 606c3efec..4ac146d52 100644 --- a/lisp/ob-core.el +++ b/lisp/ob-core.el @@ -312,11 +312,15 @@ environment, to override this check." ;;;###autoload (defun org-babel-execute-safely-maybe () + "Maybe `org-babel-execute-maybe'. +This function does nothing unless `org-babel-no-eval-on-ctrl-c-ctrl-c' +is non-nil." (unless org-babel-no-eval-on-ctrl-c-ctrl-c (org-babel-execute-maybe))) ;;;###autoload (defun org-babel-execute-maybe () +"Execute src block or babel call at point." (interactive) (or (org-babel-execute-src-block-maybe) (org-babel-lob-execute-maybe))) @@ -1169,6 +1173,7 @@ evaluation mechanisms." (defvar org-link-bracket-re) (defun org-babel-active-location-p () + "Return non-nil, when at executable element." (org-element-type-p (save-match-data (org-element-context)) '(babel-call inline-babel-call inline-src-block src-block)))