GNU bug report logs - #47437
28.0.50; pulse-momentary-highlight-overlay breaks if background color is inherited

Previous Next

Package: emacs;

Reported by: Ingo Lohmar <ingo.lohmar <at> posteo.net>

Date: Sat, 27 Mar 2021 21:35:01 UTC

Severity: normal

Found in version 28.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #10 received at 47437-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Ingo Lohmar <ingo.lohmar <at> posteo.net>
Cc: 47437-done <at> debbugs.gnu.org
Subject: Re: bug#47437: 28.0.50;
 pulse-momentary-highlight-overlay breaks if background color is
 inherited
Date: Sun, 28 Mar 2021 15:31:31 +0300
> From: Ingo Lohmar <ingo.lohmar <at> posteo.net>
> Date: Sat, 27 Mar 2021 22:34:46 +0100
> 
> 
> The bug surfaces after setting the pulse highlight face by inheriting
> from other faces (no explicit background attribute), for example like
> this:
> 
> (custom-set-faces
>  '(pulse-highlight-start-face ((t (:inherit highlight))) 'new))
> 
> I do this as I employ a restricted set of color faces from which all
> others inherit.  With the above setting, run `xref-find-definitions'
> (M-.) on an elisp symbol.  This triggers
> `pulse-momentary-highlight-overlay', which fails at
> 
>     (color-name-to-rgb
>      (face-background 'pulse-highlight-start-face))
> 
> because the background attribute is `nil'.  Adding the "inherit"
> argument works, at least in the above case:
> 
>     (color-name-to-rgb
>      (face-background 'pulse-highlight-start-face nil t))

Thanks, I made that change on master now, except that I used 'default'
instead of t, to make sure the returned value is always a color name.




This bug report was last modified 4 years and 148 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.