emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] [Babel] Can't export to LaTeX anymore (args-out-of-range 0


From: Eric Schulte
Subject: Re: [Orgmode] [Babel] Can't export to LaTeX anymore (args-out-of-range 0 0)
Date: Fri, 17 Sep 2010 10:08:31 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Hi Sébastien,

This is a tricky problem indeed.  After some debugging, it appears that
the problem is the result of the "org" code block calling
`org-export-as-latex' on its body, while `org-export-as-latex' is
already called on the entire org-mode file.  Apparently the Org-mode
exporter is not currently able to handle nested export calls, because
the name of the temporary export buffer is hard coded into
`org-export-preprocess-string', meaning that the buffer is re-used and
deleted by the nested export call.

This fix will probably take some time to implement, and until then I
don't think it will be possible to evaluate org-mode blocks during
export.

Best -- Eric

Sébastien Vauban <address@hidden> writes:

> Hello,
>
> With latest git pull'ed, I now have such an error when exporting to LaTeX:
>
> Debugger entered--Lisp error: (args-out-of-range 0 0)
>   replace-match("" t t)
>   (progn (replace-match replacement t t) (unless preserve-indent 
> (indent-code-rigidly ... ... indentation)))
>   (if replacement (progn (replace-match replacement t t) (unless 
> preserve-indent ...)))
>   (when replacement (replace-match replacement t t) (unless preserve-indent 
> (indent-code-rigidly ... ... indentation)))
>   (let ((replacement ...)) (when replacement (replace-match replacement t t) 
> (unless preserve-indent ...)))
>   (progn (let (...) (when replacement ... ...)))
>   (if (setq func (cadr ...)) (progn (let ... ...)))
>   (when (setq func (cadr ...)) (let (...) (when replacement ... ...)))
>   (while (re-search-forward "^\\([    ]*\\)#\\+begin_\\(\\S-+\\)[     
> ]*\\(.*\\)?[\n]\\([^]*?\\)[\n][         ]*#\\+end_\\S-+.*[\n]?" nil t) (setq 
> indentation (length ...)) (setq type (intern ...)) (setq headers 
> (save-match-data ...)) (setq body (match-string 4)) (setq preserve-indent (or 
> org-src-preserve-indentation ...)) (unless preserve-indent (setq body ...)) 
> (unless (memq type types) (setq types ...)) (save-match-data (interblock 
> start ...)) (when (setq func ...) (let ... ...)) (setq start (match-end 0)))
>   (progn (fset (quote interblock) (function* ...)) (goto-char (point-min)) 
> (setq start (point)) (while (re-search-forward "^\\([      
> ]*\\)#\\+begin_\\(\\S-+\\)[     ]*\\(.*\\)?[\n]\\([^]*?\\)[\n][         
> ]*#\\+end_\\S-+.*[\n]?" nil t) (setq indentation ...) (setq type ...) (setq 
> headers ...) (setq body ...) (setq preserve-indent ...) (unless 
> preserve-indent ...) (unless ... ...) (save-match-data ...) (when ... ...) 
> (setq start ...)) (interblock start (point-max)) (run-hooks (quote 
> org-export-blocks-postblock-hook)))
>   (unwind-protect (progn (fset ... ...) (goto-char ...) (setq start ...) 
> (while ... ... ... ... ... ... ... ... ... ... ...) (interblock start ...) 
> (run-hooks ...)) (if --cl-letf-bound-- (fset ... --cl-letf-save--) 
> (fmakunbound ...)))
>   (let* ((--cl-letf-bound-- ...) (--cl-letf-save-- ...)) (unwind-protect 
> (progn ... ... ... ... ... ...) (if --cl-letf-bound-- ... ...)))
>   (letf ((... ...)) (goto-char (point-min)) (setq start (point)) (while 
> (re-search-forward "^\\([     ]*\\)#\\+begin_\\(\\S-+\\)[     
> ]*\\(.*\\)?[\n]\\([^]*?\\)[\n][         ]*#\\+end_\\S-+.*[\n]?" nil t) (setq 
> indentation ...) (setq type ...) (setq headers ...) (setq body ...) (setq 
> preserve-indent ...) (unless preserve-indent ...) (unless ... ...) 
> (save-match-data ...) (when ... ...) (setq start ...)) (interblock start 
> (point-max)) (run-hooks (quote org-export-blocks-postblock-hook)))
>   (letf* ((... ...)) (goto-char (point-min)) (setq start (point)) (while 
> (re-search-forward "^\\([    ]*\\)#\\+begin_\\(\\S-+\\)[     
> ]*\\(.*\\)?[\n]\\([^]*?\\)[\n][         ]*#\\+end_\\S-+.*[\n]?" nil t) (setq 
> indentation ...) (setq type ...) (setq headers ...) (setq body ...) (setq 
> preserve-indent ...) (unless preserve-indent ...) (unless ... ...) 
> (save-match-data ...) (when ... ...) (setq start ...)) (interblock start 
> (point-max)) (run-hooks (quote org-export-blocks-postblock-hook)))
>   (flet ((interblock ... ...)) (goto-char (point-min)) (setq start (point)) 
> (while (re-search-forward "^\\([  ]*\\)#\\+begin_\\(\\S-+\\)[     
> ]*\\(.*\\)?[\n]\\([^]*?\\)[\n][         ]*#\\+end_\\S-+.*[\n]?" nil t) (setq 
> indentation ...) (setq type ...) (setq headers ...) (setq body ...) (setq 
> preserve-indent ...) (unless preserve-indent ...) (unless ... ...) 
> (save-match-data ...) (when ... ...) (setq start ...)) (interblock start 
> (point-max)) (run-hooks (quote org-export-blocks-postblock-hook)))
>   (let ((case-fold-search t) (types ...) indentation type func start body 
> headers preserve-indent progress-marker) (flet (...) (goto-char ...) (setq 
> start ...) (while ... ... ... ... ... ... ... ... ... ... ...) (interblock 
> start ...) (run-hooks ...)))
>   (save-window-excursion (let (... ... indentation type func start body 
> headers preserve-indent progress-marker) (flet ... ... ... ... ... ...)))
>   org-export-blocks-preprocess()
>   run-hooks(org-export-preprocess-after-include-files-hook)
>   (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-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-ending backend) 
> (org-export-replace-src-segments-and-examples backend) 
> (org-export-protect-colon-examples) (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) 
> backend) (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 backend) 
> (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 backend 
> 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) (org-export-target-internal-links target-alist) 
> (when (plist-get parameters :emph-multiline) 
> (org-export-concatenate-multiline-emphasis)) (when 
> org-export-table-remove-special-lines 
> (org-export-remove-special-table-lines)) (run-hooks (quote 
> org-export-preprocess-before-backend-specifics-hook)) ...)
>   (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-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-ending backend) 
> (org-export-replace-src-segments-and-examples backend) 
> (org-export-protect-colon-examples) (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) 
> backend) (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 backend) 
> (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 backend 
> 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) (org-export-target-internal-links target-alist) 
> (when (plist-get parameters :emph-multiline) 
> (org-export-concatenate-multiline-emphasis)) (when 
> org-export-table-remove-special-lines 
> (org-export-remove-special-table-lines)) (run-hooks (quote 
> org-export-preprocess-before-backend-specifics-hook)) ...)
>   (let* ((htmlp ...) (asciip ...) (latexp ...) (docbookp ...) (backend ...) 
> (archived-trees ...) (inhibit-read-only t) (drawers org-drawers) 
> (outline-regexp "\\*+ ") 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-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-ending backend) 
> (org-export-replace-src-segments-and-examples backend) 
> (org-export-protect-colon-examples) (when ... ...) (setq target-alist ...) 
> (run-hooks ...) (org-export-remember-html-container-classes) 
> (org-export-remove-or-extract-drawers drawers ... backend) (when ... ... ...) 
> (when ... ... ...) (org-export-remove-headline-metadata parameters) (setq 
> target-alist ...) (run-hooks ...) (org-export-select-backend-specific-text 
> backend) (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) (org-export-target-internal-links target-alist) 
> (when ... ...) (when org-export-table-remove-special-lines ...) (run-hooks 
> ...) ...) (kill-buffer " org-mode-tmp") rtn)
>   org-export-preprocess-string(#("#+TITLE:     Org-isodoc\n#+AUTHOR:    Seb 
> Vauban\n#+DATE:      2010-09-13\n#+LANGUAGE:  en_US\n\n* Context\n\nThis is a 
> letter sample.\n\n* Subject\n#+srcname: subject\n#+begin_src org :results 
> latex\nComposing letters using Org mode and the LaTeX isodoc 
> class\n#+end_src\n\n" 0 1 (font-lock-fontified t fontified nil) 1 7 
> (font-lock-fontified t fontified nil pabbrev-added t) 7 8 
> (font-lock-fontified t fontified nil) 8 13 (fontified nil) 13 23 
> (font-lock-fontified t fontified nil pabbrev-added t) 23 24 (fontified nil) 
> 24 25 (font-lock-fontified t fontified nil) 25 32 (font-lock-fontified t 
> fontified nil pabbrev-added t) 32 33 (font-lock-fontified t fontified nil) 33 
> 37 (fontified nil) 37 40 (font-lock-fontified t fontified nil pabbrev-added 
> t) 40 41 (font-lock-fontified t fontified nil) 41 47 (font-lock-fontified t 
> fontified nil pabbrev-added t) 47 48 (fontified nil) 48 49 
> (font-lock-fontified t fontified nil) 49 54 (font-lock-fontified t fontified 
> nil pabbrev-added t) 54 55 (font-lock-fontified t fontified nil) 55 61 
> (fontified nil) 61 71 (fontified nil font-lock-fontified t pabbrev-added t) 
> 71 72 (fontified nil) 72 73 (font-lock-fontified t fontified nil) 73 82 
> (font-lock-fontified t fontified nil pabbrev-added t) 82 85 
> (font-lock-fontified t fontified nil) 85 87 (font-lock-fontified t fontified 
> nil pabbrev-added t) 87 90 (font-lock-fontified t fontified nil pabbrev-added 
> t) 90 91 (fontified nil) 91 92 (fontified nil) 92 93 (fontified nil 
> pabbrev-added t) 93 94 (fontified nil) 94 101 (fontified nil pabbrev-added t) 
> 101 102 (fontified nil) 102 103 (fontified nil) 103 107 (fontified nil 
> pabbrev-added t) 107 108 (fontified nil) 108 110 (fontified nil pabbrev-added 
> t) 110 111 (fontified nil) 111 112 (fontified nil pabbrev-added t) 112 113 
> (fontified nil) 113 119 (fontified nil pabbrev-added t) 119 120 (fontified 
> nil) 120 126 (fontified nil pabbrev-added t) 126 127 (fontified nil) 127 128 
> (fontified nil) 128 129 (fontified nil) 129 130 (fontified nil pabbrev-added 
> t) 130 131 (fontified nil) 131 138 (fontified nil pabbrev-added t) 138 139 
> (fontified nil) 139 140 (font-lock-fontified t fontified nil) 140 148 
> (font-lock-fontified t fontified nil pabbrev-added t) 148 150 
> (font-lock-fontified t fontified nil) 150 157 (font-lock-fontified t 
> fontified nil pabbrev-added t) 157 158 (fontified nil) 158 159 
> (font-lock-fontified t fontified nil) 159 165 (font-lock-fontified t 
> fontified nil pabbrev-added t) 165 169 (font-lock-fontified t fontified nil 
> pabbrev-added t) 169 170 (font-lock-fontified t fontified nil) 170 173 
> (font-lock-fontified t fontified nil pabbrev-added t) 173 175 
> (font-lock-fontified t fontified nil) 175 182 (font-lock-fontified t 
> fontified nil pabbrev-added t) 182 183 (font-lock-fontified t fontified nil) 
> 183 188 (font-lock-fontified t fontified nil pabbrev-added t) 188 189 
> (font-lock-fontified t fontified nil) 189 198 (font-lock-fontified t 
> fontified nil pabbrev-added t) 198 199 (font-lock-fontified t fontified nil) 
> 199 206 (font-lock-fontified t fontified nil pabbrev-added t) 206 207 
> (font-lock-fontified t fontified nil) 207 212 (font-lock-fontified t 
> fontified nil pabbrev-added t) 212 213 (font-lock-fontified t fontified nil) 
> 213 216 (font-lock-fontified t fontified nil pabbrev-added t) 216 217 
> (font-lock-fontified t fontified nil) 217 221 (font-lock-fontified t 
> fontified nil pabbrev-added t) 221 222 (font-lock-fontified t fontified nil) 
> 222 225 (font-lock-fontified t fontified nil pabbrev-added t) 225 226 
> (font-lock-fontified t fontified nil) 226 229 (font-lock-fontified t 
> fontified nil pabbrev-added t) 229 230 (font-lock-fontified t fontified nil) 
> 230 235 (font-lock-fontified t fontified nil pabbrev-added t) 235 236 
> (font-lock-fontified t fontified nil) 236 242 (font-lock-fontified t 
> fontified nil pabbrev-added t) 242 243 (font-lock-fontified t fontified nil) 
> 243 248 (font-lock-fontified t fontified nil pabbrev-added t) 248 249 
> (font-lock-fontified t fontified nil) 249 250 (font-lock-fontified t 
> fontified nil) 250 254 (font-lock-fontified t fontified nil pabbrev-added t) 
> 254 258 (font-lock-fontified t fontified nil pabbrev-added t) 258 259 
> (fontified nil) 259 260 (fontified nil)) :emph-multiline t :for-LaTeX t 
> :comments nil :tags not-in-toc :priority nil :footnotes t :drawers nil 
> :timestamps t :todo-keywords t :add-text nil :skip-before-1st-heading nil 
> :select-tags ("export") :exclude-tags ("noexport") :LaTeX-fragments nil)
>   (let* ((wcf ...) (opt-plist org-export-latex-options-plist) (region-p ...) 
> (rbeg ...) (rend ...) (subtree-p ...) (opt-plist ...) 
> (org-export-latex-options-plist ...) (org-current-export-dir ...) 
> (org-current-export-file buffer-file-name) (title ...) (filename ...) 
> (filename ...) (buffer ...) (odd org-odd-levels-only) (header ...) (skip ...) 
> (text ...) (org-export-preprocess-hook ...) (first-lines ...) (coding-system 
> ...) (coding-system-for-write ...) (save-buffer-coding-system ...) (region 
> ...) (text ...) (string-for-export ...)) (set-buffer buffer) (erase-buffer) 
> (org-install-letbind) (and (fboundp ...) (set-buffer-file-coding-system 
> coding-system-for-write)) (unless (or ... body-only) (insert header)) (when 
> (and text ...) (insert ... "\n\n")) (unless skip (insert first-lines)) 
> (org-export-latex-global (with-temp-buffer ... ... ...)) (unless body-only 
> (insert "\n\\end{document}")) (goto-char (point-min)) (while 
> (re-search-forward "^[        ]*\\\\item\\([  ]+\\)\\[" nil t) (delete-region 
> ... ...)) (goto-char (point-min)) (when (re-search-forward 
> "\\[TABLE-OF-CONTENTS\\]" nil t) (goto-char ...) (while ... ...) (goto-char 
> ...) (and ... ...)) (goto-char (point-min)) (while (re-search-forward "^[     
>    ]*\\\\item\\>.*\\(\\\\\\\\\\)[  ]*\\(\n\\\\label.*\\)*\n\\\\begin" nil t) 
> (delete-region ... ...)) (goto-char (point-min)) (while (re-search-forward 
> "^[        ]*\\\\item\\>.*\\(\\\\\\\\\\)[  ]*\\(\n\\\\label.*\\)*" nil t) (if 
> ... ...)) (run-hooks (quote org-export-latex-final-hook)) (if to-buffer 
> (unless ... ...) (save-buffer)) (org-export-latex-fix-inputenc) (run-hooks 
> (quote org-export-latex-after-save-hook)) (goto-char (point-min)) (or 
> (org-export-push-to-kill-ring "LaTeX") (message "Exporting to LaTeX...done")) 
> (prog1 (if ... ... ...) (set-window-configuration wcf)))
>   org-export-as-latex(nil nil nil nil nil nil)
>   (let* ((wconfig ...) (lbuf ...) (file ...) (base ...) (pdffile ...) (cmds 
> org-latex-to-pdf-process) (outbuf ...) (bibtex-p ...) cmd output-dir) 
> (with-current-buffer outbuf (erase-buffer)) (message (concat "Processing 
> LaTeX file " file "...")) (setq output-dir (file-name-directory file)) (if 
> (and cmds ...) (funcall cmds ...) (while cmds ... ... ... ... ...)) (message 
> (concat "Processing LaTeX file " file "...done")) (if (not ...) (error ...) 
> (set-window-configuration wconfig) (when org-export-pdf-remove-logfiles ...) 
> (message "Exporting to PDF...done") pdffile))
>   org-export-as-pdf(nil)
>   (let ((pdffile ...)) (if pdffile (progn ... ...) (error "PDF file was not 
> produced")))
>   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]   only 
> export the current subtree\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 ... ... ... ... ... ... ...)) (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)
>
> I don't have the impression to have changed anything else (than pulling latest
> version) on my side, though I don't really understand the above.
>
> The error occurs with such a simple document:
>
> #+TITLE:     Org-isodoc
> #+AUTHOR:    Seb Vauban
> #+DATE:      2010-09-13
> #+LANGUAGE:  en_US
>
> * Context
>
> This is a letter sample.
>
> * Subject
> #+srcname: subject
> #+begin_src org :results latex
> Composing letters using Org mode and the LaTeX isodoc class
> #+end_src
>
> And, what's weird, is that Org text is inserted in many other Emacs buffers,
> such as dired or Gnus buffers!!
>
> For example:
>
>   /home/sva/Examples/Org-scraps:
>   total used in directory 416 available 2070788
>   drwxr-xr-x 3 sva sva   4096 2010-09-13 13:20 ./
>   drwxr-xr-x 7 sva sva   4096 2010-09-07 09:56 ../
>   -rw-r--r-- 1 sva sva  46503 2010-09-13 13:19 ecm-org-isodoc.pdf
>   -rw-r--r-- 1 sva sva    734 2010-09-13 13:19 ecm-org-isodoc.tex
>   lrwxrwxrwx 1 sva sva     29 2010-09-13 13:20 .#ecm-org-isodoc.txt -> 
> address@hidden:1284361988
>   -rw-r--r-- 1 sva sva    260 2010-09-13 13:20 #ecm-org-isodoc.txt#
>   -rw-r--r-- 1 sva sva    261 2010-09-13 13:19 #+BEGIN_LaTeX
> Composing letters using Org mode and the \LaTeX{} isodoc class
> #+END_LaTeX
> ecm-org-isodoc.txt
>   -rw-r--r-- 1 sva sva     41 2010-09-06 15:37 myscript.gp
>   -rw-r--r-- 1 sva sva    981 2010-09-06 15:53 org-babel-elisp.txt
>   drwxr-xr-x 6 sva sva   4096 2010-09-13 11:06 .svn/
>
> Hope this can "say" something to someone...
>
> Best regards,
>   Seb



reply via email to

[Prev in Thread] Current Thread [Next in Thread]