From: Richard M. Stallman Date: Fri, 15 May 1998 22:24:17 +0000 (+0000) Subject: (set-auto-coding): Exclude \n when matching the coding system name. X-Git-Tag: emacs-20.3~994 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=82d6c19f8a7b93737f38221b7b41cc179d3b9bb0;p=emacs.git (set-auto-coding): Exclude \n when matching the coding system name. --- 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)))