From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: org-export-as-pdf > Removing log files Date: Mon, 23 Nov 2009 14:50:01 +0100 Message-ID: References: <87y6lxz932.fsf@missioncriticalit.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NCZIy-00060T-6i for emacs-orgmode@gnu.org; Mon, 23 Nov 2009 08:50:12 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NCZIs-0005xX-IL for emacs-orgmode@gnu.org; Mon, 23 Nov 2009 08:50:10 -0500 Received: from [199.232.76.173] (port=54922 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NCZIs-0005xN-BO for emacs-orgmode@gnu.org; Mon, 23 Nov 2009 08:50:06 -0500 Received: from mail-ew0-f224.google.com ([209.85.219.224]:35504) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NCZIr-0003cP-V5 for emacs-orgmode@gnu.org; Mon, 23 Nov 2009 08:50:06 -0500 Received: by ewy24 with SMTP id 24so2008825ewy.26 for ; Mon, 23 Nov 2009 05:50:05 -0800 (PST) In-Reply-To: <87y6lxz932.fsf@missioncriticalit.com> 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: Francesco Pizzolante Cc: mailing-list-org-mode Applied, thanks. - Carsten On Nov 23, 2009, at 2:04 PM, Francesco Pizzolante wrote: > Hi, > > When removing log files, the "org-export-as-pdf" function should > also delete > the ".idx" files: > > --8<---------------cut here---------------start------------->8--- > diff --git a/lisp/org-latex.el b/lisp/org-latex.el > index ad45a21..17e038c 100644 > --- a/lisp/org-latex.el > +++ b/lisp/org-latex.el > @@ -720,7 +720,7 @@ when PUB-DIR is set, use this as the publishing > directory." > (error "PDF file was not produced") > (set-window-configuration wconfig) > (when org-export-pdf-remove-logfiles > - (dolist (ext '("aux" "log" "out" "toc")) > + (dolist (ext '("aux" "idx" "log" "out" "toc")) > (setq file (concat base "." ext)) > (and (file-exists-p file) (delete-file file)))) > (message "Exporting to PDF...done") > --8<---------------cut here---------------end--------------->8--- > > Regards, > Francesco > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten