GNU bug report logs - #33682
27.0.50; enriched-mode cannot save anonymous faces

Previous Next

Package: emacs;

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


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: charles <at> aurox.ch
Cc: 33682 <at> debbugs.gnu.org
Subject: bug#33682: 27.0.50; enriched-mode cannot save anonymous faces
Date: Sun, 09 Dec 2018 14:55:39 +0200
> Date: Sun, 09 Dec 2018 11:27:15 +0100
> From: charles <at> aurox.ch (Charles A. Roelli)
> 
> C-x C-f /tmp/test-file
> M-x enriched-mode RET
> M-: (insert (propertize "foo" 'face '(:background "red"))) RET
> C-x C-s
> 
> Error: Invalid face: :background

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

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?




This bug report was last modified 3 years and 281 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.