]> git.eshelyaron.com Git - emacs.git/commitdiff
(tex-delete-last-temp-files): Don't fail on non-existent directory.
authorKarl Heuer <kwzh@gnu.org>
Wed, 18 May 1994 01:13:09 +0000 (01:13 +0000)
committerKarl Heuer <kwzh@gnu.org>
Wed, 18 May 1994 01:13:09 +0000 (01:13 +0000)
lisp/textmodes/tex-mode.el

index b9c450c859f1a22b3d8623fb8c64b67950d89756..6803d21c50eb3577b104c7a46f57e2db8ead410d 100644 (file)
@@ -884,9 +884,10 @@ evaluates to a command string."
 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.