From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Klein Subject: Re: Publishing using the new exporter Date: Tue, 09 Oct 2012 12:07:15 +0200 Message-ID: <5073F753.4010209@mpip-mainz.mpg.de> References: <50602E92.3080705@mpip-mainz.mpg.de> <87y5jzafab.fsf@gmail.com> <50609817.705@mpip-mainz.mpg.de> <87a9vz7stn.fsf@gmail.com> <507045B7.9010101@mpip-mainz.mpg.de> <877gr3cwzi.fsf@gmail.com> <507181CD.1050005@mpip-mainz.mpg.de> <87391prumz.fsf@gmail.com> <5072F9BD.7020505@mpip-mainz.mpg.de> <87y5jgrjrt.fsf@gmail.com> <50730F2B.5030902@mpip-mainz.mpg.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:54186) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLWij-0007Tn-15 for emacs-orgmode@gnu.org; Tue, 09 Oct 2012 06:07:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TLWif-00047F-3t for emacs-orgmode@gnu.org; Tue, 09 Oct 2012 06:07:24 -0400 Received: from gate1.mpip-mainz.mpg.de ([194.95.63.248]:28829) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLWie-00046h-Qg for emacs-orgmode@gnu.org; Tue, 09 Oct 2012 06:07:21 -0400 In-Reply-To: <50730F2B.5030902@mpip-mainz.mpg.de> 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: Nicolas Goaziou Cc: emacs-orgmode@gnu.org, Eric Schulte Hello, On 10/08/2012 07:36 PM, Robert Klein wrote: > Hallo, > > On 10/08/2012 06:49 PM, Nicolas Goaziou wrote: >> Hello, >> >> >> I don't think so, but I cannot reproduce your problem. Could you try >> again in a fresh emacs, once back-ends you need have been required? >> > > I re-installed the git-version of org-mode, required 'org-e-html and > 'org-e-latex and exported from a fresh emacs. Issue 1 and 3 above are > gone, but I still get empty images when calling org-e-publish from a > buffer visiting a file outside the base-directory. > > I appended both a minimal .emacs and org file I used for the tests. > > Best regards > Robert > I got i working with this patch: diff --git a/contrib/lisp/org-e-latex.el b/contrib/lisp/org-e-latex.el index 80b8ddb..2d4ad35 100644 --- a/contrib/lisp/org-e-latex.el +++ b/contrib/lisp/org-e-latex.el @@ -2670,6 +2670,7 @@ Return PDF file name or an error if it couldn't be produced." (let* ((wconfig (current-window-configuration)) (texfile (file-truename texfile)) (base (file-name-sans-extension texfile)) + (default-directory base) errors) (message (format "Processing LaTeX file %s ..." texfile)) (unwind-protect After reading a bit in the emacs lisp reference manual I knew the issue is something with default-directory. Then I examined the code of the old exporter and looked for a "similar" place in the new exporter, happily finding a 'let*( ...'. Not sure, this is Ok or even the right place. Just happy at the moment it does work. Both cases (buffer visited in base-directory and not in base-directory) work with the change. Best regards Robert