From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: 'wrong-type-argument stringp nil' when exporting (reftex/orgmode) Date: Sat, 07 May 2011 09:50:42 -0400 Message-ID: <87y62iy5zh.fsf@fastmail.fm> References: <87iptmzvua.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:38201) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QIhuA-0002ii-AM for emacs-orgmode@gnu.org; Sat, 07 May 2011 09:50:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QIhu9-0005lJ-AZ for emacs-orgmode@gnu.org; Sat, 07 May 2011 09:50:46 -0400 Received: from out2.smtp.messagingengine.com ([66.111.4.26]:57811) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QIhu9-0005lF-8P for emacs-orgmode@gnu.org; Sat, 07 May 2011 09:50:45 -0400 In-Reply-To: <87iptmzvua.fsf@gmx.de> (michael zombok's message of "Sat, 07 May 2011 11:46:53 +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: michael.zombok@googlemail.com Cc: emacs-orgmode@gnu.org michael.zombok@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