Suggested by David Kastrup <dak@gnu.org> and Stefan Monnier
<monnier@iro.umontreal.ca>.
+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.
;; 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)