emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals-release/org d5b98bcfb5 2/2: org-dynamic-block-define: C


From: ELPA Syncer
Subject: [elpa] externals-release/org d5b98bcfb5 2/2: org-dynamic-block-define: Clarify that FUNC must accept zero arguments
Date: Mon, 19 Feb 2024 06:58:36 -0500 (EST)

branch: externals-release/org
commit d5b98bcfb5ddaf89213c4b784c34fdcd3bb7ebfe
Author: Ihor Radchenko <yantar92@posteo.net>
Commit: Ihor Radchenko <yantar92@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 <inkbottle007@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))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]