emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Advicing select-windows, shr rendering, and per-buffer-theme package


From: Stefan Monnier
Subject: Re: Advicing select-windows, shr rendering, and per-buffer-theme package
Date: Fri, 18 Mar 2016 11:21:18 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

> See thread I had on this list re  hooking sound themes based on current
> mode -- I ran into this issue as well. As far as I know, it's more than
> just shr/eww that triggers this: if you look, select-window gets called
> way more often than you'd expect.

Indeed, `current-buffer' and `selected-window' don't correspond really
to the user's perception, because they can be changed temporarily
without the user even noticing (and it's not just a theoretical
possibility but is something that happens often enough).

> After suggestions from folks like John, I ended up implementing my
> solution via an idle timer, you can see the relevant code here:

Sounds like a better option, indeed.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]