1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-30 00:51:50 -08:00

(set-auto-coding): Exclude \n when matching the coding system name.

This commit is contained in:
Richard M. Stallman 1998-05-15 22:24:17 +00:00
parent a7e4cdde61
commit 82d6c19f8a

View file

@ -819,7 +819,7 @@ function by default."
(substring string
(match-beginning 2) (match-end 2))))
(re-coding (concat "^" prefix
"coding[ \t]*:[ \t]*\\([^ \t]+\\)[ \t]*"
"coding[ \t]*:[ \t]*\\([^ \t\n]+\\)[ \t]*"
suffix "$"))
(re-end (concat "^" prefix "end *:[ \t]*" suffix "$"))
(limit (or (string-match re-end string idx) len)))