Hello.
I have: GNU Emacs 29.4 (build 1, x86_64-redhat-linux-gnu, GTK+ Version
3.24.43, cairo version 1.18.2) of 2025-03-13
I installed org-contrib and Org 9.7.39 from ELPA. I use the following
.emacs:
(setq debug-on-error t)
;; (require 'org)
(custom-set-variables
'(package-selected-packages '(org org-contrib))
'(org-babel-load-languages '((emacs-lisp . t) (latex . t))))
(add-hook 'after-init-hook
(lambda ()
(require 'ox-extra)
(ox-extras-activate '(ignore-headlines))))
when I start emacs, I get (full backtrace below):
(void-variable org-preview-latex-process-alist)
The problem is fixed if I introduce the (require 'org) directive, but I
shouldn't need it, should I?
The issue [from an AI]: org-babel-load-languages has a :set function that
immediately loads babel language files (like ob-latex.el). ob-latex.el's
new org-babel-latex-process-alist definition references
org-preview-latex-process-alist, which may not be defined yet if org.el is
still loading.
Regards,
a.
PS: when I start from a void .emacs (hence with Org 9.6.15 builin) and a
void .emacs.d/elpa directory and install Org 9.7.39 and then org-contrib,
it is very quick (~30 s) and everything looks fine to me. If I install in
the opposite order or do a joint install ('i' on both lines of
list-packages, then 'x'), it takes about 10 minutes and the files
ob-tangle.elc, org-agenda.elc, org-capture.elc, org-element-ast.elc,
org-element.elc are missing.
Debugger entered--Lisp error: (void-variable org-preview-latex-process-alist)
#f(compiled-function () #<bytecode -0x82b6f101ac352bd>)()
funcall(#f(compiled-function () #<bytecode -0x82b6f101ac352bd>))
eval((funcall #'#f(compiled-function () #<bytecode -0x82b6f101ac352bd>)))
custom-initialize-reset(org-babel-latex-process-alist (funcall
#'#f(compiled-function () #<bytecode -0x82b6f101ac352bd>)))
custom-declare-variable(org-babel-latex-process-alist (funcall
#'#f(compiled-function () #<bytecode -0x82b6f101ac352bd>)) "Definitions of
external processes for LaTeX result..." :group org-babel :package-version (Org
. "9.7") :type (alist :tag "LaTeX to image backends" :value-type (plist)))
byte-code("\300\301\302\303\304DD\305\306\307\310\311&\7\210\300\312\302\303\313DD\314\306\307\310\303&\7\210\300\315\302\303\316DD\317\306\307\310\303&\7\210\300\320\302\303\321..."
[custom-declare-variable org-babel-latex-htlatex funcall function
#f(compiled-function () #<bytecode 0x198e6d87b4a14>) "The htlatex command to
enable conversion of LaTeX ..." :group org-babel :type string
org-babel-latex-preamble #f(compiled-function () #<bytecode
-0x14bb396d3a6fa187>) "Closure which evaluates at runtime to the LaTeX pr..."
org-babel-latex-begin-env #f(compiled-function () #<bytecode
-0xcc82ed3041e8e2d>) "Function that evaluates to the begin part of the d..."
org-babel-latex-end-env #f(compiled-function () #<bytecode 0xd112c9ce13f0422>)
"Closure which evaluates at runtime to the end part..."
org-babel-latex-pdf-svg-process #f(compiled-function () #<bytecode
0x1a99fbce9ca2fe5e>) "Command to convert a PDF file to an SVG file."
:package-version (Org . "9.6") org-babel-latex-htlatex-packages
#f(compiled-function () #<bytecode -0x1f5c0fa74a6b629a>) "Packages to use for
htlatex export." (repeat (string)) org-babel-latex-process-alist
#f(compiled-function () #<bytecode -0x82b6f101ac352bd>) "Definitions of
external processes for LaTeX result..." (Org . "9.7") (alist :tag "LaTeX to
image backends" :value-type (plist))] 10)
org-babel-do-load-languages(org-babel-load-languages ((emacs-lisp . t) (latex
. t)))
custom-initialize-reset(org-babel-load-languages (funcall
#'#f(compiled-function () #<bytecode 0x19800016fe914>)))
custom-declare-variable(org-babel-load-languages (funcall
#'#f(compiled-function () #<bytecode 0x19800016fe914>)) "Languages which can be
evaluated in Org buffers.\n\\..." :group org-babel :set
org-babel-do-load-languages :package-version (Org . "9.6") :type (alist :tag
"Babel Languages" :key-type (choice (const :tag "Awk" awk) (const :tag "C, D,
C++, and cpp" C) (const :tag "R" R) (const :tag "Calc" calc) (const :tag
"Clojure and ClojureScript" clojure) (const :tag "CSS" css) (const :tag "Ditaa"
ditaa) (const :tag "Dot" dot) (const :tag "Emacs Lisp" emacs-lisp) (const :tag
"Eshell" eshell) (const :tag "Forth" forth) (const :tag "Fortran" fortran)
(const :tag "GnuPlot" gnuplot) (const :tag "Groovy" groovy) (const :tag
"Haskell" haskell) (const :tag "Java" java) (const :tag "JavaScript" js) (const
:tag "Julia" julia) (const :tag "LaTeX" latex) (const :tag "LilyPond" lilypond)
(const :tag "Lisp" lisp) (const :tag "Lua" lua) (const :tag "Makefile"
makefile) (const :tag "Maxima" maxima) (const :tag "OCaml" ocaml) (const :tag
"Octave and MatLab" octave) (const :tag "Org" org) (const :tag "Perl" perl)
(const :tag "Processing" processing) (const :tag "PlantUML" plantuml) (const
:tag "Python" python) (const :tag "Ruby" ruby) (const :tag "Sass" sass) (const
:tag "Scheme" scheme) (const :tag "Screen" screen) (const :tag "Sed" sed)
(const :tag "Shell Script" shell) (const :tag "Sql" sql) (const :tag "Sqlite"
sqlite)) :value-type (boolean :tag "Activate" :value t)))
byte-code("\300\301\302\303\304DD\305\306\307\310\311\312\313\314\315&\13\210\300\316\302\303\317DD\320\314\321\322\323\306\324&\11\210\325\326\327\"\210\325\330\327\"\207"
[custom-declare-variable org-babel-load-languages funcall function
#f(compiled-function () #<bytecode 0x19800016fe914>) "Languages which can be
evaluated in Org buffers.\n\\..." :group org-babel :set
org-babel-do-load-languages :package-version (Org . "9.6") :type (alist :tag
"Babel Languages" :key-type (choice (const :tag "Awk" awk) (const :tag "C, D,
C++, and cpp" C) (const :tag "R" R) (const :tag "Calc" calc) (const :tag
"Clojure and ClojureScript" clojure) (const :tag "CSS" css) (const :tag "Ditaa"
ditaa) (const :tag "Dot" dot) (const :tag "Emacs Lisp" emacs-lisp) (const :tag
"Eshell" eshell) (const :tag "Forth" forth) (const :tag "Fortran" fortran)
(const :tag "GnuPlot" gnuplot) (const :tag "Groovy" groovy) (const :tag
"Haskell" haskell) (const :tag "Java" java) (const :tag "JavaScript" js) (const
:tag "Julia" julia) (const :tag "LaTeX" latex) (const :tag "LilyPond" lilypond)
(const :tag "Lisp" lisp) (const :tag "Lua" lua) (const :tag "Makefile"
makefile) (const :tag "Maxima" maxima) (const :tag "OCaml" ocaml) (const :tag
"Octave and MatLab" octave) (const :tag "Org" org) (const :tag "Perl" perl)
(const :tag "Processing" processing) (const :tag "PlantUML" plantuml) (const
:tag "Python" python) (const :tag "Ruby" ruby) (const :tag "Sass" sass) (const
:tag "Scheme" scheme) (const :tag "Screen" screen) (const :tag "Sed" sed)
(const :tag "Shell Script" shell) (const :tag "Sql" sql) (const :tag "Sqlite"
sqlite)) :value-type (boolean :tag "Activate" :value t)) org-clone-delete-id
#f(compiled-function () #<bytecode 0x19800016fe914>) "Remove ID property of
clones of a subtree.\nWhen no..." boolean :version "24.1" org-id autoload
org-release "org-version.el" org-git-version] 12)
require(org)
byte-code("\300\301!\210\302
\303\232\204\20\0\304\305\306\"\210\300\307!\210\300\310!\210\300\311!\210\300\312!\210\300\313!\210\300\314!\210\300\315!\210\300\316!\210\300\317..."
[require org-macs org-release "9.7.39" warn "Org version mismatch.\nThis
warning usually appears..." "(straight-use-package 'org)" avl-tree ring cl-lib
ol org org-persist org-compat org-entities org-footnote org-list org-table
org-fold-core] 3)
require(org-element)
byte-code("\300\301!\210\302
\303\232\204\20\0\304\305\306\"\210\300\307!\210\300\310!\210\300\311!\210\300\312!\210\300\313!\210\300\314!\210\300\315!\210\300\316!\207"
[require org-macs org-release "9.7.39" warn "Org version mismatch.\nThis
warning usually appears..." "(straight-use-package 'org)" cl-lib ob-exp oc ol
org-element org-macro org-attach tabulated-list] 3)
require(ox)
byte-code("\300\301!\210\300\302!\207" [require ox cl-lib] 2)
require(ox-extra)
(lambda nil (require 'ox-extra) (ox-extras-activate '(ignore-headlines)))()
run-hooks(after-init-hook delayed-warnings-hook)
command-line()
normal-top-level()
--
EOST (École et Observatoire des Sciences de la Terre)
ITE (Institut Terre & Environnement) | [email protected]
5 rue René Descartes | Phone: +33 (0)3 68 85 50 44
F-67084 Strasbourg Cedex, France | bureau 110, ancien bât.