Hrvoje Niksic wrote:
I noticed that buffer tabs (aka "gutter") don't inherit
the background
pixmap of the face they're supposed to be using. This makes them look
very ugly for us that use a background pixmap.
This is related to something I planned to investigate on a while ago.
The problem is that in XEmacs, the way to specify a background pixmap is
hacky: it's done by setting the default face's background pixmap, which plays
a particular role. This is semantically incorrect since what you want to do is
really use a background pixmap for the /whole/ text area, or even the whole
frame. Ideally, you should be able to do that, and to specify, say, another
background pixmap for the default face, which would be drawn under the
characters, but *only* under them.
As a consequence of the current design, there can be no inheritance of
the backgrond pixmap between X windows because (AFAIK) the corresponding X
window attribute is simply not used.
Although I'm not very positive about this, there could be a potential
gain of efficiency in redisplay if we used background pixmaps in the X sense
(meaning for instance that XClearWindow and stuff would actually redraw the
pixmap). I'm not completely sure, however, that there would be a substantial
gain compared to clearing the areas manually (by filling them with the
pixmap) as it is done now. It would at least save us some GC context switches.
--
/ / _ _ Didier Verna
http://www.inf.enst.fr/~verna/
- / / - / / /_/ / EPITA / LRDE mailto:didier@epita.fr
/_/ / /_/ / /__ / 14-16 rue Voltaire Tel. +33 (1) 44 08 01 77
94276 Kremlin-Bicêtre cedex Fax. +33 (1) 44 08 01 99