emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* "org-nil" error in LaTeX export
@ 2011-03-09 17:43 Brenton Kenkel
  2011-03-09 17:53 ` Bastien
  0 siblings, 1 reply; 3+ messages in thread
From: Brenton Kenkel @ 2011-03-09 17:43 UTC (permalink / raw)
  To: emacs-orgmode

I am having a problem with exporting to LaTeX from org-mode. I am 
running org-mode 7.5 in Emacs 23.1.1 on 64-bit Ubuntu 10.10. (I am using 
the stable version, but the same error occurs when I use the development 
version from git.) When I run "C-c C-e d", I receive the error message 
"Cannot open load file: org-nil". The file I am using and the backtrace 
output are pasted below.

Best wishes,
Brenton Kenkel


-----------
begin file:
-----------

+TITLE: Test
#+AUTHOR: test author

* hello

export me

--------
end file
--------


----------------
begin backtrace:
----------------

Debugger entered--Lisp error: (file-error "Cannot open load file" "org-nil")
   require(org-nil nil)
   (let* ((backend-name ...) (f ...)) (require (intern ...) nil) 
(funcall f parameters))
   (save-current-buffer (set-buffer (get-buffer-create " org-mode-tmp")) 
(erase-buffer) (insert string) (setq case-fold-search t) (let (...) 
(remove-text-properties ... ... ...)) (org-export-kill-licensed-text) 
(let (...) (org-mode)) (setq case-fold-search t) 
(org-clone-local-variables source-buffer "^\\(org-\\|orgtbl-\\)") 
(org-install-letbind) (run-hooks (quote org-export-preprocess-hook)) 
(org-export-preprocess-apply-macros) (run-hooks (quote 
org-export-preprocess-after-macros-hook)) (untabify (point-min) 
(point-max)) (org-export-handle-include-files-recurse) (run-hooks (quote 
org-export-preprocess-after-include-files-hook)) 
(org-export-remove-archived-trees archived-trees) 
(org-export-remove-comment-blocks-and-subtrees) 
(org-export-handle-export-tags (plist-get parameters :select-tags) 
(plist-get parameters :exclude-tags)) (run-hooks (quote 
org-export-preprocess-after-tree-selection-hook)) 
(org-export-mark-list-end) (org-export-blocks-preprocess) 
(org-export-mark-list-properties) 
(org-export-replace-src-segments-and-examples) 
(org-export-protect-colon-examples) 
(org-export-convert-protected-spaces) (when (plist-get parameters 
:footnotes) (org-footnote-normalize nil t)) (setq target-alist 
(org-export-define-heading-targets target-alist)) (run-hooks (quote 
org-export-preprocess-after-headline-targets-hook)) 
(org-export-remember-html-container-classes) 
(org-export-remove-or-extract-drawers drawers (plist-get parameters 
:drawers)) (when (plist-get parameters :skip-before-1st-heading) 
(goto-char ...) (when ... ... ... ...)) (when (plist-get parameters 
:add-text) (goto-char ...) (insert ... "\n")) 
(org-export-remove-headline-metadata parameters) (setq target-alist 
(org-export-handle-invisible-targets target-alist)) (run-hooks (quote 
org-export-preprocess-before-selecting-backend-code-hook)) 
(org-export-select-backend-specific-text) 
(org-export-protect-quoted-subtrees) (org-export-remove-clock-lines) 
(org-export-protect-verbatim) (org-export-mark-blockquote-verse-center) 
(run-hooks (quote org-export-preprocess-after-blockquote-hook)) (unless 
(plist-get parameters :timestamps) (org-export-remove-timestamps)) (setq 
target-alist (org-export-attach-captions-and-attributes target-alist)) 
(org-export-mark-radio-links) (run-hooks (quote 
org-export-preprocess-after-radio-targets-hook)) 
(org-export-concatenate-multiline-links) (run-hooks (quote 
org-export-preprocess-before-normalizing-links-hook)) 
(org-export-normalize-links) ...)
   (with-current-buffer (get-buffer-create " org-mode-tmp") 
(erase-buffer) (insert string) (setq case-fold-search t) (let (...) 
(remove-text-properties ... ... ...)) (org-export-kill-licensed-text) 
(let (...) (org-mode)) (setq case-fold-search t) 
(org-clone-local-variables source-buffer "^\\(org-\\|orgtbl-\\)") 
(org-install-letbind) (run-hooks (quote org-export-preprocess-hook)) 
(org-export-preprocess-apply-macros) (run-hooks (quote 
org-export-preprocess-after-macros-hook)) (untabify (point-min) 
(point-max)) (org-export-handle-include-files-recurse) (run-hooks (quote 
org-export-preprocess-after-include-files-hook)) 
(org-export-remove-archived-trees archived-trees) 
(org-export-remove-comment-blocks-and-subtrees) 
(org-export-handle-export-tags (plist-get parameters :select-tags) 
(plist-get parameters :exclude-tags)) (run-hooks (quote 
org-export-preprocess-after-tree-selection-hook)) 
(org-export-mark-list-end) (org-export-blocks-preprocess) 
(org-export-mark-list-properties) 
(org-export-replace-src-segments-and-examples) 
(org-export-protect-colon-examples) 
(org-export-convert-protected-spaces) (when (plist-get parameters 
:footnotes) (org-footnote-normalize nil t)) (setq target-alist 
(org-export-define-heading-targets target-alist)) (run-hooks (quote 
org-export-preprocess-after-headline-targets-hook)) 
(org-export-remember-html-container-classes) 
(org-export-remove-or-extract-drawers drawers (plist-get parameters 
:drawers)) (when (plist-get parameters :skip-before-1st-heading) 
(goto-char ...) (when ... ... ... ...)) (when (plist-get parameters 
:add-text) (goto-char ...) (insert ... "\n")) 
(org-export-remove-headline-metadata parameters) (setq target-alist 
(org-export-handle-invisible-targets target-alist)) (run-hooks (quote 
org-export-preprocess-before-selecting-backend-code-hook)) 
(org-export-select-backend-specific-text) 
(org-export-protect-quoted-subtrees) (org-export-remove-clock-lines) 
(org-export-protect-verbatim) (org-export-mark-blockquote-verse-center) 
(run-hooks (quote org-export-preprocess-after-blockquote-hook)) (unless 
(plist-get parameters :timestamps) (org-export-remove-timestamps)) (setq 
target-alist (org-export-attach-captions-and-attributes target-alist)) 
(org-export-mark-radio-links) (run-hooks (quote 
org-export-preprocess-after-radio-targets-hook)) 
(org-export-concatenate-multiline-links) (run-hooks (quote 
org-export-preprocess-before-normalizing-links-hook)) 
(org-export-normalize-links) ...)
   (let* ((org-export-current-backend ...) (archived-trees ...) 
(inhibit-read-only t) (drawers org-drawers) (outline-regexp "\\*+ ") 
(source-buffer ...) target-alist rtn) (setq org-export-target-aliases 
nil org-export-preferred-target-alist nil org-export-id-target-alist nil 
org-export-code-refs nil) (with-current-buffer (get-buffer-create " 
org-mode-tmp") (erase-buffer) (insert string) (setq case-fold-search t) 
(let ... ...) (org-export-kill-licensed-text) (let ... ...) (setq 
case-fold-search t) (org-clone-local-variables source-buffer 
"^\\(org-\\|orgtbl-\\)") (org-install-letbind) (run-hooks ...) 
(org-export-preprocess-apply-macros) (run-hooks ...) (untabify ... ...) 
(org-export-handle-include-files-recurse) (run-hooks ...) 
(org-export-remove-archived-trees archived-trees) 
(org-export-remove-comment-blocks-and-subtrees) 
(org-export-handle-export-tags ... ...) (run-hooks ...) 
(org-export-mark-list-end) (org-export-blocks-preprocess) 
(org-export-mark-list-properties) 
(org-export-replace-src-segments-and-examples) 
(org-export-protect-colon-examples) 
(org-export-convert-protected-spaces) (when ... ...) (setq target-alist 
...) (run-hooks ...) (org-export-remember-html-container-classes) 
(org-export-remove-or-extract-drawers drawers ...) (when ... ... ...) 
(when ... ... ...) (org-export-remove-headline-metadata parameters) 
(setq target-alist ...) (run-hooks ...) 
(org-export-select-backend-specific-text) 
(org-export-protect-quoted-subtrees) (org-export-remove-clock-lines) 
(org-export-protect-verbatim) (org-export-mark-blockquote-verse-center) 
(run-hooks ...) (unless ... ...) (setq target-alist ...) 
(org-export-mark-radio-links) (run-hooks ...) 
(org-export-concatenate-multiline-links) (run-hooks ...) 
(org-export-normalize-links) ...) (kill-buffer " org-mode-tmp") rtn)
   org-export-preprocess-string(#("#+TITLE: Test\n#+AUTHOR: test 
author\n\n" 0 8 (fontified nil font-lock-fontified t) 8 9 (fontified 
nil) 9 13 (fontified nil font-lock-fontified t) 13 14 (fontified nil) 14 
23 (fontified nil font-lock-fontified t) 23 24 (fontified nil) 24 35 
(fontified nil font-lock-fontified t) 35 37 (fontified nil)) :for-LaTeX 
t :emph-multiline t :add-text nil :comments nil :skip-before-1st-heading 
nil :LaTeX-fragments nil :timestamps t :footnotes t)
   org-export-latex-first-lines((:latex-image-options "width=10em" 
:exclude-tags ("noexport") :select-tags ("export") :publishing-directory 
nil :timestamp nil :expand-quoted-html t :html-table-tag "<table 
border=\"2\" cellspacing=\"0\" cellpadding=\"6\" rules=\"groups\" 
frame=\"hsides\">" :xml-declaration (("html" . "<?xml version=\"1.0\" 
encoding=\"%s\"?>") ("php" . "<?php echo \"<?xml version=\\\"1.0\\\" 
encoding=\\\"%s\\\" ?>\"; ?>")) :html-postamble nil :html-preamble nil 
:html-extension "html" :inline-images maybe :convert-org-links t 
:agenda-style "" :style-extra "" :style "" :style-include-scripts t 
:style-include-default t :table-auto-headline t :tables t 
:time-stamp-file t :creator-info t :email-info nil :author-info t :email 
"brenton@veblen" ...) nil)
   org-export-as-latex(nil nil nil nil nil nil)
   org-export-as-pdf(nil)
   org-export-as-pdf-and-open(nil)
   call-interactively(org-export-as-pdf-and-open)
   (if (and bg (nth 2 ass) (not ...) (not ...)) (let (...) 
(set-process-sentinel p ...) (message "Background process \"%s\": 
started" p)) (if subtree-p (progn ... ...)) (call-interactively (nth 1 
ass)) (when (and bpos ...) (let ... ... ... ... ...)))
   (let* ((bg ...) (subtree-p ...) (help "[t]   insert the export option 
template\n[v]   limit export to visible part of outline tree\n[1] 
switch buffer/subtree export\n[SPC] publish enclosing subtree (with 
LaTeX_CLASS or EXPORT_FILE_NAME prop)\n\n[a/n/u] export as 
ASCII/Latin-1/UTF-8         [A/N/U] to temporary buffer\n\n[h] export as 
HTML      [H] to temporary buffer   [R] export region\n[b] export as 
HTML and open in browser\n\n[l] export as LaTeX     [L] to temporary 
buffer\n[p] export as LaTeX and process to PDF            [d] ... and 
open PDF file\n\n[D] export as DocBook   [V] export as DocBook, process 
to PDF, and open\n\n[j] export as TaskJuggler 
[J] ... and open\n\n[m] export as Freemind mind map\n[x] export as 
XOXO\n[g] export using Wes Hardaker's generic exporter\n\n[i] export 
current file as iCalendar file\n[I] export all agenda files as iCalendar 
files   [c] ...as one combined file\n\n[F] publish current file 
  [P] publish current project\n[X] publish a project...          [E] 
publish every projects") (cmds ...) r1 r2 ass (cpos ...) (cbuf ...) 
bpos) (save-excursion (save-window-excursion ... ... ... ... ... ...)) 
(redisplay) (and bpos (goto-char bpos)) (setq r2 (if ... ... r1)) 
(unless (setq ass ...) (error "No command associated with key %c" r1)) 
(if (and bg ... ... ...) (let ... ... ...) (if subtree-p ...) 
(call-interactively ...) (when ... ...)))
   org-export(nil)
   call-interactively(org-export nil nil)

-------------
end backtrace
-------------

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: "org-nil" error in LaTeX export
  2011-03-09 17:43 "org-nil" error in LaTeX export Brenton Kenkel
@ 2011-03-09 17:53 ` Bastien
  2011-03-09 18:14   ` Nick Dokos
  0 siblings, 1 reply; 3+ messages in thread
From: Bastien @ 2011-03-09 17:53 UTC (permalink / raw)
  To: Brenton Kenkel; +Cc: emacs-orgmode

Hi Brenton,

Brenton Kenkel <brenton.kenkel@gmail.com> writes:

> I am having a problem with exporting to LaTeX from org-mode. I am 
> running org-mode 7.5 in Emacs 23.1.1 on 64-bit Ubuntu 10.10.

I cannot reproduce it -- can you test with a bare emacs -q ?

Also, please make sure to remove any previous Org installation.

Best,

-- 
 Bastien

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: "org-nil" error in LaTeX export
  2011-03-09 17:53 ` Bastien
@ 2011-03-09 18:14   ` Nick Dokos
  0 siblings, 0 replies; 3+ messages in thread
From: Nick Dokos @ 2011-03-09 18:14 UTC (permalink / raw)
  To: Bastien; +Cc: nicholas.dokos, emacs-orgmode, Brenton Kenkel

Bastien <bzg@altern.org> wrote:

> Hi Brenton,
> 
> Brenton Kenkel <brenton.kenkel@gmail.com> writes:
> 
> > I am having a problem with exporting to LaTeX from org-mode. I am 
> > running org-mode 7.5 in Emacs 23.1.1 on 64-bit Ubuntu 10.10.
> 
> I cannot reproduce it -- can you test with a bare emacs -q ?
> 
> Also, please make sure to remove any previous Org installation.
> 

I cannot reproduce it either: the only way that this could happen is
if the :for-backend property is missing when org-export-preprocess-string
is called. But org-export-latex-first-lines sets that explicitly - *if*
you have a consistent version of org.

But Brenton seems indeed to be using remnants of an old installation.
His backtrace shows:

,----
|   org-export-preprocess-string(#("#+TITLE: Test\n#+AUTHOR: test
| author\n\n" 0 8 (fontified nil font-lock-fontified t) 8 9 (fontified
| nil) 9 13 (fontified nil font-lock-fontified t) 13 14 (fontified nil)
| 14 23 (fontified nil font-lock-fontified t) 23 24 (fontified nil) 24
| 35 (fontified nil font-lock-fontified t) 35 37 (fontified nil))
| :for-LaTeX t :emph-multiline t :add-text nil :comments nil   <<<<<<<<<<<<<<<<<<<<<<<<<
| :skip-before-1st-heading nil :LaTeX-fragments nil :timestamps t
| :footnotes t)
|   org-export-latex-first-lines((:latex-image-options "width=10em"
| :exclude-tags ("noexport") :select-tags ("export")
| :publishing-directory nil :timestamp nil :expand-quoted-html t
| :html-table-tag "<table border=\"2\" cellspacing=\"0\"
| cellpadding=\"6\" rules=\"groups\" frame=\"hsides\">" :xml-declaration
| (("html" . "<?xml version=\"1.0\" encoding=\"%s\"?>") ("php" . "<?php
| echo \"<?xml version=\\\"1.0\\\" encoding=\\\"%s\\\" ?>\"; ?>"))
| :html-postamble nil :html-preamble nil :html-extension "html"
| :inline-images maybe :convert-org-links t :agenda-style ""
| :style-extra "" :style "" :style-include-scripts t
| :style-include-default t :table-auto-headline t :tables t
| :time-stamp-file t :creator-info t :email-info nil :author-info t
| :email "brenton@veblen" ...) nil)
`----

The ":for-LaTeX t" stuff on the marked line seems to indicate left-overs that
have gone stale.

Nick

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-03-09 18:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-09 17:43 "org-nil" error in LaTeX export Brenton Kenkel
2011-03-09 17:53 ` Bastien
2011-03-09 18:14   ` Nick Dokos

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).