lisp/startup.el (command-line): Use delayed warning for "_emacs".
authorJuanma Barranquero <lekktu@gmail.com>
Thu, 28 Apr 2011 22:58:40 +0000 (00:58 +0200)
committerJuanma Barranquero <lekktu@gmail.com>
Thu, 28 Apr 2011 22:58:40 +0000 (00:58 +0200)
lisp/ChangeLog
lisp/startup.el

index 835fc72..58bff4e 100644 (file)
@@ -1,3 +1,8 @@
+2011-04-28  Juanma Barranquero  <lekktu@gmail.com>
+
+       * startup.el (command-line): When warning about "_emacs", use a
+       delayed warning to allow the user to filter it out.
+
 2011-04-28  Deniz Dogan  <deniz@dogan.se>
 
        * net/rcirc.el (rcirc-handler-353): Fix bug for channels which the
index 3285d47..14f4c78 100644 (file)
@@ -1027,10 +1027,9 @@ opening the first frame (e.g. open a connection to an X server).")
                              "~/.emacs")
                             ((directory-files "~" nil "^_emacs\\(\\.elc?\\)?$")
                              ;; Also support _emacs for compatibility, but warn about it.
-                             (display-warning
-                              'initialization
-                              "`_emacs' init file is deprecated, please use `.emacs'"
-                              :warning)
+                             (push '(initialization
+                                     "`_emacs' init file is deprecated, please use `.emacs'")
+                                   delayed-warnings-list)
                              "~/_emacs")
                             (t ;; But default to .emacs if _emacs does not exist.
                              "~/.emacs"))))