Commit e450a16a authored by Reiner Steib's avatar Reiner Steib
Browse files

(latexenc-find-file-coding-system): Add file-regular-p check.

parent af71d4c0
2006-01-23 Arne J,Ax(Brgensen <>
* international/latexenc.el (latexenc-find-file-coding-system):
Add file-regular-p check.
2006-01-22 Stefan Monnier <>
* simple.el (clone-buffer): Don't show the new buffer in the same
;;; latexenc.el --- guess correct coding system in LaTeX files
;; Copyright (C) 2005 Free Software Foundation, Inc.
;; Copyright (C) 2005, 2006 Free Software Foundation, Inc.
;; Author: Arne J,Ax(Brgensen <>
;; Keywords: mule, coding system, latex
......@@ -167,6 +167,7 @@ coding system names is determined from `latex-inputenc-coding-alist'."
(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-readable-p latexenc-main-file))
(let* ((latexenc-dont-use-tex-guess-main-file-flag t)
(latexenc-dont-use-TeX-master-flag t)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment