emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems with lwarn at startup


From: Lennart Borgman
Subject: Re: Problems with lwarn at startup
Date: Thu, 14 Dec 2006 02:08:30 +0100
User-agent: Thunderbird 1.5.0.8 (Windows/20061025)

Juanma Barranquero wrote:
On 12/13/06, Richard Stallman <address@hidden> 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?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]