From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: Problems with lwarn at startup Date: Thu, 14 Dec 2006 02:08:30 +0100 Message-ID: <4580A40E.60609@student.lu.se> References: <457F63FF.6080902@student.lu.se> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1166058540 23261 80.91.229.10 (14 Dec 2006 01:09:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 14 Dec 2006 01:09:00 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 14 02:08:57 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1Guf5e-00047l-Nc for ged-emacs-devel@m.gmane.org; Thu, 14 Dec 2006 02:08:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Guf5e-00018L-8v for ged-emacs-devel@m.gmane.org; Wed, 13 Dec 2006 20:08:50 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Guf5S-00017E-IS for emacs-devel@gnu.org; Wed, 13 Dec 2006 20:08:38 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Guf5Q-00016d-1i for emacs-devel@gnu.org; Wed, 13 Dec 2006 20:08:37 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Guf5P-00016a-TO for emacs-devel@gnu.org; Wed, 13 Dec 2006 20:08:35 -0500 Original-Received: from [80.76.149.213] (helo=ch-smtp02.sth.basefarm.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1Guf5O-0007jy-NO; Wed, 13 Dec 2006 20:08:35 -0500 Original-Received: from c83-254-145-24.bredband.comhem.se ([83.254.145.24]:62413 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.63) (envelope-from ) id 1Guf5M-00063o-9V; Thu, 14 Dec 2006 02:08:33 +0100 User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) Original-To: Juanma Barranquero In-Reply-To: X-Antivirus: avast! (VPS 0658-0, 2006-12-13), Outbound message X-Antivirus-Status: Clean X-Scan-Result: No virus found in message 1Guf5M-00063o-9V. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1Guf5M-00063o-9V d83bd10ee3889780c46032fc5e8b9ab5 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:63695 Archived-At: Juanma Barranquero wrote: > On 12/13/06, Richard Stallman wrote: > >> This is important to debug, since we're talking about using lwarn >> during startup. Would someone please fix it and ack? > > When Lennart answers "n", lwarn splits the frame into two windows > (using the lower one for the warning). startup.el contains a function > `use-fancy-splash-screens-p' which decides whether to use "fancy" > (graphic) or "normal" (text) splash screen according to several > criteria, among them the following: > > (> window-height (+ image-height 19)) > > If you try starting Emacs with the following .emacs.el: > > ;;;;;;;;;;;;;;;;; .emacs.el ;;;;;;;;;;;;;;;;; > (defun use-fancy-splash-screens-p () t) > (unless (y-or-n-p "Some question ") > (lwarn '(test) :warning "Test warning")) > ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; > > you won't see the "bug". Maybe use frame-height instead of window-height?