michael.zom...@googlemail.com writes: > 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) > (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"))
The function reftex-set-cite-format should also be made conditional on the buffer-file-name and file-exists-p checks. It calls reftex-TeX-master-file in the temporary export buffer; this fails because there is no file associated with the buffer. Best, Matt