Remove also the .idx file when cleaning up after PDF export

This commit is contained in:
Carsten Dominik 2009-11-23 14:49:49 +01:00
parent db5c9d73ec
commit fdd40ea46f
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
2009-11-23 Carsten Dominik <carsten.dominik@gmail.com> 2009-11-23 Carsten Dominik <carsten.dominik@gmail.com>
* org-latex.el (org-export-as-pdf): Remove also the .idx file.
* org-mouse.el (org-mouse-end-headline, org-mouse-insert-item) * org-mouse.el (org-mouse-end-headline, org-mouse-insert-item)
(org-mouse-context-menu): Use `org-looking-back'. (org-mouse-context-menu): Use `org-looking-back'.

View File

@ -720,7 +720,7 @@ when PUB-DIR is set, use this as the publishing directory."
(error "PDF file was not produced") (error "PDF file was not produced")
(set-window-configuration wconfig) (set-window-configuration wconfig)
(when org-export-pdf-remove-logfiles (when org-export-pdf-remove-logfiles
(dolist (ext '("aux" "log" "out" "toc")) (dolist (ext '("aux" "idx" "log" "out" "toc"))
(setq file (concat base "." ext)) (setq file (concat base "." ext))
(and (file-exists-p file) (delete-file file)))) (and (file-exists-p file) (delete-file file))))
(message "Exporting to PDF...done") (message "Exporting to PDF...done")