changeset 22083:3a0152d73914

(set-auto-coding): Exclude \n when matching the coding system name.
author Richard M. Stallman <rms@gnu.org>
date Fri, 15 May 1998 22:24:17 +0000
parents 84bcdbc46d71
children 08f31e440c92
files lisp/international/mule.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/international/mule.el	Fri May 15 22:23:01 1998 +0000
+++ b/lisp/international/mule.el	Fri May 15 22:24:17 1998 +0000
@@ -819,7 +819,7 @@
 			  (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)))