org-dynamic-block-define: Clarify that FUNC must accept zero arguments
* lisp/org.el (org-dynamic-block-define): Update the docstring. Reported-by: chris <inkbottle007@gmail.com> Link: https://orgmode.org/list/5790810.DvuYhMxLoT@nixos
This commit is contained in:
parent
d6c3ab08b4
commit
d5b98bcfb5
|
@ -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))))
|
||||
|
|
Loading…
Reference in New Issue