# HG changeset patch # User Lute Kamstra # Date 1114945309 0 # Node ID 935929fcdb78013b725697c32c9c73af3a953503 # Parent 8bd1a070b6884d4ec7dfab1956501a5dcf473513 (latexenc-find-file-coding-system): Fix regular expressions. Suggested by David Kastrup and Stefan Monnier . diff -r 8bd1a070b688 -r 935929fcdb78 lisp/international/latexenc.el --- a/lisp/international/latexenc.el Sun May 01 07:07:19 2005 +0000 +++ b/lisp/international/latexenc.el Sun May 01 11:01:49 2005 +0000 @@ -121,8 +121,8 @@ ;; 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)