bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#41984: 28.0.50; term.el's select-window call interacts badly with mo


From: Herman
Subject: bug#41984: 28.0.50; term.el's select-window call interacts badly with modeline
Date: Sun, 21 Jun 2020 18:18:20 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.2

I don't have a strong opinion on this. I just felt that selecting a window because an output arrived is not a right thing to do. Any hooks which are called during this temporarily set selected-window will have the wrong idea which is the actual selected window (I'm not exactly sure, why the bug happens though, I just suppose this is the reason).

I've checked now, spaceline behaves exactly the same as doom modeline. But if you think that this is not a term.el bug, please tell the reasons, and I'll reopen my doom-modeline issue with these reasons.

On 6/21/20 6:02 PM, Eli Zaretskii wrote:
From: Herman@debbugs.gnu.org, Géza <geza.herman@gmail.com>
Date: Sun, 21 Jun 2020 17:43:09 +0200

I noticed that the call "(select-window win)" in term.el (in
term-emulate-terminal) interacts badly with doom modeline. This
select-window call confuses the modeline which is the active window, and
it causes the terminal's modeline displayed as active, as soon as the
terminal receives output, no matter which is the actual active window.
And the real active window is displayed with an inactive modeline.

I found if I modify this "(select-window win)" line to "(select-window
win t)", the bug doesn't happen anymore (I'm not sure whether it's a
correct fix in all regards or not).

Here's my full description of the issue, with screenshot:
https://github.com/seagle0128/doom-modeline/issues/355

Describe: When one window has an ansi-term, which constantly outputs
some text, and another window has the focus, then doom-modeline behaves
strange: the mode line of the focused window loses activity, and part of
ansi-term's mode line becomes active.
Any reason why you decided this isn't a doom modeline bug?






reply via email to

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