New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not dimming in certain cases #22
Comments
When a buffer is killed or buried at the same time as when window is changed, the buffer shown in the previously selected window may remain undimmed in Emacs prior to version 27. For example, having two windows run ‘M-x describe-function RET defun RET’ (which will show help in one of the windows), navigate to the window showing *Help* buffer and quit the help by pressing ‘q’. This will select the other window and leave the new buffer in the remaining window won’t be dimmed. This happens because when we update state of buffers, we undim the newly selected buffer and dim the old buffer. Unfortunately, the old buffer is no longer the one shown in the old window so that latter operation doesn’t do anything useful. Change the code to keep track of the last window (just like it keeps track of last buffer) even outside of adow-mode. With that new information, whenever window changes, make sure that whatever is displayed in the old window is dimmed. Issue: #22
The second issue should now be resolved with the 2.0.2 which I’ve just pushed. The first issue, however, I am unable to reproduce. Does it always happen? |
I just pulled and the second issue seems fixed. Thanks! For the first issue, it is pretty consistent on my setup. I will update to Emacs 27 to check if it persists. EDIT: Just checked Emacs 27 and it seems to be working there. |
I have the following code to enable
auto-dim-other-buffers
I noticed two cases where the inactive windows are not dimmed (assume my Emacs has two open windows):
other-window
.Win1
andWin2
. Start with focus inWin1
, then call, for example,decribe-variable
to describe some variable.Win2
then shows the variable description and is focused whileWin1
is correctly dimmed. However, if I kill the buffer by pressingq
then the focus returns toWin1
butWin2
is not dimmed.I am running Emacs 26.3 and version 2.0.1 of
auto-dim-other-buffers
.The text was updated successfully, but these errors were encountered: