diff options
| author | Lute Kamstra | 2005-05-01 11:05:08 +0000 |
|---|---|---|
| committer | Lute Kamstra | 2005-05-01 11:05:08 +0000 |
| commit | b7f29772f5818da4d7d69ae5e85e48052f390038 (patch) | |
| tree | 576bffeacdd019b9de35bc5f96f5d542bf1739f5 /lisp | |
| parent | 6544b8f63139ca69e16c52add0c05db9ab4eb5eb (diff) | |
| download | emacs-b7f29772f5818da4d7d69ae5e85e48052f390038.tar.gz emacs-b7f29772f5818da4d7d69ae5e85e48052f390038.zip | |
(latexenc-find-file-coding-system): Fix regular expressions.
Suggested by David Kastrup <dak@gnu.org> and Stefan Monnier
<monnier@iro.umontreal.ca>.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/international/latexenc.el | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8c6d7a14df8..45c616e87c5 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2005-05-01 Lute Kamstra <lute@gnu.org> | ||
| 2 | |||
| 3 | * international/latexenc.el (latexenc-find-file-coding-system): | ||
| 4 | Fix regular expressions. Suggested by David Kastrup <dak@gnu.org> | ||
| 5 | and Stefan Monnier <monnier@iro.umontreal.ca>. | ||
| 6 | |||
| 1 | 2005-05-01 Nick Roberts <nickrob@snap.net.nz> | 7 | 2005-05-01 Nick Roberts <nickrob@snap.net.nz> |
| 2 | 8 | ||
| 3 | * subr.el (string-to-int): Make obsolete. | 9 | * subr.el (string-to-int): Make obsolete. |
diff --git a/lisp/international/latexenc.el b/lisp/international/latexenc.el index efd29177b42..1fd04b55919 100644 --- a/lisp/international/latexenc.el +++ b/lisp/international/latexenc.el | |||
| @@ -121,8 +121,8 @@ coding system names is determined from `latex-inputenc-coding-alist'." | |||
| 121 | ;; try to find the coding system in this file | 121 | ;; try to find the coding system in this file |
| 122 | (goto-char (point-min)) | 122 | (goto-char (point-min)) |
| 123 | (if (or | 123 | (if (or |
| 124 | (re-search-forward "^[^%$]*\\inputencoding{\\(.*\\)}" nil t) | 124 | (re-search-forward "^[^%\n]*\\\\inputencoding{\\(.*\\)}" nil t) |
| 125 | (re-search-forward "^[^%$]*\\usepackage\\[\\(.*\\)\\]{inputenc}" nil t)) | 125 | (re-search-forward "^[^%\n]*\\\\usepackage\\[\\(.*\\)\\]{inputenc}" nil t)) |
| 126 | (let* ((match (match-string 1)) | 126 | (let* ((match (match-string 1)) |
| 127 | (sym (intern match))) | 127 | (sym (intern match))) |
| 128 | (when (latexenc-inputenc-to-coding-system match) | 128 | (when (latexenc-inputenc-to-coding-system match) |