From unknown Fri Jun 20 19:52:44 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17927: 24.3.92; Warnings for init file are not visible after loading the desktop Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Jul 2014 23:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 17927 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 17927@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.140442984830275 (code B ref -1); Thu, 03 Jul 2014 23:25:01 +0000 Received: (at submit) by debbugs.gnu.org; 3 Jul 2014 23:24:08 +0000 Received: from localhost ([127.0.0.1]:42102 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X2qMJ-0007sC-Dh for submit@debbugs.gnu.org; Thu, 03 Jul 2014 19:24:07 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37612) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X2qMH-0007rd-40 for submit@debbugs.gnu.org; Thu, 03 Jul 2014 19:24:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X2qM2-0007JO-5c for submit@debbugs.gnu.org; Thu, 03 Jul 2014 19:23:59 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:59480) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2qM2-0007JK-2O for submit@debbugs.gnu.org; Thu, 03 Jul 2014 19:23:50 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39334) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2qLu-0007r1-Gj for bug-gnu-emacs@gnu.org; Thu, 03 Jul 2014 19:23:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X2qLn-0007Iz-08 for bug-gnu-emacs@gnu.org; Thu, 03 Jul 2014 19:23:42 -0400 Received: from alc-vshost7.dreamhost.com ([69.163.216.107]:50219 helo=ps18281.dreamhostps.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2qLm-0007Is-Qf for bug-gnu-emacs@gnu.org; Thu, 03 Jul 2014 19:23:34 -0400 Received: from localhost.jurta.org (ps18281.dreamhostps.com [69.163.222.226]) by ps18281.dreamhostps.com (Postfix) with ESMTP id C1873348328E36 for ; Thu, 3 Jul 2014 16:23:32 -0700 (PDT) From: Juri Linkov Organization: JURTA Date: Fri, 04 Jul 2014 02:22:19 +0300 Message-ID: <87mwcq3u50.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) 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) From unknown Fri Jun 20 19:52:44 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Juri Linkov Subject: bug#17927: closed (Re: bug#17927: 24.3.92; Warnings for init file are not visible after loading the desktop) Message-ID: References: <87mwck2or4.fsf@mail.jurta.org> <87mwcq3u50.fsf@mail.jurta.org> X-Gnu-PR-Message: they-closed 17927 X-Gnu-PR-Package: emacs Reply-To: 17927@debbugs.gnu.org Date: Tue, 08 Jul 2014 09:19:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1404811143-10182-1" This is a multi-part message in MIME format... ------------=_1404811143-10182-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #17927: 24.3.92; Warnings for init file are not visible after loading the d= esktop which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 17927@debbugs.gnu.org. --=20 17927: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D17927 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1404811143-10182-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 17927-done) by debbugs.gnu.org; 8 Jul 2014 09:18:18 +0000 Received: from localhost ([127.0.0.1]:46584 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X4RXV-0002cU-Em for submit@debbugs.gnu.org; Tue, 08 Jul 2014 05:18:18 -0400 Received: from alc-vshost7.dreamhost.com ([69.163.216.107]:40637 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X4RXT-0002cL-0M for 17927-done@debbugs.gnu.org; Tue, 08 Jul 2014 05:18:15 -0400 Received: from localhost.jurta.org (ps18281.dreamhostps.com [69.163.222.226]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 11AFF317A6C2D5 for <17927-done@debbugs.gnu.org>; Tue, 8 Jul 2014 02:18:12 -0700 (PDT) From: Juri Linkov To: 17927-done@debbugs.gnu.org Subject: Re: bug#17927: 24.3.92; Warnings for init file are not visible after loading the desktop Organization: JURTA References: <87mwcq3u50.fsf@mail.jurta.org> Date: Tue, 08 Jul 2014 12:17:35 +0300 In-Reply-To: <87mwcq3u50.fsf@mail.jurta.org> (Juri Linkov's message of "Fri, 04 Jul 2014 02:22:19 +0300") Message-ID: <87mwck2or4.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 2.4 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: 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': [...] Content analysis details: (2.4 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.6 RCVD_IN_BRBL_LASTEXT RBL: RCVD_IN_BRBL_LASTEXT [69.163.216.107 listed in bb.barracudacentral.org] 0.7 RCVD_IN_XBL RBL: Received via a relay in Spamhaus XBL [69.163.216.107 listed in zen.spamhaus.org] X-Debbugs-Envelope-To: 17927-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.4 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: 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': [...] Content analysis details: (2.4 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.7 RCVD_IN_XBL RBL: Received via a relay in Spamhaus XBL [69.163.216.107 listed in zen.spamhaus.org] 1.6 RCVD_IN_BRBL_LASTEXT RBL: RCVD_IN_BRBL_LASTEXT [69.163.216.107 listed in bb.barracudacentral.org] 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. ------------=_1404811143-10182-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 3 Jul 2014 23:24:08 +0000 Received: from localhost ([127.0.0.1]:42102 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X2qMJ-0007sC-Dh for submit@debbugs.gnu.org; Thu, 03 Jul 2014 19:24:07 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37612) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X2qMH-0007rd-40 for submit@debbugs.gnu.org; Thu, 03 Jul 2014 19:24:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X2qM2-0007JO-5c for submit@debbugs.gnu.org; Thu, 03 Jul 2014 19:23:59 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:59480) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2qM2-0007JK-2O for submit@debbugs.gnu.org; Thu, 03 Jul 2014 19:23:50 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39334) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2qLu-0007r1-Gj for bug-gnu-emacs@gnu.org; Thu, 03 Jul 2014 19:23:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X2qLn-0007Iz-08 for bug-gnu-emacs@gnu.org; Thu, 03 Jul 2014 19:23:42 -0400 Received: from alc-vshost7.dreamhost.com ([69.163.216.107]:50219 helo=ps18281.dreamhostps.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2qLm-0007Is-Qf for bug-gnu-emacs@gnu.org; Thu, 03 Jul 2014 19:23:34 -0400 Received: from localhost.jurta.org (ps18281.dreamhostps.com [69.163.222.226]) by ps18281.dreamhostps.com (Postfix) with ESMTP id C1873348328E36 for ; Thu, 3 Jul 2014 16:23:32 -0700 (PDT) From: Juri Linkov To: bug-gnu-emacs@gnu.org Subject: 24.3.92; Warnings for init file are not visible after loading the desktop Organization: JURTA Date: Fri, 04 Jul 2014 02:22:19 +0300 Message-ID: <87mwcq3u50.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) 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) ------------=_1404811143-10182-1--