branch: externals-release/org commit d5b98bcfb5ddaf89213c4b784c34fdcd3bb7ebfe Author: Ihor Radchenko <yanta...@posteo.net> Commit: Ihor Radchenko <yanta...@posteo.net>
org-dynamic-block-define: Clarify that FUNC must accept zero arguments * lisp/org.el (org-dynamic-block-define): Update the docstring. Reported-by: chris <inkbottle...@gmail.com> Link: https://orgmode.org/list/5790810.DvuYhMxLoT@nixos --- lisp/org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index 7194710887..0fd5b27629 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -8780,7 +8780,7 @@ TYPE is the dynamic block type, as a string." (defun org-dynamic-block-define (type func) "Define dynamic block TYPE with FUNC. TYPE is a string. FUNC is the function creating the dynamic -block of such type." +block of such type. FUNC must be able to accept zero arguments." (pcase (assoc type org-dynamic-block-alist) (`nil (push (cons type func) org-dynamic-block-alist)) (def (setcdr def func))))