help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Color theme: weight or bold?


From: Johan Bockgård
Subject: Re: Color theme: weight or bold?
Date: Wed, 08 Dec 2010 15:22:54 -0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Sébastien Vauban <wxhgmqzgwmuf@spammotel.com> writes:

> In the color themes, I often see
>
>     :weight bold
>
> and sometimes
>
>     :bold t
>
> What is the best one, regarding long-term compatibility?  Is there a good
> reason to have two different notations?

(info "(elisp) Face Attributes")

     For compatibility with Emacs 20, you can also specify values for two
  "fake" face attributes: `:bold' and `:italic'.  Their values must be
  either `t' or `nil'; a value of `unspecified' is not allowed.  Setting
  `:bold' to `t' is equivalent to setting the `:weight' attribute to
  `bold', and setting it to `nil' is equivalent to setting `:weight' to
  `normal'.  Setting `:italic' to `t' is equivalent to setting the
  `:slant' attribute to `italic', and setting it to `nil' is equivalent
  to setting `:slant' to `normal'.



reply via email to

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