]> code.delx.au - gnu-emacs/commitdiff
* lisp/startup.el (normal-top-level): Use delay-warning. (Bug#20792)
authorGlenn Morris <rgm@gnu.org>
Fri, 12 Jun 2015 01:12:29 +0000 (21:12 -0400)
committerGlenn Morris <rgm@gnu.org>
Fri, 12 Jun 2015 01:12:29 +0000 (21:12 -0400)
lisp/startup.el

index 370e7aee771e726875967687aa2691d045a07f5d..e614466aa23ba7628475167cfd44a46742f8e3e4 100644 (file)
@@ -612,11 +612,7 @@ It is the default value of the variable `top-level'."
                        charset-map-path))))
     (if default-directory
        (setq default-directory (abbreviate-file-name default-directory))
-      ;; FIXME this does not get shown.
-      ;; If after (command-line), it is shown, but if command-line
-      ;; changed the buffer (eg found a file), it applies to that
-      ;; buffer, not *scratch*.
-      (display-warning 'initialization "Error setting default-directory"))
+      (delay-warning 'initialization "Error setting default-directory"))
     (let ((old-face-font-rescale-alist face-font-rescale-alist))
       (unwind-protect
          (command-line)