]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix previous pulse.el fix
authorLars Ingebrigtsen <larsi@gnus.org>
Sun, 13 Jun 2021 13:38:52 +0000 (15:38 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 13 Jun 2021 13:38:52 +0000 (15:38 +0200)
* lisp/cedet/pulse.el (pulse-reset-face): Fix up previous
pulse-reset-face change -- reset back to the start face
(bug#48936).

lisp/cedet/pulse.el

index 54b14c67ed1a57552b6b2b00e7a3fa8131de459e..7928fa1bf420dd42ed03bd4b2abba62f321216e9 100644 (file)
@@ -121,9 +121,8 @@ Face used for temporary highlighting of tags for effect."
                         (face-background 'pulse-highlight-start-face)
                         ))
   (set-face-extend 'pulse-highlight-face
-                   ;; If there's a face, use the :extend from that.
-                   ;; Otherwise, set it to nil.
-                   (and face (face-extend-p face nil t)))
+                   (face-extend-p (or face 'pulse-highlight-start-face)
+                                  nil t))
   (put 'pulse-highlight-face :startface (or face
                                            'pulse-highlight-start-face))
   (setq pulse-momentary-iteration 0))