From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Francesco Pizzolante" Subject: Re: [PATCH] Add catch-up all LaTeX errors Date: Thu, 27 Mar 2014 11:27:20 +0100 Message-ID: <87zjkcey2f.fsf@somewhere.org> References: <87vc14i5wp.fsf@somewhere.org> <87siq5gh6w.fsf@somewhere.org> <87zjkdt3le.fsf@gmail.com> <533355BA.1030003@verizon.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: In-Reply-To: <533355BA.1030003-H+0wwilmMs3R7s880joybQ@public.gmane.org> (Charles Millar's message of "Wed, 26 Mar 2014 18:33:30 -0400") 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: Charles Millar Cc: Nicolas Goaziou , emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Charles, > First, I have subsequent messages in this thread and the discussion. > > Should Nick's observation, that > >> IOW, it cannot tell the difference between a successful export and an >> export failure with an already existing PDF > > > also include the qualification that the existing PDF file is also opened at the > time of the second export? I base this on Francesco's example above and the > following. > > I usually export a subtree to LaTeX as PDF file and open. If I make small > corrections to the subtree and export again, AND forget to close the PDF file > that is already opened from the earlier export, Org reports a successful > export; however, the "revised" exported PDF does not exist. (Also I use > EXPORT_FILE_NAME: in PROPERTIES as the top of the subtree.) > > If I remember to close the first exported PDF, the revised subtree exports OK. > > I'm just curious, does the problem exist iff the pdf, that is to be replaced, > is opened? You're observing the exact same issue I have. As you can see, in my initial email, I wrote: >>>> 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'. >>>> [...] To answer your question: yes, the problem exists iff the pdf, that is to be replaced, is opened in Adobe Reader. In this particular case, the problem comes from the fact that we do not catch *all* errors from the log file. Thanks a lot for your remarks. Regards, Francesco