Subject: Re: bug#19903: 24.4; Emacs fails to save enriched buffer with error message `wrong-type-argument symbolp "bold"'

From: Eli Zaretskii <[email-masked]>
Date: Fri, 20 Feb 2015 12:03:15 +0200

> Date: Fri, 20 Feb 2015 06:51:54 -0200
> From: Jorge <[email-masked]>
> Cc: [email-masked]
> 
> On Fri, Feb 20, 2015 at 6:27 AM, Eli Zaretskii <[email-masked]> wrote:
> > That's a cockpit error: the marked line should have said
> >
> >   (facemenu-set-face 'bold 1 2)
> >
> > instead.  Then this script will work and do what you expect.
> Thank you very much for the clarification.  I just corrected my code.
> However, it seems to me that the current behavior is not
> user-friendly.  (facemenu-set-face "bold" 1 2) _does_ make the text
> bold, without any warning - which makes it appear that the call was
> successful - but then we get an error when we try to save the buffer.
> Generally, it is best for errors to be detected as close to their
> source as possible.  What do you think?

facemenu-set-face calls several other functions, some of which accept
face names, some don't.