]> git.eshelyaron.com Git - emacs.git/commitdiff
(command-line-1): Improve previous change.
authorRichard M. Stallman <rms@gnu.org>
Sat, 12 Feb 1994 20:14:29 +0000 (20:14 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 12 Feb 1994 20:14:29 +0000 (20:14 +0000)
lisp/startup.el

index ae34c9db10e8b006e971e3ea8080df16841d41ca..5d1d7574a28af5a440e914477baa009ccd99d71e 100644 (file)
@@ -344,12 +344,14 @@ this variable, if non-nil; 2. `~/.emacs'; 3. `default.el'.")
                       (insert-file-contents user-init-file)
                       (re-search-forward
                        (concat
-                        "(setq inhibit-startup-echo-area-message[ \t]+"
-                        (prin1-to-string
-                         (if (string= init-file-user "")
-                             (user-login-name)
-                           init-file-user))
-                        "[ \t]*)")
+                        "([ \t\n]*setq[ \t\n]+"
+                        "inhibit-startup-echo-area-message[ \t\n]+"
+                        (regexp-quote
+                         (prin1-to-string
+                          (if (string= init-file-user "")
+                              (user-login-name)
+                            init-file-user)))
+                        "[ \t\n]*)")
                        nil t))
                   (error nil))
               (kill-buffer buffer))))