From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: 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 Message-ID: <83oaoolx24.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1424426665 28900 80.91.229.3 (20 Feb 2015 10:04:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 20 Feb 2015 10:04:25 +0000 (UTC) Cc: 19903@debbugs.gnu.org To: Jorge Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 20 11:04:14 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YOkRR-0006TM-Ps for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Feb 2015 11:04:13 +0100 Original-Received: from localhost ([::1]:59709 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YOkRR-0008OY-6H for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Feb 2015 05:04:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56009) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YOkRJ-0008NY-6I for bug-gnu-emacs@gnu.org; Fri, 20 Feb 2015 05:04:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YOkRG-0006JN-0k for bug-gnu-emacs@gnu.org; Fri, 20 Feb 2015 05:04:05 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57896) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YOkRF-0006JI-Sl for bug-gnu-emacs@gnu.org; Fri, 20 Feb 2015 05:04:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YOkRF-0003wj-MC for bug-gnu-emacs@gnu.org; Fri, 20 Feb 2015 05:04:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 20 Feb 2015 10:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19903 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19903-submit@debbugs.gnu.org id=B19903.142442658515106 (code B ref 19903); Fri, 20 Feb 2015 10:04:01 +0000 Original-Received: (at 19903) by debbugs.gnu.org; 20 Feb 2015 10:03:05 +0000 Original-Received: from localhost ([127.0.0.1]:49136 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YOkQK-0003vZ-1Q for submit@debbugs.gnu.org; Fri, 20 Feb 2015 05:03:04 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:52007) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YOkQH-0003v0-7j for 19903@debbugs.gnu.org; Fri, 20 Feb 2015 05:03:02 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NK200800ECSOB00@a-mtaout20.012.net.il> for 19903@debbugs.gnu.org; Fri, 20 Feb 2015 12:02:59 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NK20082CEKYBFB0@a-mtaout20.012.net.il>; Fri, 20 Feb 2015 12:02:59 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:99632 Archived-At: > Date: Fri, 20 Feb 2015 06:51:54 -0200 > From: Jorge > Cc: 19903-done@debbugs.gnu.org > > On Fri, Feb 20, 2015 at 6:27 AM, Eli Zaretskii 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.