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:
parent
a7e4cdde61
commit
82d6c19f8a
1 changed files with 1 additions and 1 deletions
|
|
@ -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)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue