]> git.eshelyaron.com Git - emacs.git/commitdiff
(set-auto-coding): Exclude \n when matching the coding system name.
authorRichard M. Stallman <rms@gnu.org>
Fri, 15 May 1998 22:24:17 +0000 (22:24 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 15 May 1998 22:24:17 +0000 (22:24 +0000)
lisp/international/mule.el

index 831d281189721ee93aa9f4f71b90fa7011897dbc..281bc86d7f118b0af29dcac74c096a7afd4d915d 100644 (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)))