* Symbol's value as variable is void: org-version
@ 2012-04-28 17:59 Thomas S. Dye
2012-04-28 18:19 ` Martyn Jago
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Thomas S. Dye @ 2012-04-28 17:59 UTC (permalink / raw)
To: Org-mode
Aloha all,
In the last day or so, I started running into a problem with a variable,
org-version.
When I look at Org/Documentation/Show Version, I get:
Org-mode version N/A (N/A @ /Users/dk/.emacs.d/src/org/lisp/org-install.el)
When I export to LaTeX with -Q and the appended initialization file,
export fails with the error message in the subject line.
Here is the call:
/Applications/Emacs-23-4.app/Contents/MacOS/Emacs --batch -Q -l
init-old.el sigproc-sp-org-new.org -f org-export-as-latex
The org file I'm exporting doesn't refer to org-version anywhere.
I don't know how to figure out what's going on. Can someone help?
Thanks,
Tom
---- init-old.el
(add-to-list 'load-path "~/.emacs.d/src/org/lisp") ;; <- adjust
(add-to-list 'load-path "~/.emacs.d/src/org") ;; <- adjust
(require 'org-install)
(require 'org-latex)
;; this line only required until the upcomming Org-mode/Emacs24 sync
(load "~/.emacs.d/src/org/lisp/org-exp-blocks.el")
;; Configure Babel to support all languages included in the manuscript
(org-babel-do-load-languages
'org-babel-load-languages
'((emacs-lisp . t)
(org . t)))
(setq org-confirm-babel-evaluate nil)
;; Configure Org-mode
(setq org-export-latex-hyperref-format "\\ref{%s}")
(setq org-entities-user '(("space" "\\ " nil " " " " " " " ")))
(setq org-latex-to-pdf-process '("texi2dvi --pdf --clean --verbose --batch %f"))
(require 'org-special-blocks)
(defun org-export-latex-no-toc (depth)
(when depth
(format "%% Org-mode is exporting headings to %s levels.\n"
depth)))
(setq org-export-latex-format-toc-function 'org-export-latex-no-toc)
(setq org-export-pdf-remove-logfiles nil)
(add-to-list 'org-export-latex-classes
'("acm-proc-article-sp"
"\\documentclass{acm_proc_article-sp}
[NO-DEFAULT-PACKAGES]
[EXTRA]"
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
("\\paragraph{%s}" . "\\paragraph*{%s}")
("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
----
--
Thomas S. Dye
http://www.tsdye.com
--
Thomas S. Dye
http://www.tsdye.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Symbol's value as variable is void: org-version
2012-04-28 17:59 Symbol's value as variable is void: org-version Thomas S. Dye
@ 2012-04-28 18:19 ` Martyn Jago
2012-04-28 18:22 ` Martyn Jago
2012-04-28 20:01 ` Carsten Dominik
2012-04-29 10:20 ` Bastien
2 siblings, 1 reply; 7+ messages in thread
From: Martyn Jago @ 2012-04-28 18:19 UTC (permalink / raw)
To: emacs-orgmode
Hi Thomas
tsd@tsdye.com (Thomas S. Dye) writes:
> Aloha all,
>
> In the last day or so, I started running into a problem with a variable,
> org-version.
>
> When I look at Org/Documentation/Show Version, I get:
> Org-mode version N/A (N/A @ /Users/dk/.emacs.d/src/org/lisp/org-install.el)
The quick answer - you can try make `autoloads'
There have been recent threads about this problem.
Best, Martyn
[...]
> ----
> --
> Thomas S. Dye
> http://www.tsdye.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Symbol's value as variable is void: org-version
2012-04-28 18:19 ` Martyn Jago
@ 2012-04-28 18:22 ` Martyn Jago
2012-04-28 19:30 ` Thomas S. Dye
0 siblings, 1 reply; 7+ messages in thread
From: Martyn Jago @ 2012-04-28 18:22 UTC (permalink / raw)
To: emacs-orgmode
Martyn Jago <martyn.jago@btinternet.com> writes:
> Hi Thomas
>
> tsd@tsdye.com (Thomas S. Dye) writes:
>
>
>> Aloha all,
>>
>> In the last day or so, I started running into a problem with a variable,
>> org-version.
>>
>> When I look at Org/Documentation/Show Version, I get:
>> Org-mode version N/A (N/A @ /Users/dk/.emacs.d/src/org/lisp/org-install.el)
>
> The quick answer - you can try make `autoloads'
That should have been `make autoloads'
Best, Martyn
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Symbol's value as variable is void: org-version
2012-04-28 18:22 ` Martyn Jago
@ 2012-04-28 19:30 ` Thomas S. Dye
0 siblings, 0 replies; 7+ messages in thread
From: Thomas S. Dye @ 2012-04-28 19:30 UTC (permalink / raw)
To: Martyn Jago; +Cc: emacs-orgmode
Martyn Jago <martyn.jago@btinternet.com> writes:
> Martyn Jago <martyn.jago@btinternet.com> writes:
>
>> Hi Thomas
>>
>> tsd@tsdye.com (Thomas S. Dye) writes:
>>
>>
>>> Aloha all,
>>>
>>> In the last day or so, I started running into a problem with a variable,
>>> org-version.
>>>
>>> When I look at Org/Documentation/Show Version, I get:
>>> Org-mode version N/A (N/A @ /Users/dk/.emacs.d/src/org/lisp/org-install.el)
>>
>> The quick answer - you can try make `autoloads'
>
> That should have been `make autoloads'
>
> Best, Martyn
>
>
>
Many thanks Martyn. The build process is a mystery to me. 'make
autoloads' appears to have fixed the problem.
All the best,
Tom
--
Thomas S. Dye
http://www.tsdye.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Symbol's value as variable is void: org-version
2012-04-28 17:59 Symbol's value as variable is void: org-version Thomas S. Dye
2012-04-28 18:19 ` Martyn Jago
@ 2012-04-28 20:01 ` Carsten Dominik
2012-04-28 21:34 ` Achim Gratz
2012-04-29 10:20 ` Bastien
2 siblings, 1 reply; 7+ messages in thread
From: Carsten Dominik @ 2012-04-28 20:01 UTC (permalink / raw)
To: Thomas S. Dye; +Cc: Org-mode
Dear all,
I am sure I missed the discussion about this - but I do not understand why
org-version is not loaded by org.el by default. Really, this variable belongs into org.el, and if it is not there, org.el should require org-version.el.
My 5c, of course.
- Carsten
On 28.4.2012, at 19:59, Thomas S. Dye wrote:
> Aloha all,
>
> In the last day or so, I started running into a problem with a variable,
> org-version.
>
> When I look at Org/Documentation/Show Version, I get:
> Org-mode version N/A (N/A @ /Users/dk/.emacs.d/src/org/lisp/org-install.el)
>
> When I export to LaTeX with -Q and the appended initialization file,
> export fails with the error message in the subject line.
>
> Here is the call:
>
> /Applications/Emacs-23-4.app/Contents/MacOS/Emacs --batch -Q -l
> init-old.el sigproc-sp-org-new.org -f org-export-as-latex
>
> The org file I'm exporting doesn't refer to org-version anywhere.
>
> I don't know how to figure out what's going on. Can someone help?
>
> Thanks,
> Tom
>
> ---- init-old.el
> (add-to-list 'load-path "~/.emacs.d/src/org/lisp") ;; <- adjust
> (add-to-list 'load-path "~/.emacs.d/src/org") ;; <- adjust
>
> (require 'org-install)
> (require 'org-latex)
>
> ;; this line only required until the upcomming Org-mode/Emacs24 sync
> (load "~/.emacs.d/src/org/lisp/org-exp-blocks.el")
>
>
> ;; Configure Babel to support all languages included in the manuscript
> (org-babel-do-load-languages
> 'org-babel-load-languages
> '((emacs-lisp . t)
> (org . t)))
> (setq org-confirm-babel-evaluate nil)
>
> ;; Configure Org-mode
> (setq org-export-latex-hyperref-format "\\ref{%s}")
> (setq org-entities-user '(("space" "\\ " nil " " " " " " " ")))
> (setq org-latex-to-pdf-process '("texi2dvi --pdf --clean --verbose --batch %f"))
>
> (require 'org-special-blocks)
> (defun org-export-latex-no-toc (depth)
> (when depth
> (format "%% Org-mode is exporting headings to %s levels.\n"
> depth)))
> (setq org-export-latex-format-toc-function 'org-export-latex-no-toc)
> (setq org-export-pdf-remove-logfiles nil)
>
> (add-to-list 'org-export-latex-classes
> '("acm-proc-article-sp"
> "\\documentclass{acm_proc_article-sp}
> [NO-DEFAULT-PACKAGES]
> [EXTRA]"
> ("\\section{%s}" . "\\section*{%s}")
> ("\\subsection{%s}" . "\\subsection*{%s}")
> ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
> ("\\paragraph{%s}" . "\\paragraph*{%s}")
> ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
> ----
> --
> Thomas S. Dye
> http://www.tsdye.com
>
> --
> Thomas S. Dye
> http://www.tsdye.com
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Symbol's value as variable is void: org-version
2012-04-28 20:01 ` Carsten Dominik
@ 2012-04-28 21:34 ` Achim Gratz
0 siblings, 0 replies; 7+ messages in thread
From: Achim Gratz @ 2012-04-28 21:34 UTC (permalink / raw)
To: emacs-orgmode
Carsten Dominik writes:
> I am sure I missed the discussion about this - but I do not understand
> why org-version is not loaded by org.el by default. Really, this
> variable belongs into org.el, and if it is not there, org.el should
> require org-version.el.
The variable _is_ in org.el (currently by way of a defvaralias), but the
value is supplied by an autoload. That seemed to be the cleanest way to
inject the version string from Git into it, especially considering that
the same code should be in Emacs and not look for a Git directory during
compilation or at runtime. Currently, if you do not have the autoloads
generated, you don't get a version number — "make autoloads" is doing
that and I#ll have something ready for folks without make soon. Looking
directly for a Git version number if and only if there is no autoload
definition present (using orgmode uncompiled) will be also solved, but
getting it to work correctly takes time. I've just installed XEmacs to
be able to test it myself and unfortunately what is working in Emacs
23/24 can't be used directly in XEmacs, so I'll have to supply
compatibility functions or chose a different implementation.
Regards,
Achim.
--
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
SD adaptation for Waldorf microQ V2.22R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Symbol's value as variable is void: org-version
2012-04-28 17:59 Symbol's value as variable is void: org-version Thomas S. Dye
2012-04-28 18:19 ` Martyn Jago
2012-04-28 20:01 ` Carsten Dominik
@ 2012-04-29 10:20 ` Bastien
2 siblings, 0 replies; 7+ messages in thread
From: Bastien @ 2012-04-29 10:20 UTC (permalink / raw)
To: Thomas S. Dye; +Cc: Org-mode
I pushed a fixed so that exporters won't fail at missing org-version.
Achim and I are still working on this org-version issue, we will send
a summary when it's done.
Best,
--
Bastien
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2012-04-29 10:19 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-28 17:59 Symbol's value as variable is void: org-version Thomas S. Dye
2012-04-28 18:19 ` Martyn Jago
2012-04-28 18:22 ` Martyn Jago
2012-04-28 19:30 ` Thomas S. Dye
2012-04-28 20:01 ` Carsten Dominik
2012-04-28 21:34 ` Achim Gratz
2012-04-29 10:20 ` Bastien
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.