GNU bug report logs - #19903
24.4; Emacs fails to save enriched buffer with error message `wrong-type-argument symbolp "bold"'

Previous Next

Package: emacs;

Reported by: Jorge <jorge13515 <at> gmail.com>

Date: Thu, 19 Feb 2015 17:53:01 UTC

Severity: normal

Found in version 24.4

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #22 received at 19903 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Jorge <jorge13515 <at> gmail.com>
Cc: 19903 <at> debbugs.gnu.org
Subject: Re: bug#19903: 24.4;
 Emacs fails to save enriched buffer with error message
 `wrong-type-argument symbolp "bold"'
Date: Fri, 20 Feb 2015 12:03:15 +0200
> Date: Fri, 20 Feb 2015 06:51:54 -0200
> From: Jorge <jorge13515 <at> gmail.com>
> Cc: 19903-done <at> debbugs.gnu.org
> 
> On Fri, Feb 20, 2015 at 6:27 AM, Eli Zaretskii <eliz <at> gnu.org> 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.




This bug report was last modified 10 years and 86 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.