Hi,

when I use #+Call: on a table to run an emacs lisp file, I get a very
different results after upgrading to org version 9.8 or later.

I put the result of “git bisect” at the end.  Here are the different
outputs, my test file plus a minimal emacs configuration:


- Output (in *Messages* buffer) in version 9.7.39 and earlier

#+begin_example
Executing Emacs-Lisp call at position 160...
entry11
entry12
entry13
entry21
entry22
entry23
Code block produced no output.
#+end_example


- Output (in *Messages* buffer) in version 9.8 and later

#+begin_example
Executing Emacs-Lisp call at position 160...
head1
head2
head3
do-table: Wrong type argument: sequencep, hline
#+end_example


#+Caption: testfile.org
#+begin_src org
  ,* Test mytable
  ,#+Name: mytable
  | head1   | head2   | head3   |
  |---------+---------+---------|
  | entry11 | entry12 | entry13 |
  | entry21 | entry22 | entry23 |
  ,#+Call: elisp-test(table=mytable)

  ,#+RESULTS:

  ,* Script: elisp-netentries-latitudes
  ,#+name: elisp-test
  ,#+begin_src emacs-lisp

    (defun do-table (table)
      (mapc (lambda (x) (message (format "%s" x))) (car table))

      (if (cdr table)
          (do-table (cdr table))
        ()))

    (do-table table)
  ,#+end_src
#+end_src


#+Caption: Emacs config
#+begin_src elisp
  (load-theme 'adwaita)

  (use-package org
    :load-path "~/ot/org-mode/lisp"
    :config
    ;; activate emacs lisp for org-babel
    (org-babel-do-load-languages
     'org-babel-load-languages
     '((emacs-lisp . t)))
    ;; don't ask for confirmation
    (setq org-confirm-babel-evaluate nil))
#+end_src


Result of git bisect:

7c05d44dfda86cfe5a2c512b4af9fe6c4d2d753b is the first bad commit
commit 7c05d44dfda86cfe5a2c512b4af9fe6c4d2d753b
Author: Ihor Radchenko <[email protected]>
Date:   Sat Jan 24 15:22:12 2026 +0100

    Evaluate header arguments when calling src block via #+CALL
    
    * lisp/ob-lob.el (org-babel-lob--src-info): New optional parameter to
    force src block parameter evaluation on request (not by default).
    (org-babel-lob-get-info): Respect NO-EVAL when resolving LOB.
    Document the exact context where evaluation of different parameters
    happen.  Bind `org-babel-current-src-block-location' appropriately as
    tests expect.
    
    Reported-by: Tom Gillespie <[email protected]>
    Link: https://orgmode.org/list/87pl89fwbq.fsf@localhost

 lisp/ob-lob.el | 56 +++++++++++++++++++++++++++++++++-----------------------
 1 file changed, 33 insertions(+), 23 deletions(-)


Best regards
Robert

Reply via email to