>>>>> "Matt" == Matt Lundin <m...@imapmail.org> writes:
Matt> 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")) Matt> The function reftex-set-cite-format should also be made Matt> conditional on the buffer-file-name and file-exists-p Matt> checks. It calls reftex-TeX-master-file in the temporary Matt> export buffer; this fails because there is no file associated Matt> with the buffer. Matt> Best, Matt Thank you for the explanation. Your suggestions works fine. :) Best, Michael