[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/international/latexenc.el
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/international/latexenc.el |
Date: |
Fri, 27 Jan 2006 19:24:01 +0000 |
Index: emacs/lisp/international/latexenc.el
diff -u emacs/lisp/international/latexenc.el:1.12
emacs/lisp/international/latexenc.el:1.13
--- emacs/lisp/international/latexenc.el:1.12 Mon Jan 23 14:26:02 2006
+++ emacs/lisp/international/latexenc.el Fri Jan 27 19:24:00 2006
@@ -156,7 +156,8 @@
"")
".tex" ".ltx" ".dtx" ".drv"))
(if (and (null latexenc-main-file) ;Stop at first.
- (file-exists-p (concat file ext)))
+ (file-regular-p (concat file ext))
+ (file-readable-p (concat file ext)))
(setq latexenc-main-file (concat file ext)))))))
;; try tex-modes tex-guess-main-file
(when (and (not latexenc-dont-use-tex-guess-main-file-flag)
@@ -167,7 +168,7 @@
(setq latexenc-main-file (tex-guess-main-file)))))
;; if we found a master/main file get the coding system from it
(if (and latexenc-main-file
- (file-regular-p latexenc-main-file)
+ (file-regular-p latexenc-main-file)
(file-readable-p latexenc-main-file))
(let* ((latexenc-dont-use-tex-guess-main-file-flag t)
(latexenc-dont-use-TeX-master-flag t)