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 #14 received at 33682 <at> debbugs.gnu.org (full text, mbox):
> Date: Sun, 09 Dec 2018 17:35:28 +0100
> From: charles <at> aurox.ch (Charles A. Roelli)
> CC: 33682 <at> debbugs.gnu.org
>
> > 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?
I think the limitation might actually be in format.el, but I didn't
dig deep enough. Enriched mode is under-used (IMO), and format.el is
even less so, so I'm not surprised they don't support yanking text
with faces from other modes.
> 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.
You (and everyone else) are welcome to work on lifting these
limitations, of course. Maybe that will make enriched.el more
popular, although I wouldn't hold my breath.
Thanks.
This bug report was last modified 3 years and 317 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.