jdtsmith / indent-bars

Fast, configurable indentation guide-bars for Emacs
GNU General Public License v3.0
272 stars 7 forks source link

indent-bars face doesn't play well with whitespace-trailing face #46

Closed DevelopmentCool2449 closed 2 weeks ago

DevelopmentCool2449 commented 2 weeks ago

When using whitespace-mode with indent-bars, the trailing whitespace face cuts off with indent-bars stipple face. bug

jdtsmith commented 2 weeks ago

I'm not understanding you, and am not familiar with whitespace-mode. What did you expect to see here? Is the red background on purpose? indent-bars does not expect other modes to style the leading spaces there. It applies :foreground and :stipple elements to :face (or display properties for tabs or "invented" spaces).

jdtsmith commented 2 weeks ago

I notice whitespace-trailing font-lock keyword specified OVERRIDE, so you just need it to appear later in the list of font-lock keywords, and it will override the face indent-bars places there. So just turn on whitespace-mode after indent-bars-mode.

DevelopmentCool2449 commented 2 weeks ago

I notice whitespace-trailing font-lock keyword specified OVERRIDE, so you just need it to appear later in the list of font-lock keywords, and it will override the face indent-bars places there. So just turn on whitespace-mode after indent-bars-mode.

Thank you for the help, since i see it cannot be fixed i'm closing the issue.

jdtsmith commented 2 weeks ago

I did offer a potential fix:

just turn on whitespace-mode after indent-bars-mode.

DevelopmentCool2449 commented 2 weeks ago

I tried it but it doesn't work since it overrides the indent-bars :stipple face which makes it unusable. bug

jdtsmith commented 2 weeks ago

Not so easy to solve, both tools want to control face on the leading spaces. Maybe try removing face from whitespace-style, so it uses character substitution.