From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Rose Subject: Re: Patch: org-reload changes default-directory Date: Wed, 11 Nov 2009 00:12:21 +0100 Message-ID: <87fx8m0yay.fsf@gmx.de> References: <87hbt2kn78.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N7zt6-00051g-7Z for emacs-orgmode@gnu.org; Tue, 10 Nov 2009 18:12:36 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N7zt1-0004zl-9s for emacs-orgmode@gnu.org; Tue, 10 Nov 2009 18:12:35 -0500 Received: from [199.232.76.173] (port=57647 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N7zt1-0004zi-60 for emacs-orgmode@gnu.org; Tue, 10 Nov 2009 18:12:31 -0500 Received: from mail.gmx.net ([213.165.64.20]:37234) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1N7zt0-0000Ik-LC for emacs-orgmode@gnu.org; Tue, 10 Nov 2009 18:12:31 -0500 In-Reply-To: <87hbt2kn78.fsf@gmx.de> (SebastianRose's message of "Tue, 10 Nov 2009 23:51:55 +0100") 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: Emacs-orgmode mailing list Cc: carsten.dominik@gmail.com SebastianRose writes: > Hi, > > > I found out why I ran into this earlier. It's _not_ org-reload, it's > org-version that changes the default directory. Patch attached. > > > I don't know where my bug report is... so I cannot respond to that > post. As I cannot find the bug report on the gmane, I thought I'd better re-write the reason for this patch, so you can reproduce the problem. Steps to reproduce the bug the patch fixes here: 1. Open an *.org file you can export to PDF. Ensure the file is not located where your Org-mode sources are (org-*.el files). Choose a file, that includes some images or a SETUPFILE using relative paths. 2. M-x default-directory RET to see the value of that variable in the current buffer. 3. C-c C-e p to export to PDF and verify it works. 4. C-c C-x ! to `org-reload' 5. Now repeat steps 2 and 3. Note, that the export fails. Best wishes Sebastian