[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] 'wrong-type-argument stringp nil' when exporting (reftex/orgmode
From: |
Matt Lundin |
Subject: |
Re: [O] 'wrong-type-argument stringp nil' when exporting (reftex/orgmode) |
Date: |
Sat, 07 May 2011 09:50:42 -0400 |
User-agent: |
Gnus/5.110016 (No Gnus v0.16) Emacs/24.0.50 (gnu/linux) |
address@hidden 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