From mboxrd@z Thu Jan 1 00:00:00 1970 From: michael.zombok@googlemail.com Subject: 'wrong-type-argument stringp nil' when exporting (reftex/orgmode) Date: Sat, 07 May 2011 11:46:53 +0200 Message-ID: <87iptmzvua.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:45381) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QIeE9-0006YV-RY for emacs-orgmode@gnu.org; Sat, 07 May 2011 05:55:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QIeE8-0005Un-91 for emacs-orgmode@gnu.org; Sat, 07 May 2011 05:55:09 -0400 Received: from lo.gmane.org ([80.91.229.12]:35475) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QIeE7-0005UJ-Ow for emacs-orgmode@gnu.org; Sat, 07 May 2011 05:55:08 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QIeE5-0006dS-R7 for emacs-orgmode@gnu.org; Sat, 07 May 2011 11:55:05 +0200 Received: from rain.gmane.org ([80.91.229.7]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 07 May 2011 11:55:05 +0200 Received: from michael.zombok by rain.gmane.org with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 07 May 2011 11:55:05 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Dear All, I am using Org-mode version 7.5 (release_7.5.264.g94664) with GNU Emacs 23.2.1. When I do C-c C-e l (or any other export, not only latex), I get the error (backtrace) below. I use reftex with org-mode with the setup described in the FAQ, that means in my .emacs is the following: (require 'reftex)=20 (defun org-mode-reftex-setup () (load-library "reftex") (and (buffer-file-name) (file-exists-p (buffer-file-name)) (reftex-parse-all)) (reftex-set-cite-format "\\citep{%l}") (define-key org-mode-map (kbd "C-c )") 'reftex-citation)) (add-hook 'org-mode-hook 'org-mode-reftex-setup) (setq reftex-default-bibliography '("/home/basil/docs/liball.bib")) Any help is appreciated. Thank you! Here comes the *Backtrace buffer*: Debugger entered--Lisp error: (wrong-type-argument stringp nil) expand-file-name(nil) reftex-TeX-master-file() reftex-tie-multifile-symbols() reftex-set-cite-format("\\citep{%l}") org-mode-reftex-setup() run-hooks(text-mode-hook outline-mode-hook org-mode-hook) apply(run-hooks (text-mode-hook outline-mode-hook org-mode-hook)) run-mode-hooks(org-mode-hook) org-mode() (let ((org-inhibit-startup t)) (org-mode)) (save-current-buffer (set-buffer (get-buffer-create " org-mode-tmp")) (er= ase-buffer) (insert string) (setq case-fold-search t) (let (...) (remove-te= xt-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)) (untabify (point-min) (point-max)) (org-export-handle-in= clude-files-recurse) (run-hooks (quote org-export-preprocess-after-include-= files-hook)) (org-export-mark-list-end) (org-export-preprocess-apply-macros= ) (run-hooks (quote org-export-preprocess-after-macros-hook)) (org-export-r= emove-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-prepro= cess-after-tree-selection-hook)) (org-export-remove-tasks (plist-get parame= ters :tasks)) (org-export-blocks-preprocess) (org-export-mark-list-properti= es) (org-export-replace-src-segments-and-examples) (org-export-protect-colo= n-examples) (org-export-convert-protected-spaces) (when (plist-get paramete= rs :footnotes) (org-footnote-normalize nil t)) (setq target-alist (org-expo= rt-define-heading-targets target-alist)) (run-hooks (quote org-export-prepr= ocess-after-headline-targets-hook)) (org-export-remember-html-container-cla= sses) (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-c= har ...) (insert ... "\n")) (org-export-remove-headline-metadata parameters= ) (setq target-alist (org-export-handle-invisible-targets target-alist)) (r= un-hooks (quote org-export-preprocess-before-selecting-backend-code-hook)) = (org-export-select-backend-specific-text) (org-export-protect-quoted-subtre= es) (org-export-remove-clock-lines) (org-export-protect-verbatim) (org-expo= rt-mark-blockquote-verse-center) (run-hooks (quote org-export-preprocess-af= ter-blockquote-hook)) (unless (plist-get parameters :timestamps) (org-expor= t-remove-timestamps)) (setq target-alist (org-export-attach-captions-and-at= tributes target-alist)) (org-export-mark-radio-links) (run-hooks (quote org= -export-preprocess-after-radio-targets-hook)) (org-export-concatenate-multi= line-links) (run-hooks (quote org-export-preprocess-before-normalizing-link= s-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-clone-local-variables source-buffer "^\\(org-\\|o= rgtbl-\\)") (org-install-letbind) (run-hooks (quote org-export-preprocess-h= ook)) (untabify (point-min) (point-max)) (org-export-handle-include-files-r= ecurse) (run-hooks (quote org-export-preprocess-after-include-files-hook)) = (org-export-mark-list-end) (org-export-preprocess-apply-macros) (run-hooks = (quote org-export-preprocess-after-macros-hook)) (org-export-remove-archive= d-trees archived-trees) (org-export-remove-comment-blocks-and-subtrees) (or= g-export-handle-export-tags (plist-get parameters :select-tags) (plist-get = parameters :exclude-tags)) (run-hooks (quote org-export-preprocess-after-tr= ee-selection-hook)) (org-export-remove-tasks (plist-get parameters :tasks))= (org-export-blocks-preprocess) (org-export-mark-list-properties) (org-expo= rt-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-hea= ding-targets target-alist)) (run-hooks (quote org-export-preprocess-after-h= eadline-targets-hook)) (org-export-remember-html-container-classes) (org-ex= port-remove-or-extract-drawers drawers (plist-get parameters :drawers)) (wh= en (plist-get parameters :skip-before-1st-heading) (goto-char ...) (when ..= . ... ... ...)) (when (plist-get parameters :add-text) (goto-char ...) (ins= ert ... "\n")) (org-export-remove-headline-metadata parameters) (setq targe= t-alist (org-export-handle-invisible-targets target-alist)) (run-hooks (quo= te org-export-preprocess-before-selecting-backend-code-hook)) (org-export-s= elect-backend-specific-text) (org-export-protect-quoted-subtrees) (org-expo= rt-remove-clock-lines) (org-export-protect-verbatim) (org-export-mark-block= quote-verse-center) (run-hooks (quote org-export-preprocess-after-blockquot= e-hook)) (unless (plist-get parameters :timestamps) (org-export-remove-time= stamps)) (setq target-alist (org-export-attach-captions-and-attributes targ= et-alist)) (org-export-mark-radio-links) (run-hooks (quote org-export-prepr= ocess-after-radio-targets-hook)) (org-export-concatenate-multiline-links) (= run-hooks (quote org-export-preprocess-before-normalizing-links-hook)) ...) (let* ((org-export-current-backend ...) (archived-trees ...) (inhibit-rea= d-only t) (drawers org-drawers) (outline-regexp "\\*+ ") (source-buffer ...= ) target-alist rtn) (setq org-export-target-aliases nil org-export-preferre= d-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) (i= nsert string) (setq case-fold-search t) (let ... ...) (org-export-kill-lice= nsed-text) (let ... ...) (setq case-fold-search t) (org-clone-local-variabl= es source-buffer "^\\(org-\\|orgtbl-\\)") (org-install-letbind) (run-hooks = ...) (untabify ... ...) (org-export-handle-include-files-recurse) (run-hook= s ...) (org-export-mark-list-end) (org-export-preprocess-apply-macros) (run= -hooks ...) (org-export-remove-archived-trees archived-trees) (org-export-r= emove-comment-blocks-and-subtrees) (org-export-handle-export-tags ... ...) = (run-hooks ...) (org-export-remove-tasks ...) (org-export-blocks-preprocess= ) (org-export-mark-list-properties) (org-export-replace-src-segments-and-ex= amples) (org-export-protect-colon-examples) (org-export-convert-protected-s= paces) (when ... ...) (setq target-alist ...) (run-hooks ...) (org-export-r= emember-html-container-classes) (org-export-remove-or-extract-drawers drawe= rs ...) (when ... ... ...) (when ... ... ...) (org-export-remove-headline-m= etadata parameters) (setq target-alist ...) (run-hooks ...) (org-export-sel= ect-backend-specific-text) (org-export-protect-quoted-subtrees) (org-export= -remove-clock-lines) (org-export-protect-verbatim) (org-export-mark-blockqu= ote-verse-center) (run-hooks ...) (unless ... ...) (setq target-alist ...) = (org-export-mark-radio-links) (run-hooks ...) (org-export-concatenate-multi= line-links) (run-hooks ...) ...) (kill-buffer " org-mode-tmp") rtn) org-export-preprocess-string(#("#+TODO: DRAFT REVISION | FIXED\n\n" 0 30 = (fontified nil font-lock-fontified t) 30 31 (fontified nil font-lock-fontif= ied t) 31 32 (fontified nil)) :for-backend latex :emph-multiline t :add-tex= t nil :comments nil :skip-before-1st-heading nil :LaTeX-fragments nil :time= stamps t :footnotes t) (org-export-latex-content (org-export-preprocess-string (buffer-substring= pt end) :for-backend (quote latex) :emph-multiline t :add-text nil :commen= ts nil :skip-before-1st-heading nil :LaTeX-fragments nil :timestamps (plist= -get opt-plist :timestamps) :footnotes (plist-get opt-plist :footnotes))) (prog1 (org-export-latex-content (org-export-preprocess-string ... :for-b= ackend ... :emph-multiline t :add-text nil :comments nil :skip-before-1st-h= eading nil :LaTeX-fragments nil :timestamps ... :footnotes ...)) (org-unmod= ified (let ... ... ...))) (let* ((pt ...) (end ...)) (prog1 (org-export-latex-content ...) (org-unm= odified ...))) (save-excursion (goto-char (or beg ...)) (let* (... ...) (prog1 ... ...))) org-export-latex-first-lines((:latex-image-options "width=3D10em" :exclud= e-tags ("noexport") :select-tags ("export") :publishing-directory nil :time= stamp nil :expand-quoted-html t :html-table-tag ""= :xml-declaration (("html" . "")= ("php" . "\"; ?>")) :html-postamble auto :html-preamble t :html-extension "html" :in= line-images maybe :convert-org-links t :agenda-style "" :style-extra "" :st= yle "" :style-include-scripts t :style-include-default t :table-auto-headli= ne t :tables t :time-stamp-file t :creator-info t :email-info nil :author-i= nfo t :email "basil@basil-desktop" ...) nil nil) (if skip "" (org-export-latex-first-lines opt-plist (if subtree-p ... rbe= g) (if region-p rend))) (let* ((wcf ...) (opt-plist ...) (region-p ...) (rbeg ...) (rend ...) (su= btree-p ...) (opt-plist ...) (org-export-latex-options-plist ...) (org-curr= ent-export-dir ...) (org-current-export-file buffer-file-name) (title ...) = (filename ...) (filename ...) (buffer ...) (odd org-odd-levels-only) (heade= r ...) (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 bu= ffer) (erase-buffer) (org-install-letbind) (and (fboundp ...) (set-buffer-f= ile-coding-system coding-system-for-write)) (unless (or ... body-only) (ins= ert header)) (when (and text ...) (insert ... "\n\n")) (unless (or 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 ...) (an= d ... ...)) (goto-char (point-min)) (while (re-search-forward "^[ ]*\\\\it= em\\>.*\\(\\\\\\\\\\)[ ]*\\(\n\\\\label.*\\)*\n\\\\begin" nil t) (delete-r= egion ... ...)) (goto-char (point-min)) (while (re-search-forward "^[ ]*\\= \\item\\>.*\\(\\\\\\\\\\)[ ]*\\(\n\\\\label.*\\)*" nil t) (if ... ...)) (r= un-hooks (quote org-export-latex-final-hook)) (if to-buffer (unless ... ...= ) (save-buffer)) (org-export-latex-fix-inputenc) (run-hooks (quote org-expo= rt-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) call-interactively(org-export-as-latex) (if (and bg (nth 2 ass) (not ...) (not ...)) (let (...) (set-process-sent= inel p ...) (message "Background process \"%s\": started" p)) (if subtree-p= (progn ... ...)) (call-interactively (nth 1 ass)) (when (and bpos ...) (le= t ... ... ... ... ...))) (let* ((bg ...) (subtree-p ...) (help "[t] insert the export option tem= plate\n[v] limit export to visible part of outline tree\n[1] switch buf= fer/subtree export\n[SPC] publish enclosing subtree (with LaTeX_CLASS or EX= PORT_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] exp= ort 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 f= iles [c] ...as one combined file\n\n[F] publish current file [P]= publish current project\n[X] publish a project... [E] publish eve= ry projects") (cmds ...) r1 r2 ass (cpos ...) (cbuf ...) bpos) (save-excurs= ion (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)