Mercurial > emacs
comparison lisp/international/latexenc.el @ 68421:f8e7e79d2ca2
Undo last change.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Fri, 27 Jan 2006 19:32:05 +0000 |
parents | c72649ca09b5 |
children | 2552d32034c7 |
comparison
equal
deleted
inserted
replaced
68420:f2320c45a0ff | 68421:f8e7e79d2ca2 |
---|---|
154 (dolist (ext `("" ,(if (boundp 'TeX-default-extension) | 154 (dolist (ext `("" ,(if (boundp 'TeX-default-extension) |
155 (concat "." TeX-default-extension) | 155 (concat "." TeX-default-extension) |
156 "") | 156 "") |
157 ".tex" ".ltx" ".dtx" ".drv")) | 157 ".tex" ".ltx" ".dtx" ".drv")) |
158 (if (and (null latexenc-main-file) ;Stop at first. | 158 (if (and (null latexenc-main-file) ;Stop at first. |
159 (file-regular-p (concat file ext)) | 159 (file-exists-p (concat file ext))) |
160 (file-readable-p (concat file ext))) | |
161 (setq latexenc-main-file (concat file ext))))))) | 160 (setq latexenc-main-file (concat file ext))))))) |
162 ;; try tex-modes tex-guess-main-file | 161 ;; try tex-modes tex-guess-main-file |
163 (when (and (not latexenc-dont-use-tex-guess-main-file-flag) | 162 (when (and (not latexenc-dont-use-tex-guess-main-file-flag) |
164 (not latexenc-main-file)) | 163 (not latexenc-main-file)) |
165 ;; Use a separate `when' so the byte-compiler sees the fboundp. | 164 ;; Use a separate `when' so the byte-compiler sees the fboundp. |