You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(defunrainbow-colorize-match (color&optionalmatch)
"Return a matched string propertized with a face whosebackground is COLOR. The foreground is computed using`rainbow-color-luminance', and is either white or black."
`((:foreground ,(if (>0.5 (rainbow-x-color-luminance color))
"white""black"))
(:background,color))
;; (let ((match (or match 0)));; (put-text-property;; (match-beginning match) (match-end match);; 'face `((:foreground ,(if (> 0.5 (rainbow-x-color-luminance color));; "white" "black"));; (:background ,color))))
)
rainbow-colorize-match
should not put the properties itself, rather it should only return the list and let font-lock do it.Contact https://julien.danjou.info/about/ about a patch because there is no github repo where we could submit a patch and fuck emacs devel ML.
The text was updated successfully, but these errors were encountered: