From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: How to show *Warnings* buffer at startup time? [Re: Pretest next week] Date: Fri, 15 May 2009 13:00:36 +0900 Message-ID: References: <8763g39jwd.fsf@cyd.mit.edu> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1242360052 13898 80.91.229.12 (15 May 2009 04:00:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 May 2009 04:00:52 +0000 (UTC) Cc: emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 15 06:00:45 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1M4obF-0006XC-En for ged-emacs-devel@m.gmane.org; Fri, 15 May 2009 06:00:45 +0200 Original-Received: from localhost ([127.0.0.1]:45935 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M4obE-0000h4-P9 for ged-emacs-devel@m.gmane.org; Fri, 15 May 2009 00:00:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M4obA-0000gl-1L for emacs-devel@gnu.org; Fri, 15 May 2009 00:00:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M4ob5-0000gN-As for emacs-devel@gnu.org; Fri, 15 May 2009 00:00:39 -0400 Original-Received: from [199.232.76.173] (port=52418 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M4ob5-0000gK-3i for emacs-devel@gnu.org; Fri, 15 May 2009 00:00:35 -0400 Original-Received: from mx1.aist.go.jp ([150.29.246.133]:36830) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M4ob4-0003Dr-AT for emacs-devel@gnu.org; Fri, 15 May 2009 00:00:34 -0400 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id n4F40Uvm008454; Fri, 15 May 2009 13:00:30 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp1.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id n4F40U15003796; Fri, 15 May 2009 13:00:30 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp1.aist.go.jp with ESMTP id n4F40RKd015505; Fri, 15 May 2009 13:00:27 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1M4ob6-0007Ob-TA; Fri, 15 May 2009 13:00:36 +0900 In-reply-to: <8763g39jwd.fsf@cyd.mit.edu> (message from Chong Yidong on Thu, 14 May 2009 22:31:30 -0400) X-detected-operating-system: by monty-python.gnu.org: Solaris 9 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:110881 Archived-At: In article <8763g39jwd.fsf@cyd.mit.edu>, Chong Yidong writes: > Hi all, > I'm planning to make the 23.0.94 pretest next Wednesday, the 20th. > The release seems to be coming along nicely; the font code seems to have > converged at last (with the exception of #2667), and most of the > documentation work is now done. I'm thinking of cutting the branch > after the next pretest, so that some of the pent-up patches can start > being applied. I have not, however, discussed this in detail with > Stefan yet. If you like, please feel free to weigh in with opinions > and/or concerns about the release process. I've just noticed that the subject issure is not yet settled. I think this is not a serious one but the attached patch to startup.el is simple and it helps people identify a fontset problem earlier. --- Kenichi Handa handa@m17n.org In article , Kenichi Handa writes: > I'm going to change create-fontset-from-x-resource > (fontset.el) as this: > @@ -1049,8 +1058,11 @@ > (while (setq fontset-spec (x-get-resource (format "fontset-%d" idx) > (format "Fontset-%d" idx))) > (condition-case nil > - (create-fontset-from-fontset-spec fontset-spec t 'noerror) > - (error (message "Fontset-%d: invalid specification in X resource" idx))) > + (create-fontset-from-fontset-spec fontset-spec t) > + (error (display-warning > + 'initialization > + (format "Fontset-%d: invalid specification in X resource" idx) > + :warning))) > (setq idx (1+ idx))))) > ;; > But the *Warnings* buffer doesn't show up at startup time > even if create-fontset-from-fontset-spec causes an error. > Could someone tell me what is wrong with the above change? > If it is because the X frame is not yet created at that > time, don't we need something like the attached patch? > --- > Kenichi Handa > handa@m17n.org > --- startup.el.~1.527.~ 2009-02-23 09:51:02.000000000 +0900 > +++ startup.el 2009-03-18 22:16:35.000000000 +0900 > @@ -1235,7 +1235,13 @@ > (if (and (boundp 'x-session-previous-id) > (stringp x-session-previous-id)) > (with-no-warnings > - (emacs-session-restore x-session-previous-id)))) > + (emacs-session-restore x-session-previous-id))) > + > + (let ((warning-buf (get-buffer "*Warnings*"))) > + (if (and warning-buf > + (not (get-buffer-window warning-buf)) > + (> (buffer-size warning-buf) 0)) > + (display-buffer warning-buf)))) > (defcustom initial-scratch-message (purecopy "\ > ;; This buffer is for notes you don't want to save, and for Lisp evaluation.