changeset 7536:efecdee78026

(tex-delete-last-temp-files): Don't fail on non-existent directory.
author Karl Heuer <kwzh@gnu.org>
date Wed, 18 May 1994 01:13:09 +0000
parents b7c1ff4944c6
children ad2451b94c28
files lisp/textmodes/tex-mode.el
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/textmodes/tex-mode.el	Tue May 17 23:43:15 1994 +0000
+++ b/lisp/textmodes/tex-mode.el	Wed May 18 01:13:09 1994 +0000
@@ -884,9 +884,10 @@
 If NOT-ALL is non-nil, save the `.dvi' file."
   (if tex-last-temp-file
       (let* ((dir (file-name-directory tex-last-temp-file))
-             (list (file-name-all-completions
-                    (file-name-nondirectory tex-last-temp-file) dir)))
-        (while list
+	     (list (and (file-directory-p dir)
+			(file-name-all-completions
+			 (file-name-nondirectory tex-last-temp-file) dir))))
+	(while list
 	  (if not-all
 	      (and
 	       ;; If arg is non-nil, don't delete the .dvi file.