emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 3b5f8ab: Allow using a single anonymous face in enriced-mode


From: Lars Ingebrigtsen
Subject: master 3b5f8ab: Allow using a single anonymous face in enriced-mode
Date: Wed, 11 Aug 2021 16:29:46 -0400 (EDT)

branch: master
commit 3b5f8ab0d06f6c39aaa716b6279c2ceb4bfc5b14
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    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).
---
 lisp/format.el | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/lisp/format.el b/lisp/format.el
index 1e87d25..71cf885 100644
--- a/lisp/format.el
+++ b/lisp/format.el
@@ -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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]