From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jorge 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 06:51:54 -0200 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1424422343 24367 80.91.229.3 (20 Feb 2015 08:52:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 20 Feb 2015 08:52:23 +0000 (UTC) Cc: 19903-done@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 20 09:52: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 1YOjJk-0007h0-9H for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Feb 2015 09:52:12 +0100 Original-Received: from localhost ([::1]:59522 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YOjJj-0003SB-6i for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Feb 2015 03:52:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43849) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YOjJf-0003R7-6N for bug-gnu-emacs@gnu.org; Fri, 20 Feb 2015 03:52:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YOjJb-0000ma-Dl for bug-gnu-emacs@gnu.org; Fri, 20 Feb 2015 03:52:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57848) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YOjJb-0000mO-A3 for bug-gnu-emacs@gnu.org; Fri, 20 Feb 2015 03:52:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YOjJa-0002GP-Pv for bug-gnu-emacs@gnu.org; Fri, 20 Feb 2015 03:52:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Jorge Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 20 Feb 2015 08:52:02 +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-done@debbugs.gnu.org id=D19903.14244223198692 (code D ref 19903); Fri, 20 Feb 2015 08:52:02 +0000 Original-Received: (at 19903-done) by debbugs.gnu.org; 20 Feb 2015 08:51:59 +0000 Original-Received: from localhost ([127.0.0.1]:49088 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YOjJX-0002G8-7k for submit@debbugs.gnu.org; Fri, 20 Feb 2015 03:51:59 -0500 Original-Received: from mail-lb0-f181.google.com ([209.85.217.181]:44658) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YOjJT-0002Fy-Oo for 19903-done@debbugs.gnu.org; Fri, 20 Feb 2015 03:51:56 -0500 Original-Received: by lbiz12 with SMTP id z12so4858785lbi.11 for <19903-done@debbugs.gnu.org>; Fri, 20 Feb 2015 00:51:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:cc:content-type; bh=542ybOlFHOZdrWZFoqY5sKA4sbjMtdi4mw57Vmjsbak=; b=Splwk7DQS3G52ddjoc1A8Je/oqsMc24dQNdfxYbckIVaMVtqLITBAwJYgiBAHh+cXQ Iww/f1nN5jlxMPCemiFlrdiYlA1nYat/EsPkiIt45Tf/y86SxX1VbxuLtlqQj2TwMaLy yrq4dwnhHJlTlLmLnLGVuRNidMz1/LLkTFhMNhKyXR1mKD97/MoaToL81rTyPVumiGrP O91KDKlZwOyO8VNShT9WRWgzy3YVzG0/x7q9h73WFX1FQxEp7Nuzw0luRlvac3GcpAJr OHBsu/5nHxZ9Ki3MowLr5B0N9kl0M+ajpvl9SltruMrZUXjAyfw+8X0itRx4i0XYCML2 aO1g== X-Received: by 10.112.163.229 with SMTP id yl5mr2251820lbb.60.1424422314556; Fri, 20 Feb 2015 00:51:54 -0800 (PST) Original-Received: by 10.152.230.98 with HTTP; Fri, 20 Feb 2015 00:51:54 -0800 (PST) X-Google-Sender-Auth: npGSr9dxsawm820BdAFzO0MRQ6s 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:99628 Archived-At: 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? Regards