GNU bug report logs - #17927
24.3.92; Warnings for init file are not visible after loading the desktop

Previous Next

Package: emacs;

Reported by: Juri Linkov <juri <at> jurta.org>

Date: Thu, 3 Jul 2014 23:25:01 UTC

Severity: normal

Fixed in version 24.3.92

Done: Juri Linkov <juri <at> jurta.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 17927 in the body.
You can then email your comments to 17927 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#17927; Package emacs. (Thu, 03 Jul 2014 23:25:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Juri Linkov <juri <at> jurta.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 03 Jul 2014 23:25:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> jurta.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3.92;
 Warnings for init file are not visible after loading the desktop
Date: Fri, 04 Jul 2014 02:22:19 +0300
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)





Reply sent to Juri Linkov <juri <at> jurta.org>:
You have taken responsibility. (Tue, 08 Jul 2014 09:19:02 GMT) Full text and rfc822 format available.

Notification sent to Juri Linkov <juri <at> jurta.org>:
bug acknowledged by developer. (Tue, 08 Jul 2014 09:19:03 GMT) Full text and rfc822 format available.

Message #10 received at 17927-done <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> jurta.org>
To: 17927-done <at> debbugs.gnu.org
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
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.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 05 Aug 2014 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 9 years and 276 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.