[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [BUG] Recursive dependency when gnuplot added to org-babel-load-lang
From: |
Donald Hunter |
Subject: |
Re: [BUG] Recursive dependency when gnuplot added to org-babel-load-languages |
Date: |
Tue, 20 Aug 2024 15:17:42 +0100 |
I hit the same bug when running emacs/master (5e940a353e37) and bisected
it to:
commit 5a125fb5a9736bd3c67cf6ff9acc185d8e2260e2
Author: Kyle Meyer <kyle@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 <yantar92@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 <paulstansell@gmail.com>
Link:
https://orgmode.org/list/CAMJKaZzHuLxPoTg6FWUgt-U8QSHmuB3Kdqmk_E_0GH+jUZMSag@mail.gmail.com
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"))