From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: [Babel] Can't export to LaTeX anymore (args-out-of-range 0 0) Date: Fri, 17 Sep 2010 10:08:31 -0400 Message-ID: <87y6b04fyn.fsf@gmail.com> References: <87tyltj2tq.fsf@mundaneum.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=60523 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Owbfe-0007Rl-Ap for emacs-orgmode@gnu.org; Fri, 17 Sep 2010 10:12:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OwbfY-0007a6-Q0 for emacs-orgmode@gnu.org; Fri, 17 Sep 2010 10:12:10 -0400 Received: from mail-gw0-f41.google.com ([74.125.83.41]:34615) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OwbfY-0007Sc-Kb for emacs-orgmode@gnu.org; Fri, 17 Sep 2010 10:12:04 -0400 Received: by mail-gw0-f41.google.com with SMTP id 16so1135006gwj.0 for ; Fri, 17 Sep 2010 07:12:04 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: =?utf-8?Q?S=C3=A9bastien?= Vauban Cc: emacs-orgmode@gnu.org Hi S=C3=A9bastien, 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=C3=A9bastien Vauban 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-inde= nt (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-ind= entation ...)) (unless preserve-indent (setq body ...)) (unless (memq type = types) (setq types ...)) (save-match-data (interblock start ...)) (when (se= tq 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 ... ...) (sa= ve-match-data ...) (when ... ...) (setq start ...)) (interblock start (poin= t-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--) (fmakunb= ound ...))) > (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 ty= pe ...) (setq headers ...) (setq body ...) (setq preserve-indent ...) (unle= ss preserve-indent ...) (unless ... ...) (save-match-data ...) (when ... ..= .) (setq start ...)) (interblock start (point-max)) (run-hooks (quote org-e= xport-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 t= ype ...) (setq headers ...) (setq body ...) (setq preserve-indent ...) (unl= ess 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 h= eaders 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 (...) (o= rg-mode)) (setq case-fold-search t) (org-install-letbind) (run-hooks (quote= org-export-preprocess-hook)) (org-export-preprocess-apply-macros) (run-hoo= ks (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-t= rees archived-trees) (org-export-remove-comment-blocks-and-subtrees) (org-e= xport-handle-export-tags (plist-get parameters :select-tags) (plist-get par= ameters :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) (whe= n (plist-get parameters :footnotes) (org-footnote-normalize nil t)) (setq t= arget-alist (org-export-define-heading-targets target-alist)) (run-hooks (q= uote org-export-preprocess-after-headline-targets-hook)) (org-export-rememb= er-html-container-classes) (org-export-remove-or-extract-drawers drawers (p= list-get parameters :drawers) backend) (when (plist-get parameters :skip-be= fore-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-invisi= ble-targets target-alist)) (run-hooks (quote org-export-preprocess-before-s= electing-backend-code-hook)) (org-export-select-backend-specific-text backe= nd) (org-export-protect-quoted-subtrees) (org-export-remove-clock-lines) (o= rg-export-protect-verbatim) (org-export-mark-blockquote-verse-center) (run-= hooks (quote org-export-preprocess-after-blockquote-hook)) (unless (plist-g= et parameters :timestamps) (org-export-remove-timestamps)) (setq target-ali= st (org-export-attach-captions-and-attributes backend target-alist)) (org-e= xport-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 pa= rameters :emph-multiline) (org-export-concatenate-multiline-emphasis)) (whe= n org-export-table-remove-special-lines (org-export-remove-special-table-li= nes)) (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-properti= es ... ... ...)) (org-export-kill-licensed-text) (let (...) (org-mode)) (se= tq case-fold-search t) (org-install-letbind) (run-hooks (quote org-export-p= reprocess-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-prepr= ocess-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 :excl= ude-tags)) (run-hooks (quote org-export-preprocess-after-tree-selection-hoo= k)) (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-expo= rt-preprocess-after-headline-targets-hook)) (org-export-remember-html-conta= iner-classes) (org-export-remove-or-extract-drawers drawers (plist-get para= meters :drawers) backend) (when (plist-get parameters :skip-before-1st-head= ing) (goto-char ...) (when ... ... ... ...)) (when (plist-get parameters :a= dd-text) (goto-char ...) (insert ... "\n")) (org-export-remove-headline-met= adata parameters) (setq target-alist (org-export-handle-invisible-targets t= arget-alist)) (run-hooks (quote org-export-preprocess-before-selecting-back= end-code-hook)) (org-export-select-backend-specific-text backend) (org-expo= rt-protect-quoted-subtrees) (org-export-remove-clock-lines) (org-export-pro= tect-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-expor= t-attach-captions-and-attributes backend target-alist)) (org-export-mark-ra= dio-links) (run-hooks (quote org-export-preprocess-after-radio-targets-hook= )) (org-export-concatenate-multiline-links) (run-hooks (quote org-export-pr= eprocess-before-normalizing-links-hook)) (org-export-normalize-links) (org-= export-target-internal-links target-alist) (when (plist-get parameters :emp= h-multiline) (org-export-concatenate-multiline-emphasis)) (when org-export-= table-remove-special-lines (org-export-remove-special-table-lines)) (run-ho= oks (quote org-export-preprocess-before-backend-specifics-hook)) ...) > (let* ((htmlp ...) (asciip ...) (latexp ...) (docbookp ...) (backend ..= .) (archived-trees ...) (inhibit-read-only t) (drawers org-drawers) (outlin= e-regexp "\\*+ ") target-alist rtn) (setq org-export-target-aliases nil org= -export-preferred-target-alist nil org-export-id-target-alist nil org-expor= t-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-ins= tall-letbind) (run-hooks ...) (org-export-preprocess-apply-macros) (run-hoo= ks ...) (untabify ... ...) (org-export-handle-include-files-recurse) (run-h= ooks ...) (org-export-remove-archived-trees archived-trees) (org-export-rem= ove-comment-blocks-and-subtrees) (org-export-handle-export-tags ... ...) (r= un-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-c= ontainer-classes) (org-export-remove-or-extract-drawers drawers ... backend= ) (when ... ... ...) (when ... ... ...) (org-export-remove-headline-metadat= a parameters) (setq target-alist ...) (run-hooks ...) (org-export-select-ba= ckend-specific-text backend) (org-export-protect-quoted-subtrees) (org-expo= rt-remove-clock-lines) (org-export-protect-verbatim) (org-export-mark-block= quote-verse-center) (run-hooks ...) (unless ... ...) (setq target-alist ...= ) (org-export-mark-radio-links) (run-hooks ...) (org-export-concatenate-mul= tiline-links) (run-hooks ...) (org-export-normalize-links) (org-export-targ= et-internal-links target-alist) (when ... ...) (when org-export-table-remov= e-special-lines ...) (run-hooks ...) ...) (kill-buffer " org-mode-tmp") rtn) > org-export-preprocess-string(#("#+TITLE: Org-isodoc\n#+AUTHOR: S= eb 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 :res= ults 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-fonti= fied 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 pabbre= v-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-l= ock-fontified t fontified nil) 33 37 (fontified nil) 37 40 (font-lock-fonti= fied t fontified nil pabbrev-added t) 40 41 (font-lock-fontified t fontifie= d nil) 41 47 (font-lock-fontified t fontified nil pabbrev-added t) 47 48 (f= ontified 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 fon= tified 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 fonti= fied 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 fontifi= ed 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 p= abbrev-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 pa= bbrev-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 1= 28 (fontified nil) 128 129 (fontified nil) 129 130 (fontified nil pabbrev-a= dded 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-fo= ntified t fontified nil) 150 157 (font-lock-fontified t fontified nil pabbr= ev-added t) 157 158 (fontified nil) 158 159 (font-lock-fontified t fontifie= d nil) 159 165 (font-lock-fontified t fontified nil pabbrev-added t) 165 16= 9 (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 pab= brev-added t) 173 175 (font-lock-fontified t fontified nil) 175 182 (font-l= ock-fontified t fontified nil pabbrev-added t) 182 183 (font-lock-fontified= t fontified nil) 183 188 (font-lock-fontified t fontified nil pabbrev-adde= d t) 188 189 (font-lock-fontified t fontified nil) 189 198 (font-lock-fonti= fied t fontified nil pabbrev-added t) 198 199 (font-lock-fontified t fontif= ied 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 fo= ntified 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 n= il 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-fon= tified t fontified nil) 226 229 (font-lock-fontified t fontified nil pabbre= v-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-fontifie= d 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-font= ified t fontified nil pabbrev-added t) 254 258 (font-lock-fontified t fonti= fied 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 :sk= ip-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 b= uffer-file-name) (title ...) (filename ...) (filename ...) (buffer ...) (od= d org-odd-levels-only) (header ...) (skip ...) (text ...) (org-export-prepr= ocess-hook ...) (first-lines ...) (coding-system ...) (coding-system-for-wr= ite ...) (save-buffer-coding-system ...) (region ...) (text ...) (string-fo= r-export ...)) (set-buffer buffer) (erase-buffer) (org-install-letbind) (an= d (fboundp ...) (set-buffer-file-coding-system coding-system-for-write)) (u= nless (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-sear= ch-forward "\\[TABLE-OF-CONTENTS\\]" nil t) (goto-char ...) (while ... ...)= (goto-char ...) (and ... ...)) (goto-char (point-min)) (while (re-search-f= orward "^[ ]*\\\\item\\>.*\\(\\\\\\\\\\)[ ]*\\(\n\\\\label.*\\)*\n\\\\beg= in" nil t) (delete-region ... ...)) (goto-char (point-min)) (while (re-sear= ch-forward "^[ ]*\\\\item\\>.*\\(\\\\\\\\\\)[ ]*\\(\n\\\\label.*\\)*" nil= t) (if ... ...)) (run-hooks (quote org-export-latex-final-hook)) (if to-bu= ffer (unless ... ...) (save-buffer)) (org-export-latex-fix-inputenc) (run-h= ooks (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 ...) (cm= ds org-latex-to-pdf-process) (outbuf ...) (bibtex-p ...) cmd output-dir) (w= ith-current-buffer outbuf (erase-buffer)) (message (concat "Processing LaTe= X file " file "...")) (setq output-dir (file-name-directory file)) (if (and= cmds ...) (funcall cmds ...) (while cmds ... ... ... ... ...)) (message (c= oncat "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 n= ot 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-se= ntinel 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 templat= e\n[v] limit export to visible part of outline tree\n[1] only export th= e current subtree\n[SPC] publish enclosing subtree (with LaTeX_CLASS or EXP= ORT_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 a= s 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] expo= rt 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 fi= les [c] ...as one combined file\n\n[F] publish current file [P] = publish current project\n[X] publish a project... [E] publish ever= y projects") (cmds ...) r1 r2 ass (cpos ...) (cbuf ...) bpos) (save-excursi= on (save-window-excursion ... ... ... ... ... ... ...)) (and bpos (goto-cha= r bpos)) (setq r2 (if ... ... r1)) (unless (setq ass ...) (error "No comman= d 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 l= atest > 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 buffe= rs, > 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 -> sv= a@mundaneum.3478: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