Changing background color
kehoea at parhasard.net
Mon Nov 14 11:32:30 EST 2011
Ar an triú lá déag de mí na Samhain, scríobh Vin Shelton:
> Thanks. I was looking at that very code and should have tried out a
> similar patch on my own. It seems like the existing code represents a
> case of premature optimization; do you think there will be any
> performance implications?
I don’t think there will be, no; each face is only created once, and that’s
when this code is called.
> There's probably a better place to invalidate the cache, somewhere along
> the (set-face-background ...) execution path, don't you think?
Yes. Or don’t cache at all for the custom-face code.
An interesting thing is that since custom was written initially (for GNU
Emacs), GNU have integrated their multi-tty support, which poses the problem
we’ve been addressing in XEmacs-specific code all along, of specifiers with
different values for different devices. It may be that their version of this
code now is worth porting over.
‘Iodine deficiency was endemic in parts of the UK until, through what has been
described as “an unplanned and accidental public health triumph”, iodine was
added to cattle feed to improve milk production in the 1930s.’
(EN Pearce, Lancet, June 2011)
More information about the XEmacs-Beta