emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#17927: closed (24.3.92; Warnings for init file are


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#17927: closed (24.3.92; Warnings for init file are not visible after loading the desktop)
Date: Tue, 08 Jul 2014 09:19:02 +0000

Your message dated Tue, 08 Jul 2014 12:17:35 +0300
with message-id <address@hidden>
and subject line Re: bug#17927: 24.3.92; Warnings for init file are not visible 
after loading the desktop
has caused the debbugs.gnu.org bug report #17927,
regarding 24.3.92; Warnings for init file are not visible after loading the 
desktop
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
17927: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=17927
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 24.3.92; Warnings for init file are not visible after loading the desktop Date: Fri, 04 Jul 2014 02:22:19 +0300 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu)
When an error occurs while loading the init file, the
*Warnings* buffer is displayed but hidden immediately
when the desktop restores the previous window configuration
by running `desktop-read' from `after-init-hook'.

A possible solution is to postpone displaying the
*Warnings* buffer to the end of `after-init-hook':

=== modified file 'lisp/startup.el'
--- lisp/startup.el     2014-06-08 23:41:43 +0000
+++ lisp/startup.el     2014-07-03 23:15:54 +0000
@@ -1182,6 +1182,9 @@ (defun command-line ()
                (funcall inner)
                (setq init-file-had-error nil))
            (error
+            (add-hook
+             'after-init-hook
+             (lambda ()
             (display-warning
              'initialization
              (format "An error occurred while loading `%s':\n\n%s%s%s\n\n\
@@ -1193,7 +1196,8 @@ (defun command-line ()
                      (if (cdr error) ": " "")
                      (mapconcat (lambda (s) (prin1-to-string s t))
                                  (cdr error) ", "))
-             :warning)
+                :warning))
+             t)
             (setq init-file-had-error t))))
 
       (if (and deactivate-mark transient-mark-mode)




--- End Message ---
--- Begin Message --- Subject: Re: bug#17927: 24.3.92; Warnings for init file are not visible after loading the desktop Date: Tue, 08 Jul 2014 12:17:35 +0300 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu)
Version: 24.3.92

> When an error occurs while loading the init file, the
> *Warnings* buffer is displayed but hidden immediately
> when the desktop restores the previous window configuration
> by running `desktop-read' from `after-init-hook'.
>
> A possible solution is to postpone displaying the
> *Warnings* buffer to the end of `after-init-hook':

Fixed in the emacs-24 branch since it's a regression.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]