gonewest818 / dimmer.el

Interactively highlight which buffer is active by dimming the others.
GNU General Public License v3.0
267 stars 14 forks source link

Error in post-command-hook (dimmer-command-handler): (error "Invalid face" child-frame-border) #53

Open kha-dinh opened 3 years ago

kha-dinh commented 3 years ago

I pulled the latest branch of both posframe and dimmer and dimmer is broken. In particular, it print this error on init: Error in post-command-hook (dimmer-command-handler): (error "Invalid face" child-frame-border) and this error when switching between windows: face-attribute: Invalid face: child-frame-border After some digging, it seems to be this line in posframe.el that causes this error:

(when border-color
          (set-face-background 'internal-border border-color posframe--frame)
          (set-face-background 'child-frame-border border-color posframe--frame) ;; This line
          )

When I comment it out, the error is gone.

gonewest818 commented 3 years ago

Thanks for tracking this down. I have a few bugs to hunt down and fix, it seems.