From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: org mode and reftex Date: Thu, 12 Jul 2007 21:26:21 +0200 Message-ID: <57102278d9c24eb3221bb0f00d49352b@science.uva.nl> References: Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I94xL-000574-Fz for emacs-orgmode@gnu.org; Thu, 12 Jul 2007 16:08:07 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I94xI-000526-JP for emacs-orgmode@gnu.org; Thu, 12 Jul 2007 16:08:06 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I94xI-00051q-GH for emacs-orgmode@gnu.org; Thu, 12 Jul 2007 16:08:04 -0400 Received: from korteweg.uva.nl ([146.50.98.70]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I94xI-0005Vu-1q for emacs-orgmode@gnu.org; Thu, 12 Jul 2007 16:08:04 -0400 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: francois Cc: emacs-orgmode@gnu.org On Jul 12, 2007, at 16:34, francois wrote: > hello, > > I use org 5.02/GNU Emacs 22.0.91.1 > > I configured reftex to handle my biblio. It inserts a citation in this > way > [[bib:myKey]] > where > #+LINK: bib file:~/mydocs/mybib.bib::%s > > To customize this citation I have defined in my .emacs > (defun my-org-mode-setup () Are you adding this function to org-mode-hook? I guess the problem is this: When Org-mode exports, it create a temporary buffer that is also in Org-mode, but that does not have a file. The function reftex-parse-all assumes that a file it associated with it. You might be able to get away with the following work-around: Change > (reftex-parse-all) ; to make reftex aware of the biblio > ; # \bibliography{biblio} to this: (if (buffer-file-name) (reftex-parse-all)) - Carsten