]> git.eshelyaron.com Git - emacs.git/commitdiff
(set-auto-coding): Allow whitespace before
authorEli Zaretskii <eliz@gnu.org>
Sun, 1 Aug 1999 10:20:43 +0000 (10:20 +0000)
committerEli Zaretskii <eliz@gnu.org>
Sun, 1 Aug 1999 10:20:43 +0000 (10:20 +0000)
and after the "variable: value" pair.

lisp/international/mule.el

index bcc4aba74c9c11464c39132a75db852c0a293a28..512d2addcf63effeafcb8acedf5b39f6ff2a7491 100644 (file)
@@ -989,16 +989,18 @@ function by default."
                ;; in its line.
                (let* ((prefix (regexp-quote (match-string 1)))
                       (suffix (regexp-quote (match-string 2)))
-                      (re-coding (concat
-                                  "^" prefix
-                                  "coding[ \t]*:[ \t]*\\([^ \t]+\\)[ \t]*"
-                                  suffix "$"))
-                      (re-unibyte (concat
-                                   "^" prefix
-                                   "unibyte[ \t]*:[ \t]*\\([^ \t]+\\)[ \t]*"
-                                   suffix "$"))
-                      (re-end (concat
-                               "^" prefix "end *:[ \t]*" suffix "$"))
+                      (re-coding
+                       (concat
+                        "^" prefix
+                        "[ \t]*coding[ \t]*:[ \t]*\\([^ \t]+\\)[ \t]*"
+                        suffix "$"))
+                      (re-unibyte
+                       (concat
+                        "^" prefix
+                        "[ \t]*unibyte[ \t]*:[ \t]*\\([^ \t]+\\)[ \t]*"
+                        suffix "$"))
+                      (re-end
+                       (concat "^" prefix "[ \t]*end *:[ \t]*" suffix "$"))
                       (pos (point)))
                  (re-search-forward re-end tail-end 'move)
                  (setq tail-end (point))