emacs-devel
[Top][All Lists]
Advanced

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

Re: Font slants


From: Stefan Monnier
Subject: Re: Font slants
Date: Sat, 05 Apr 2008 21:45:46 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

>>> one possibility is to change font-slant-table etc into defconsts and
>>> move them from faces.el into cus-face.el.  Is it even useful to
>>> customize these alists?
>> 
>> ...
>> 
>>> (defcustom font-swidth-table
>>> '((ultracondensed . 50) (ultra-condensed . 51)
>>> ...
>> 
>>> Why do we have a practically indistinguishable difference between
>>> ultracondensed and ultra-condensed?  Similarly with several other
>>> symbols in these alists.
>> 
>> Try to change it (or check vc-annotate) to see why: it needs to be
>> bijective (ie. reversible).

> This is another reason why these alists should be constants instead of
> customizable, IMO.  As defcustoms, it would seem reasonable for the user
> to provide arbitrary values for these alists.

That's OK: the bijectivity is enforced, so if the user tries to change
it wrong, she'll immediately get an error,


        Stefan




reply via email to

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