GNU bug report logs -
#19903
24.4; Emacs fails to save enriched buffer with error message `wrong-type-argument symbolp "bold"'
Previous Next
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 #13 received at 19903-done <at> debbugs.gnu.org (full text, mbox):
> Date: Thu, 19 Feb 2015 15:15:40 -0200
> From: Jorge <jorge13515 <at> gmail.com>
>
> 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.
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.