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 10:27:13 +0200 Message-ID: <83sie1kmxq.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1424420908 2303 80.91.229.3 (20 Feb 2015 08:28:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 20 Feb 2015 08:28:28 +0000 (UTC) Cc: 19903-done@debbugs.gnu.org To: Jorge Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 20 09:28:17 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 1YOiwa-0005CP-Vq for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Feb 2015 09:28:17 +0100 Original-Received: from localhost ([::1]:59452 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YOiwa-0005u2-EF for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Feb 2015 03:28:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39191) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YOiwR-0005ii-Jq for bug-gnu-emacs@gnu.org; Fri, 20 Feb 2015 03:28:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YOiwN-0001Zq-4h for bug-gnu-emacs@gnu.org; Fri, 20 Feb 2015 03:28:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57843) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YOiwN-0001Zh-1W for bug-gnu-emacs@gnu.org; Fri, 20 Feb 2015 03:28:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YOiwM-0001fX-Sz for bug-gnu-emacs@gnu.org; Fri, 20 Feb 2015 03:28:02 -0500 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Fri, 20 Feb 2015 08:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 19903 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 19903@debbugs.gnu.org, eliz@gnu.org, jorge13515@gmail.com Original-Received: via spool by 19903-done@debbugs.gnu.org id=D19903.14244208216329 (code D ref 19903); Fri, 20 Feb 2015 08:28:02 +0000 Original-Received: (at 19903-done) by debbugs.gnu.org; 20 Feb 2015 08:27:01 +0000 Original-Received: from localhost ([127.0.0.1]:49082 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YOivM-0001dr-Sn for submit@debbugs.gnu.org; Fri, 20 Feb 2015 03:27:01 -0500 Original-Received: from mtaout24.012.net.il ([80.179.55.180]:46034) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YOivK-0001di-S9 for 19903-done@debbugs.gnu.org; Fri, 20 Feb 2015 03:27:00 -0500 Original-Received: from conversion-daemon.mtaout24.012.net.il by mtaout24.012.net.il (HyperSendmail v2007.08) id <0NK2007009ECBU00@mtaout24.012.net.il> for 19903-done@debbugs.gnu.org; Fri, 20 Feb 2015 10:18:37 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout24.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NK2002VM9R1BL50@mtaout24.012.net.il>; Fri, 20 Feb 2015 10:18:37 +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:99627 Archived-At: > Date: Thu, 19 Feb 2015 15:15:40 -0200 > From: Jorge > > Download the attached files to the same directory. In GNU Bash, with that > directory current, run > emacs -Q --script bug_script.el &> bug_output.txt > > I ran the above command for emacs versions 24.4.1 and 24.4.90. The output > is in `bug_output_24.4.1.txt' and `bug_output_24.4.90.txt' respectively. The > bug manifests in both tested Emacs versions. > To compose the initial draft of this bug report, I ran > emacs -Q -l bug_script.el > and then called `report-emacs-bug' with the enriched buffer that fails to be > saved as the current buffer. > > So, the input file (`enriched_bug_orig.txt') is in enriched mode, and consists > of one `0' followed by newlines. I expected Emacs to write the buffer to > `enriched_bug_edited.txt', make the `0' bold, and save the buffer. In > practice, Emacs does make the `0' bold, but then fails to save the buffer. The > second line of bug_script.el is `(toggle-debug-on-error)' so Emacs should have > provided useful information. > [...] > (print (emacs-version)) > (toggle-debug-on-error) > (find-file "enriched_bug_orig.txt") > (write-file "enriched_bug_edited.txt") > (facemenu-set-face "bold" 1 2) <<<<<<<<<<<<<<<<<<<<<<< > (save-buffer 0) 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. A face is represented by its symbol, not by its string name. I'm therefore closing this bug.