From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?=C5=81ukasz_Stelmach?= Subject: [PATCH] org-export-pdf-remove-logfiles extensions Date: Wed, 25 Nov 2009 18:31:43 +0100 Message-ID: <87fx82ecjk.fsf_-_@dasa3.iem.pw.edu.pl> References: <878wduiwzu.fsf@dasa3.iem.pw.edu.pl> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NDLiU-00076k-3Z for emacs-orgmode@gnu.org; Wed, 25 Nov 2009 12:31:46 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NDLiO-00075Q-K4 for emacs-orgmode@gnu.org; Wed, 25 Nov 2009 12:31:45 -0500 Received: from [199.232.76.173] (port=53493 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NDLiO-00075N-De for emacs-orgmode@gnu.org; Wed, 25 Nov 2009 12:31:40 -0500 Received: from lo.gmane.org ([80.91.229.12]:52431) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NDLiN-0007sE-T3 for emacs-orgmode@gnu.org; Wed, 25 Nov 2009 12:31:40 -0500 Received: from list by lo.gmane.org with local (Exim 4.50) id 1NDLiJ-0004EQ-Fy for emacs-orgmode@gnu.org; Wed, 25 Nov 2009 18:31:35 +0100 Received: from dasa3.iem.pw.edu.pl ([194.29.147.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 25 Nov 2009 18:31:35 +0100 Received: from lukasz.stelmach by dasa3.iem.pw.edu.pl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 25 Nov 2009 18:31:35 +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@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Carsten Dominik writes: > On Nov 25, 2009, at 1:56 PM, Łukasz Stelmach wrote: >> XeLaTeX[1,2] produces some more files than pdflatex. These are: >> .nav, .snm, .vrb. All named the same as the base file. The list in >> org-export-as-pdf should be extended or even made customisable. > I have fixed this. That's great. How about this one? I'm just not sure 'sexp is the best type. P.S. Is it ok to post patches here? -- Miłego dnia, Łukasz Stelmach --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=org-export-pdf-logfiles.diff Content-Description: customisable list of logfile types diff --git a/lisp/org-latex.el b/lisp/org-latex.el index 09e7067..e2959c1 100644 --- a/lisp/org-latex.el +++ b/lisp/org-latex.el @@ -400,6 +400,12 @@ This function should accept the file name as its single argument." (string :tag "Shell command")) (function))) +(defcustom org-export-pdf-logfiles + '("aux" "idx" "log" "out" "toc" "nav" "snm" "vrb") + "The list of file extensions to consider as LaTeX logfiles." + :group 'org-export-pdf + :type 'sexp) + (defcustom org-export-pdf-remove-logfiles t "Non-nil means, remove the logfiles produced by PDF production. These are the .aux, .log, .out, and .toc files." @@ -719,7 +725,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" "idx" "log" "out" "toc" "nav" "snm" "vrb")) + (dolist (ext org-export-pdf-logfiles) (setq file (concat base "." ext)) (and (file-exists-p file) (delete-file file)))) (message "Exporting to PDF...done") --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --=-=-=--