From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [PATCH] Add catch-up all LaTeX errors Date: Wed, 26 Mar 2014 15:51:57 +0100 Message-ID: <87zjkdt3le.fsf@gmail.com> References: <87vc14i5wp.fsf@somewhere.org> <87siq5gh6w.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:32805) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSpBM-0002IN-D5 for emacs-orgmode@gnu.org; Wed, 26 Mar 2014 10:52:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WSpBE-0000iX-Ag for emacs-orgmode@gnu.org; Wed, 26 Mar 2014 10:51:56 -0400 Received: from plane.gmane.org ([80.91.229.3]:56350) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSpBE-0000iP-52 for emacs-orgmode@gnu.org; Wed, 26 Mar 2014 10:51:48 -0400 Received: from public by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WSpBC-0005ZU-Pd for emacs-orgmode@gnu.org; Wed, 26 Mar 2014 15:51:46 +0100 In-Reply-To: <87siq5gh6w.fsf@somewhere.org> (Francesco Pizzolante's message of "Wed, 26 Mar 2014 15:36:39 +0100") 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: Francesco Pizzolante Cc: mailing-list-org-mode Hello, "Francesco Pizzolante" writes: >> The issue is the fact that, when exporting to PDF, in some cases, Org tells >> that the export has been done successfully while the PDF file has not been >> produced! >> >> As an example, if you open the target PDF file with Adobe Reader and, in the >> meantime, you export your Org file again to PDF, you'll see that Org will tell >> you it's OK (Process Completed) while, if you look at the *Org PDF LaTeX >> Output* buffer, you'll see an error such as: >> >> ! I can't write on file `toto.pdf'. >> [...] >> >> The problem comes from the fact that Org just checks for a couple of error >> messages (defined in org-latex-known-errors) and report it's OK if it doesn't >> find those messages: Errors are not related to your problem. Actually, "ox-latex.el" uses a rather weak check to know if process was successful or not: (if (not (file-exists-p pdffile)) (error (concat (format "PDF file %s wasn't produced" pdffile) (when errors (concat ": " errors)))) ... (message (concat "Process completed" (if (not errors) "." (concat " with errors: " errors))))) IOW, it cannot tell the difference between a successful export and an export failure with an already existing PDFFILE. This part needs to be improved. Regards, -- Nicolas Goaziou