1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-27 10:54:40 +00:00

Allow using a single anonymous face in enriced-mode

* lisp/format.el (format-annotate-single-property-change): Allow
using a single anonymous face (bug#33682).
This commit is contained in:
Lars Ingebrigtsen 2021-08-11 22:29:38 +02:00
parent 81fd380dea
commit 3b5f8ab0d0

View File

@ -1013,6 +1013,12 @@ either strings, or lists of the form (PARAMETER VALUE)."
prop-alist (car old) nil))
close)
old (cdr old)))
;; If the font is on the format (:background "red"),
;; then we have a single face. We're assuming a list of
;; faces, so transform.
(when (and (listp new)
(keywordp (car new)))
(setq new (list new)))
(while new
(setq open
(append (cdr (format-annotate-atomic-property-change