]> git.eshelyaron.com Git - emacs.git/commitdiff
Avoid errors in pulse.el for some face customizations
authorEli Zaretskii <eliz@gnu.org>
Sun, 28 Mar 2021 12:29:41 +0000 (15:29 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sun, 28 Mar 2021 12:29:41 +0000 (15:29 +0300)
* lisp/cedet/pulse.el (pulse-momentary-highlight-overlay): Make
sure 'face-background' always returns a color name.  Suggested by
Ingo Lohmar <ingo.lohmar@posteo.net> in bug#47437.

lisp/cedet/pulse.el

index d77d635f9712c6fdcd040f53b5dc7ddfd2cb98e3..1e4506713ae2e89b1f65201c2973c20859b8ccc9 100644 (file)
@@ -153,7 +153,8 @@ Optional argument FACE specifies the face to do the highlighting."
       ;; with a reference face needed for the color.
       (pulse-reset-face face)
       (let* ((start (color-name-to-rgb
-                     (face-background 'pulse-highlight-start-face)))
+                     (face-background 'pulse-highlight-start-face
+                                      nil 'default)))
              (stop (color-name-to-rgb (face-background 'default)))
              (colors (mapcar (apply-partially 'apply 'color-rgb-to-hex)
                              (color-gradient start stop pulse-iterations))))