Closed mateidragony closed 6 days ago
For those interested, fading wasn't working due to my emacs background being clear
Oh that's an interesting case I hadn't considered.
If you M-x describe-face
and enter default
, what are the face properties?
If Background
is something like nil
, I wonder if an effective fallback plan would be to blend the colors with black, instead?
I tried to figure out a bit more, on my own.
I notice starting in Emacs 29 there's a new alpha-background
frame parameter.
When I M-x eval
and enter (set-frame-parameter nil 'alpha-background 0)
, sexp comment fading still works. (Maybe because my theme still has a dark background for the default
font, I'm not sure.)
So I'd be grateful if you have time to supply more details so I can reproduce.
Yeah, so my theme just doesn't set default
background, so its value is unspecified-bg
. The alpha-background thing doesn't seem to do anything to make my background clear though....
I think a quick fix would just be to have a fallback value for fading like you said, which is what I implemented for my custom config
Maybe I'm being dense, but I can't figure out how to set the default
face's background
property to "unspecified".
No matter what I tried:
M-x customize-face
, un-checking the Background box, and pressing the Apply
button.(set-face-attribute 'default nil :background nil)
(set-face-attribute 'default nil :background 'unspecified)
(set-face-background 'default nil)
(set-face-background 'default 'unspecified)
Regardless (face-attribute 'default :background)
continues to return the color #002b36
originally from my theme.
So unfortunately I don't know how to reproduce this.
As a result, although I could add some fallback value, I wouldn't know if it actually fixes the problem you saw, and doesn't cause new problems. :disappointed:
Package
System values
Buffer values
Racket Mode values
Minor modes
Disabled minor modes
Steps to reproduce:
Type this program
#; (+ 1 2)
The sexp does not fade due to the comment like it used to.