From: Donald Hunter <donald@sealgair.com>
To: hugh@ccss.com
Cc: emacs-orgmode@gnu.org, Donald Hunter <donald@sealgair.com>
Subject: Re: [BUG] Recursive dependency when gnuplot added to org-babel-load-languages
Date: Wed, 21 Aug 2024 12:20:55 +0100 [thread overview]
Message-ID: <20240821112055.16184-1-donald@sealgair.com> (raw)
In-Reply-To: <87v86wlud8.fsf@ccss.com>
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
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"))
next prev parent reply other threads:[~2024-08-21 11:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-10 6:13 [BUG] Recursive dependency when gnuplot added to org-babel-load-languages [9.1.13 (release_9.1.13-791-g842002 @ /home/hugh/git/org-mode/lisp/)] hugh
2024-08-20 14:17 ` [BUG] Recursive dependency when gnuplot added to org-babel-load-languages Donald Hunter
2024-08-21 11:20 ` Donald Hunter [this message]
2024-08-22 12:38 ` Ihor Radchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240821112055.16184-1-donald@sealgair.com \
--to=donald@sealgair.com \
--cc=emacs-orgmode@gnu.org \
--cc=hugh@ccss.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).