Commit b7f29772 authored by Lute Kamstra's avatar Lute Kamstra
Browse files

(latexenc-find-file-coding-system): Fix regular expressions.

Suggested by David Kastrup <dak@gnu.org> and Stefan Monnier
<monnier@iro.umontreal.ca>.
parent 6544b8f6
2005-05-01 Lute Kamstra <lute@gnu.org>
* international/latexenc.el (latexenc-find-file-coding-system):
Fix regular expressions. Suggested by David Kastrup <dak@gnu.org>
and Stefan Monnier <monnier@iro.umontreal.ca>.
2005-05-01 Nick Roberts <nickrob@snap.net.nz>
 
* subr.el (string-to-int): Make obsolete.
......
......@@ -121,8 +121,8 @@ coding system names is determined from `latex-inputenc-coding-alist'."
;; try to find the coding system in this file
(goto-char (point-min))
(if (or
(re-search-forward "^[^%$]*\\inputencoding{\\(.*\\)}" nil t)
(re-search-forward "^[^%$]*\\usepackage\\[\\(.*\\)\\]{inputenc}" nil t))
(re-search-forward "^[^%\n]*\\\\inputencoding{\\(.*\\)}" nil t)
(re-search-forward "^[^%\n]*\\\\usepackage\\[\\(.*\\)\\]{inputenc}" nil t))
(let* ((match (match-string 1))
(sym (intern match)))
(when (latexenc-inputenc-to-coding-system match)
......
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