0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-09-27 11:30:57 +00:00

ob-gnuplot: Fix regression from 23d8d59df when ox-org is not loaded

* lisp/ob-gnuplot.el (org-babel-gnuplot-table-to-data): Require
ox-org, making sure that org export backend is available.
This commit is contained in:
Ihor Radchenko 2021-12-17 10:17:40 +08:00
parent c614234688
commit eb9f34222a
No known key found for this signature in database
GPG key ID: 6470762A7DA11D8B

View file

@ -284,6 +284,7 @@ then create one. Return the initialized session. The current
(defun org-babel-gnuplot-table-to-data (table data-file params)
"Export TABLE to DATA-FILE in a format readable by gnuplot.
Pass PARAMS through to `orgtbl-to-generic' when exporting TABLE."
(require 'ox-org)
(with-temp-file data-file
(insert (let ((org-babel-gnuplot-timestamp-fmt
(or (plist-get params :timefmt) "%Y-%m-%d-%H:%M:%S")))