I hit the same bug when running emacs/master (5e940a353e37) and bisected
it to:

  commit 5a125fb5a9736bd3c67cf6ff9acc185d8e2260e2
  Author: Kyle Meyer <k...@kyleam.com>
  Date:   Sun Jun 9 13:06:28 2024 -0400

      Update to Org 9.7.3

This is the org-mode commit that added (require 'ox-ascii)

  commit d38ca59230bd3b013398376c46719694948fe31e
  Author: Ihor Radchenko <yanta...@posteo.net>
  Date:   Sat Jul 29 11:26:39 2023 +0300

      ob-gnuplot: Fix links and verbatim when converting tables

      * lisp/ob-gnuplot.el (org-babel-gnuplot-table-to-data): Use custom
      backend to export table data.  The backend will export links verbatim,
      without trying to resolve them and drop verbatim markers from data
      fields.

      Reported-by: Paul Stansell <paulstans...@gmail.com>
      Link: 
https://orgmode.org/list/camjkazzhulxpotg6fwugt-u8qshmub3kdqmk_e_0gh+juzm...@mail.gmail.com


To reproduce the issue, run emacs -q then eval:

(custom-set-variables
 '(org-babel-load-languages
   '((gnuplot . t) (emacs-lisp . t))))

and start org-mode.

This fixes it for me:

diff --git a/lisp/org/ob-gnuplot.el b/lisp/org/ob-gnuplot.el
index 956763c587e5..fa39dc11fe76 100644
--- a/lisp/org/ob-gnuplot.el
+++ b/lisp/org/ob-gnuplot.el
@@ -45,7 +45,6 @@
 
 (require 'ob)
 (require 'org-macs)
-(require 'ox-ascii)
 
 (declare-function org-time-string-to-time "org" (s))
 (declare-function orgtbl-to-generic "org-table" (table params))
@@ -295,6 +294,7 @@ org-babel-gnuplot-table-to-data
   "Export TABLE to DATA-FILE in a format readable by gnuplot.
 Pass PARAMS through to `orgtbl-to-generic' when exporting TABLE."
   (require 'ox-org)
+  (require 'ox-ascii)
   (with-temp-file data-file
     (insert (let ((org-babel-gnuplot-timestamp-fmt
                   (or (plist-get params :timefmt) "%Y-%m-%d-%H:%M:%S"))


Reply via email to