*** empty log message ***
[bpt/emacs.git] / lisp / textmodes / tex-mode.el
index 06e26d2..ffb0606 100644 (file)
@@ -1,7 +1,7 @@
 ;;; tex-mode.el --- TeX, LaTeX, and SliTeX mode commands -*- coding: utf-8 -*-
 
 ;; Copyright (C) 1985, 1986, 1989, 1992, 1994, 1995, 1996, 1997, 1998
-;;   1999, 2001, 2002, 2003, 2004, 2005, 2006, 2007
+;;   1999, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
 ;;   Free Software Foundation, Inc.
 
 ;; Maintainer: FSF
@@ -1932,7 +1932,8 @@ FILE is typically the output DVI or PDF file."
                  (not (file-symlink-p f)))
             (unless (string-match ignored-dirs-re f)
               (setq files (nconc
-                           (directory-files f t tex-input-files-re)
+                            (ignore-errors ;Not readable or something.
+                              (directory-files f t tex-input-files-re))
                            files)))
           (when (file-newer-than-file-p f file)
             (setq uptodate nil)))))