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:02:26 +0300 Message-ID: <838sggv23x.fsf@gnu.org> References: 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="98125"; 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:03:30 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 1jn2RO-000PPS-45 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 21 Jun 2020 18:03:30 +0200 Original-Received: from localhost ([::1]:37720 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jn2RN-0008Ge-4N for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 21 Jun 2020 12:03:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49106) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jn2Qw-0007wB-NX for bug-gnu-emacs@gnu.org; Sun, 21 Jun 2020 12:03:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49230) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jn2Qw-00056O-CB for bug-gnu-emacs@gnu.org; Sun, 21 Jun 2020 12:03:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jn2Qw-0008Bh-8x for bug-gnu-emacs@gnu.org; Sun, 21 Jun 2020 12:03:02 -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:03:02 +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.159275536031441 (code B ref 41984); Sun, 21 Jun 2020 16:03:02 +0000 Original-Received: (at 41984) by debbugs.gnu.org; 21 Jun 2020 16:02:40 +0000 Original-Received: from localhost ([127.0.0.1]:60776 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jn2Qa-0008B2-99 for submit@debbugs.gnu.org; Sun, 21 Jun 2020 12:02:40 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:34564) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jn2QY-0008Ap-Pf for 41984@debbugs.gnu.org; Sun, 21 Jun 2020 12:02:39 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:54170) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jn2QT-00051h-Fd; Sun, 21 Jun 2020 12:02:33 -0400 Original-Received: from [176.228.60.248] (port=2150 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jn2QS-0003yZ-Tf; Sun, 21 Jun 2020 12:02:33 -0400 In-Reply-To: (Herman@debbugs.gnu.org) 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:182244 Archived-At: > From: Herman@debbugs.gnu.org, Géza > 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?