summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIhor Radchenko <yantar92@posteo.net>2024-08-22 14:30:26 +0200
committerIhor Radchenko <yantar92@posteo.net>2024-08-22 14:36:51 +0200
commit8fd6cc9020d58fa590910cfb598419b80e6d1573 (patch)
treee5ec3d6f7881ff8407415b3fd94247bfc851d408
parentb128d2be817b15748c1e4b47d3eedd91daf70fbd (diff)
lisp/ob-gnuplot.el: Fix cyclic dependency
* lisp/ob-gnuplot.el (org-babel-gnuplot-table-to-data): Load ox-ascii dynamically. Reported-by: Donald Hunter <donald@sealgair.com> Link: https://orgmode.org/list/20240821112055.16184-1-donald@sealgair.com
-rw-r--r--lisp/ob-gnuplot.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/ob-gnuplot.el b/lisp/ob-gnuplot.el
index 956763c58..10192cb9a 100644
--- a/lisp/ob-gnuplot.el
+++ b/lisp/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,8 @@ then create one. Return the initialized session. The current
"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)
+ (declare-function org-export-create-backend "ox")
(with-temp-file data-file
(insert (let ((org-babel-gnuplot-timestamp-fmt
(or (plist-get params :timefmt) "%Y-%m-%d-%H:%M:%S"))