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

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

[elpa] externals/org 8aa6e8125d 3/7: lisp/ob-cal.el: Fix docstrings


From: ELPA Syncer
Subject: [elpa] externals/org 8aa6e8125d 3/7: lisp/ob-cal.el: Fix docstrings
Date: Wed, 2 Aug 2023 03:58:41 -0400 (EDT)

branch: externals/org
commit 8aa6e8125d4fd16fc4b45667690b2383cf305c52
Author: Ihor Radchenko <yantar92@posteo.net>
Commit: Ihor Radchenko <yantar92@posteo.net>

    lisp/ob-cal.el: Fix docstrings
    
    * lisp/ob-calc.el (org-babel-execute:calc): Mention all the args.
    (org-babel-calc-maybe-resolve-var): Add docstring.
---
 lisp/ob-calc.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lisp/ob-calc.el b/lisp/ob-calc.el
index 5572ce818b..02a33384b2 100644
--- a/lisp/ob-calc.el
+++ b/lisp/ob-calc.el
@@ -50,7 +50,7 @@
 (defvar org--var-syms) ; Dynamically scoped from org-babel-execute:calc
 
 (defun org-babel-execute:calc (body params)
-  "Execute a block of calc code with Babel."
+  "Execute BODY of calc code with Babel using PARAMS."
   (unless (get-buffer "*Calculator*")
     (save-window-excursion (calc) (calc-quit)))
   (let* ((vars (org-babel--get-vars params))
@@ -99,6 +99,8 @@
         (calc-pop 1)))))
 
 (defun org-babel-calc-maybe-resolve-var (el)
+"Resolve user variables in EL.
+EL is taken from the output of `math-read-exprs'."
   (if (consp el)
       (if (and (eq 'var (car el)) (member (cadr el) org--var-syms))
          (progn



reply via email to

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