* [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/)]
@ 2024-02-10 6:13 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
0 siblings, 2 replies; 4+ messages in thread
From: hugh @ 2024-02-10 6:13 UTC (permalink / raw)
To: emacs-orgmode
Remember to cover the basics, that is, what you expected to happen and
what in fact did happen. You don't know how to make a good report? See
https://orgmode.org/manual/Feedback.html#Feedback
Your bug report will be posted to the Org mailing list.
------------------------------------------------------------------------
When 'org-babel-load-languages includes '(gnuplot . t), M-x org-mode
RET, or equivalently editing a *.org file, generates a File mode
specification error:
,----
| File mode specification error: (error Recursive load /home/hugh/git/org-mode/lisp/org.el /home/hugh/git/org-mode/lisp/org-element.el /home/hugh/git/org-mode/lisp/ox.el /home/hugh/git/org-mode/lisp/ox-ascii.el /home/hugh/git/org-mode/lisp/ob-gnuplot.el /home/hugh/git/org-mode/lisp/org.el /home/hugh/git/org-mode/lisp/org-element.el /home/hugh/git/org-mode/lisp/ox.el /home/hugh/git/org-mode/lisp/ox-ascii.el /home/hugh/git/org-mode/lisp/ob-gnuplot.el /home/hugh/git/org-mode/lisp/org.el /home/hugh/git/org-mode/lisp/org-element.el /home/hugh/git/org-mode/lisp/ox.el /home/hugh/git/org-mode/lisp/ox-ascii.el /home/hugh/git/org-mode/lisp/ob-gnuplot.el /home/hugh/git/org-mode/lisp/org.el /home/hugh/git/org-mode/lisp/org-element.el /home/hugh/git/org-mode/lisp/ox.el /home/hugh/git/org-mode/lisp/ox-ascii.el /home/hugh/git/org-mode/lisp/ob-gnuplot.el /home/hugh/git/org-mode/lisp/org.el)
`----
rather than simply enabling org-mode.
Reproducible with command:
,----
| emacs -Q --load /tmp/emacs/init.el /tmp/xxx.org
`----
Where /tmp/emacs/init.el contains:
,----
| (add-to-list 'load-path "~/git/org-mode/lisp")
|
| (custom-set-variables
| ;; custom-set-variables was added by Custom.
| ;; If you edit it by hand, you could mess it up, so be careful.
| ;; Your init file should contain only one such instance.
| ;; If there is more than one, they won't work right.
| '(org-babel-load-languages '((gnuplot . t))))
`----
Target file /tmp/xxx.org need not exist. Its use on the command line is
simply to call 'org-mode.
Workaround is simply to remove '((gnuplot . t)) from
'org-babel-load-languages
Cheers,
Hugh
--
Emacs : GNU Emacs 29.1 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.17.8, Xaw3d scroll bars)
of 2023-08-18
Package: Org mode version 9.1.13 (release_9.1.13-791-g842002 @ /home/hugh/git/org-mode/lisp/)
current state:
==============
(setq
org-link-elisp-confirm-function 'yes-or-no-p
org-bibtex-headline-format-function 'org-bibtex-headline-format-default
org-persist-after-read-hook '(org-element--cache-persist-after-read)
org-export-before-parsing-hook '(org-attach-expand-links)
org-cycle-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand)
org-archive-hook '(org-attach-archive-delete-maybe)
org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-show-empty-lines
org-cycle-optimize-window-after-visibility-change org-cycle-display-inline-images)
org-persist-before-read-hook '(org-element--cache-persist-before-read)
org-yank-image-file-name-function 'org-yank-image-autogen-filename
org-mode-hook '((closure
(org--rds reftex-docstruct-symbol org-attach-method org--single-lines-list-is-paragraph
org-element-greater-elements org-agenda-restrict-end org-agenda-restrict-begin
org-agenda-restrict visual-fill-column-width org-clock-history org-agenda-current-date
org-with-time org-defdecode org-def org-read-date-inactive org-ans2 org-ans1
org-columns-current-fmt-compiled org-clock-current-task org-clock-effort
org-agenda-skip-function org-agenda-skip-comment-trees org-agenda-archives-mode
org-end-time-was-given org-time-was-given org-log-note-extra org-log-note-purpose
org-log-post-message org-last-inserted-timestamp org-last-changed-timestamp
org-entry-property-inherited-from org-state org-agenda-headline-snapshot-before-repeat
org-agenda-buffer-name org-agenda-start-on-weekday org-agenda-buffer-tmp-name
org-priority-regexp org-mode-abbrev-table org-element-use-cache org-element-cache-persistent
org-element-cache-version buffer-face-mode-face org-tbl-menu org-org-menu org-struct-menu
org-entities org-last-state org-id-track-globally org-clock-start-time texmathp-why
remember-data-file org-agenda-tags-todo-honor-ignore-options calc-embedded-open-mode
calc-embedded-open-formula calc-embedded-close-formula align-mode-rules-list
org-emphasis-alist org-emphasis-regexp-components org-export-registered-backends org-modules
crm-separator org-id-overriding-file-name org-indent-indentation-per-level
org-element--timestamp-regexp org-element-cache-map-continue-from
org-element-paragraph-separate org-agenda-buffer-name org-inlinetask-min-level t)
nil (add-hook 'change-major-mode-hook 'org-fold-show-all 'append 'local))
(closure (*this* org-babel-confirm-evaluate-answer-no t) nil
(add-hook 'change-major-mode-hook #'org-babel-show-result-all 'append 'local))
(closure
(org-src-window-setup *this* org-babel-confirm-evaluate-answer-no
org-babel-tangle-uncomment-comments org-src-lang-modes org-edit-src-content-indentation
org-babel-library-of-babel t)
nil (add-hook 'change-major-mode-hook #'org-babel-show-result-all 'append 'local))
org-babel-result-hide-spec org-babel-hide-all-hashes)
org-babel-load-languages nil
org-confirm-shell-link-function 'yes-or-no-p
outline-isearch-open-invisible-function 'outline-isearch-open-invisible
org-agenda-before-write-hook '(org-agenda-add-entry-text)
org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer)
org-confirm-elisp-link-function 'yes-or-no-p
org-speed-command-hook '(org-speed-command-activate org-babel-speed-command-activate)
org-persist-directory "/tmp/org-persist-QeXnaR"
org-fold-core-isearch-open-function 'org-fold-core--isearch-reveal
org-persist-before-write-hook '(org-element--cache-persist-before-write)
org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand)
org-link-shell-confirm-function 'yes-or-no-p
org-babel-pre-tangle-hook '(save-buffer)
org-agenda-loop-over-headlines-in-active-region nil
org-occur-hook '(org-first-headline-recenter)
org-metadown-hook '(org-babel-pop-to-session-maybe)
org-link-parameters '(("attachment" :follow org-attach-follow :complete org-attach-complete-link)
("id" :follow org-id-open) ("eww" :follow org-eww-open :store org-eww-store-link)
("rmail" :follow org-rmail-open :store org-rmail-store-link)
("mhe" :follow org-mhe-open :store org-mhe-store-link)
("irc" :follow org-irc-visit :store org-irc-store-link :export org-irc-export)
("info" :follow org-info-open :export org-info-export :store org-info-store-link
:insert-description org-info-description-as-command)
("gnus" :follow org-gnus-open :store org-gnus-store-link)
("docview" :follow org-docview-open :export org-docview-export :store
org-docview-store-link)
("bibtex" :follow org-bibtex-open :store org-bibtex-store-link)
("bbdb" :follow org-bbdb-open :export org-bbdb-export :complete org-bbdb-complete-link
:store org-bbdb-store-link)
("w3m" :store org-w3m-store-link)
("doi" :follow org-link-doi-open :export org-link-doi-export) ("file+sys") ("file+emacs")
("shell" :follow org-link--open-shell)
("news" :follow
(closure ((scheme . "news")) (url arg) (browse-url (concat scheme ":" url) arg)))
("mailto" :follow
(closure ((scheme . "mailto")) (url arg) (browse-url (concat scheme ":" url) arg)))
("https" :follow
(closure ((scheme . "https")) (url arg) (browse-url (concat scheme ":" url) arg)))
("http" :follow
(closure ((scheme . "http")) (url arg) (browse-url (concat scheme ":" url) arg)))
("ftp" :follow
(closure ((scheme . "ftp")) (url arg) (browse-url (concat scheme ":" url) arg)))
("help" :follow org-link--open-help :store org-link--store-help)
("file" :complete org-link-complete-file) ("elisp" :follow org-link--open-elisp))
org-metaup-hook '(org-babel-load-in-session-maybe)
)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [BUG] Recursive dependency when gnuplot added to org-babel-load-languages
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 ` Donald Hunter
2024-08-21 11:20 ` Donald Hunter
1 sibling, 0 replies; 4+ messages in thread
From: Donald Hunter @ 2024-08-20 14:17 UTC (permalink / raw)
To: hugh; +Cc: emacs-orgmode, Donald Hunter
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"))
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [BUG] Recursive dependency when gnuplot added to org-babel-load-languages
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
2024-08-22 12:38 ` Ihor Radchenko
1 sibling, 1 reply; 4+ messages in thread
From: Donald Hunter @ 2024-08-21 11:20 UTC (permalink / raw)
To: hugh; +Cc: emacs-orgmode, Donald Hunter
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"))
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-08-23 9:56 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2024-08-22 12:38 ` Ihor Radchenko
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).