From 82d6c19f8a7b93737f38221b7b41cc179d3b9bb0 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Fri, 15 May 1998 22:24:17 +0000 Subject: [PATCH] (set-auto-coding): Exclude \n when matching the coding system name. --- lisp/international/mule.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/international/mule.el b/lisp/international/mule.el index 831d2811897..281bc86d7f1 100644 --- a/lisp/international/mule.el +++ b/lisp/international/mule.el @@ -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))) -- 2.39.2