GNU bug report logs -
#37774
27.0.50; new :extend attribute broke visuals of all themes and other packages
Previous Next
Reported by: Andrey Orst <andreyorst <at> gmail.com>
Date: Wed, 16 Oct 2019 07:32:01 UTC
Severity: normal
Found in version 27.0.50
Done: Dmitry Gutov <dgutov <at> yandex.ru>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> From: Jonas Bernoulli <jonas <at> bernoul.li>
> Cc: 37774 <at> debbugs.gnu.org
> Date: Mon, 11 Nov 2019 20:03:45 +0100
>
> Then enable any theme and notice how the highlighting no longer extends
> to the edge of the window.
>
> That's because the theme does something like:
> '(hl-line ((t (:background "lightgrey"))))
> as opposed to
> '(hl-line ((t (:background "lightgrey" :extend t))))
>
> I mentioned this elsewhere and Dmitry said that this is not how it is
> supposed to work and if it did work that way then that would be a bug.
>
> He also mentioned that this had been discussed here but I have been
> reading this issue from the top while listening to all the way to
> "The End" of the The Very Best Of The Doors and I still have not read
> anything about something being done to prevent the need to repeat the
> extend setting. Message #104 mentions a variation of this issue, but
> so far I haven't gotten to a message saying "okay lets add a hack to
> deal with this" yet, so I figured I would ask:
>
> Should it be unnecessary that each and every theme does:
> - '(hl-line ((t (:background "lightgrey"))))
> + '(hl-line ((t (:background "lightgrey" :extend t))))
> ?
How is :extend different from any other face attribute?
The documentation of custom-theme-set-faces says that FACE should be a
face spec, like in defface. And the latter does override all the
attributes, unless it uses :inherit.
So I'm not unsure why you expected something else. AFAIU, we should
now modify all the themes that come with Emacs to use :extend for
those faces whose default spec does.
This bug report was last modified 5 years and 161 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.