[Top][All Lists]

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

Re: problem of released-button style mode-line

From: Miles Bader
Subject: Re: problem of released-button style mode-line
Date: Fri, 20 Oct 2000 18:30:37 +0900 (JST)

Okay, since this kind of kluge is already used in various places, I
decided it would be better to at least centralize it.

I checked in a new function called `mode-line-window-height-fudge',
which returns 0 or 1 depending on what fudge factor should be added to a
window height.  On a tty, it returns 0.  On a graphic display, it first
checks the value of a customizable variable (also called
`mode-line-window-height-fudge'), and if that is non-nil just returns
it.  Otherwise, it looks at the mode-line face to see if there are any
suspicious attributes, and if there are, returns 1.

If you just use :inverse-video, it should return 0.

When the time comes that this kind of hackery is unnecessary, it should
also be a convenient thing to grep for to remove it.

Flame away...

Love is a snowmobile racing across the tundra.  Suddenly it flips over,
pinning you underneath.  At night the ice weasels come.  --Nietzsche

reply via email to

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