From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#41984: 28.0.50; term.el's select-window call interacts badly with modeline Date: Sun, 21 Jun 2020 19:30:22 +0300 Message-ID: <835zbkv0td.fsf@gnu.org> References: <838sggv23x.fsf@gnu.org> <3e5250a8-2e92-f8e7-0de1-68d61463981e@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="99228"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 41984@debbugs.gnu.org To: Herman@debbugs.gnu.org, =?UTF-8?Q?G=C3=A9za?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 21 18:34:03 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jn2ux-000Ph9-5a for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 21 Jun 2020 18:34:03 +0200 Original-Received: from localhost ([::1]:52950 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jn2uw-0005pg-4z for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 21 Jun 2020 12:34:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53874) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jn2s2-0002RW-AT for bug-gnu-emacs@gnu.org; Sun, 21 Jun 2020 12:31:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49296) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jn2s2-0000hJ-03 for bug-gnu-emacs@gnu.org; Sun, 21 Jun 2020 12:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jn2s1-0000Y5-Sk for bug-gnu-emacs@gnu.org; Sun, 21 Jun 2020 12:31:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 21 Jun 2020 16:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41984 X-GNU-PR-Package: emacs Original-Received: via spool by 41984-submit@debbugs.gnu.org id=B41984.15927570352066 (code B ref 41984); Sun, 21 Jun 2020 16:31:01 +0000 Original-Received: (at 41984) by debbugs.gnu.org; 21 Jun 2020 16:30:35 +0000 Original-Received: from localhost ([127.0.0.1]:60842 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jn2rb-0000XF-DB for submit@debbugs.gnu.org; Sun, 21 Jun 2020 12:30:35 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:39452) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jn2rZ-0000Wz-LJ for 41984@debbugs.gnu.org; Sun, 21 Jun 2020 12:30:34 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:54613) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jn2rU-0000gW-Br; Sun, 21 Jun 2020 12:30:28 -0400 Original-Received: from [176.228.60.248] (port=3868 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jn2rT-000274-8T; Sun, 21 Jun 2020 12:30:27 -0400 In-Reply-To: <3e5250a8-2e92-f8e7-0de1-68d61463981e@gmail.com> (message from Herman, =?UTF-8?Q?G=C3=A9za?= on Sun, 21 Jun 2020 18:18:20 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:182247 Archived-At: > Cc: 41984@debbugs.gnu.org > From: Herman, Géza > Date: Sun, 21 Jun 2020 18:18:20 +0200 > > 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. I don't see why this would not be a right thing to do. Presumably, term.el wants to attract the user's attention to the fact that new input arrived. > 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. I think the hooks that do something with the modeline need to be able to handle this situation, or, failing that, disable themselves when the selected window displays a term.el buffer.