1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-11-21 06:55:35 +00:00

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
This commit is contained in:
Ihor Radchenko 2024-08-22 14:30:26 +02:00
parent b128d2be81
commit 8fd6cc9020
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B

View File

@ -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"))