all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#17927: 24.3.92; Warnings for init file are not visible after loading the desktop
@ 2014-07-03 23:22 Juri Linkov
  2014-07-08  9:17 ` Juri Linkov
  0 siblings, 1 reply; 2+ messages in thread
From: Juri Linkov @ 2014-07-03 23:22 UTC (permalink / raw)
  To: 17927

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)






^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#17927: 24.3.92; Warnings for init file are not visible after loading the desktop
  2014-07-03 23:22 bug#17927: 24.3.92; Warnings for init file are not visible after loading the desktop Juri Linkov
@ 2014-07-08  9:17 ` Juri Linkov
  0 siblings, 0 replies; 2+ messages in thread
From: Juri Linkov @ 2014-07-08  9:17 UTC (permalink / raw)
  To: 17927-done

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.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-07-08  9:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-03 23:22 bug#17927: 24.3.92; Warnings for init file are not visible after loading the desktop Juri Linkov
2014-07-08  9:17 ` Juri Linkov

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.