unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: ken <gebser@mousecar.com>
To: help-gnu-emacs@gnu.org
Subject: Re: set-face-attribute: apparent bug or doc error
Date: Wed, 26 Aug 2020 15:19:31 -0400	[thread overview]
Message-ID: <cb724450-614d-326d-9536-fe35bcf08002@mousecar.com> (raw)
In-Reply-To: <87eent5ztw.fsf@gnu.org>

On 8/26/20 8:58 AM, Tassilo Horn wrote:
> ken <gebser@mousecar.com> 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	other threads:[~2020-08-26 19:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-26 12:34 set-face-attribute: apparent bug or doc error ken
2020-08-26 12:41 ` Eli Zaretskii
2020-08-26 12:58 ` Tassilo Horn
2020-08-26 19:19   ` ken [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cb724450-614d-326d-9536-fe35bcf08002@mousecar.com \
    --to=gebser@mousecar.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).