From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Zombok Subject: Re: 'wrong-type-argument stringp nil' when exporting (reftex/orgmode) Date: Sun, 08 May 2011 11:52:00 +0200 Message-ID: <87tyd5h64f.fsf@gmx.de> References: <87iptmzvua.fsf@gmx.de> <87y62iy5zh.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:55569) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJ0eh-0006bR-Uw for emacs-orgmode@gnu.org; Sun, 08 May 2011 05:52:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QJ0eg-0003GJ-O7 for emacs-orgmode@gnu.org; Sun, 08 May 2011 05:52:03 -0400 Received: from mail-bw0-f41.google.com ([209.85.214.41]:61796) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QJ0eg-0003GD-9n for emacs-orgmode@gnu.org; Sun, 08 May 2011 05:52:02 -0400 Received: by bwz17 with SMTP id 17so4376607bwz.0 for ; Sun, 08 May 2011 02:52:00 -0700 (PDT) In-Reply-To: <87y62iy5zh.fsf@fastmail.fm> (Matt Lundin's message of "Sat, 07 May 2011 09:50:42 -0400") 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: Matt Lundin Cc: emacs-orgmode@gnu.org >>>>> "Matt" == Matt Lundin writes: Matt> 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")) 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