[Top][All Lists]

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

Re: set-face-attribute: apparent bug or doc error

From: ken
Subject: Re: set-face-attribute: apparent bug or doc error
Date: Wed, 26 Aug 2020 15:19:31 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0

On 8/26/20 8:58 AM, Tassilo Horn wrote:
> ken <> writes:
>> (set-face-attribute 'default nil :family "alegreya" :foundry "misc"
>> :slant normal :weight "medium" :height 258 :width "normal")
>          ^^^^^^
>> yields error:
>> Debugger entered--Lisp error: (void-variable normal)
>>   (set-face-attribute 'default nil :family "alegreya" :foundry "misc"
>> :slant normal :weight "medium" :height 258 :width "normal")
>> ....
>> The doc string, however, says:
>> ‘:slant’
>> VALUE specifies the slant of the font to use.  It must be one of the
>> symbols ‘italic’, ‘oblique’, ‘normal’, ‘reverse-italic’, or
>> ‘reverse-oblique’.
> Exactly, it must be a symbol, so use :slant 'normal.
> Bye,
> Tassilo
Great!  That did it!!

I wish the doc string would be more explicit, like "since the VALUE is a
symbol, it must begin with an apostrophe", pretty much what you and Eli
said... and/or give some example usages.  That would be a big help to
elisp dummies like myself.

Also, I copy-and-pasted the whole of the variables and values from a
line put into my ~/.gnu-emacs-custom automatically when I used the emacs
menu (Options -> Set Default Font) to configure emacs with a larger
font.  When it worked there, it surprised me when it didn't work when I
put it into my ~/.emacs ... the line in ~/.gnu-emacs-custom looks like this:

'(default ((t (:family "alegreya" :foundry "misc" :slant normal :weight
normal :height 158 :width normal)))))

Thanks again, guys.  My whole .emacs seems to be working now.

reply via email to

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