diff options
| author | Gautier Ponsinet | 2024-08-15 09:17:42 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2024-08-24 11:37:48 +0300 |
| commit | 632cc76fb58a6d07ed55bbef650d0c6bc1edb475 (patch) | |
| tree | a46af24aee31eb5b04f0c77c2556e8e9c1303980 | |
| parent | c1181975ef958d40959e0a6af0c8d11ae2111ec0 (diff) | |
| download | emacs-632cc76fb58a6d07ed55bbef650d0c6bc1edb475.tar.gz emacs-632cc76fb58a6d07ed55bbef650d0c6bc1edb475.zip | |
Allow using pulse.el with a single color without pulsation
* lisp/cedet/pulse.el (pulse-momentary-highlight-overlay): Add
the start color to the list of colors used for the pulsation
effect, to allow its use when 'pulse-iterations' is 1.
(Bug#72636)
| -rw-r--r-- | lisp/cedet/pulse.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/cedet/pulse.el b/lisp/cedet/pulse.el index d9f6a40865a..53256ba3a81 100644 --- a/lisp/cedet/pulse.el +++ b/lisp/cedet/pulse.el | |||
| @@ -158,7 +158,7 @@ Optional argument FACE specifies the face to do the highlighting." | |||
| 158 | (face-background 'pulse-highlight-face nil 'default))) | 158 | (face-background 'pulse-highlight-face nil 'default))) |
| 159 | (stop (color-name-to-rgb (face-background 'default))) | 159 | (stop (color-name-to-rgb (face-background 'default))) |
| 160 | (colors (mapcar (apply-partially 'apply 'color-rgb-to-hex) | 160 | (colors (mapcar (apply-partially 'apply 'color-rgb-to-hex) |
| 161 | (color-gradient start stop pulse-iterations)))) | 161 | (cons start (color-gradient start stop (1- pulse-iterations)))))) |
| 162 | (setq pulse-momentary-timer | 162 | (setq pulse-momentary-timer |
| 163 | (run-with-timer 0 pulse-delay #'pulse-tick | 163 | (run-with-timer 0 pulse-delay #'pulse-tick |
| 164 | colors | 164 | colors |