GNU bug report logs -
#33682
27.0.50; enriched-mode cannot save anonymous faces
Previous Next
Reported by: charles <at> aurox.ch
Date: Sun, 9 Dec 2018 10:24:01 UTC
Severity: wishlist
Found in version 27.0.50
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #11 received at 33682 <at> debbugs.gnu.org (full text, mbox):
> Date: Sun, 09 Dec 2018 14:55:39 +0200
> From: Eli Zaretskii <eliz <at> gnu.org>
> CC: 33682 <at> debbugs.gnu.org
>
> Thanks.
>
> When setting colors and other properties in Enriched mode, you are
> supposed to use commands from facemenu.el (and/or the menu-bar menu
> items it produces, under Edit->Text Properties).
>
> The immediate reason for the error is that you should do this instead:
>
> M-: (insert (propertize "foo" 'face '((:background "red")))) RET
Thanks for pointing this out. So enriched mode can save a face
property which is a list of (possibly anonymous) faces, but it chokes
on a single anonymous face. Is that documented somewhere?
> but I'm not sure we want to extend enriched.el to support arbitrary
> face specs. What is the real-life use case for that?
Text created by other programs may not be aware of enriched mode's
limitations. For example, here is an (abbreviated) version of how I
found this bug (from emacs-26):
C-x C-f test/manual/indent/css-mode.css
M-x enriched-mode RET y
C-x C-s
Evidently some text in CSS buffers is fontified with a single
anonymous face, which enriched mode does not support. For a real-life
use case, if you copy some text from a CSS buffer and yank it in an
enriched mode buffer, the buffer can (temporarily) no longer be saved.
This bug report was last modified 3 years and 282 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.