From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Herman@debbugs.gnu.org, =?UTF-8?Q?G=C3=A9za?= 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 18:18:20 +0200 Message-ID: <3e5250a8-2e92-f8e7-0de1-68d61463981e@gmail.com> References: <838sggv23x.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="40273"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.2 Cc: 41984@debbugs.gnu.org To: Eli Zaretskii , Herman@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 21 18:20:20 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 1jn2hf-000ANI-Qj for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 21 Jun 2020 18:20:19 +0200 Original-Received: from localhost ([::1]:42448 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jn2he-0005zC-Qg for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 21 Jun 2020 12:20:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51816) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jn2gQ-00055E-Dm for bug-gnu-emacs@gnu.org; Sun, 21 Jun 2020 12:19:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49274) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jn2gQ-0007Ll-3y for bug-gnu-emacs@gnu.org; Sun, 21 Jun 2020 12:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jn2gQ-0000Bs-0L for bug-gnu-emacs@gnu.org; Sun, 21 Jun 2020 12:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Herman@debbugs.gnu.org, =?UTF-8?Q?G=C3=A9za?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 21 Jun 2020 16:19: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.1592756303673 (code B ref 41984); Sun, 21 Jun 2020 16:19:01 +0000 Original-Received: (at 41984) by debbugs.gnu.org; 21 Jun 2020 16:18:23 +0000 Original-Received: from localhost ([127.0.0.1]:60820 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jn2fn-0000Am-Ds for submit@debbugs.gnu.org; Sun, 21 Jun 2020 12:18:23 -0400 Original-Received: from mail-ej1-f50.google.com ([209.85.218.50]:46837) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jn2fl-0000AN-C3 for 41984@debbugs.gnu.org; Sun, 21 Jun 2020 12:18:22 -0400 Original-Received: by mail-ej1-f50.google.com with SMTP id p20so15362290ejd.13; Sun, 21 Jun 2020 09:18:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=43S2GYlLXjLRxg/HT4dvvYsXLH+0SPd+ZKW4dxKsl0A=; b=nMBPpT+KYC3OlrbkIhKbN0gKiaA0bw9JDDnUHw4/EtGhRZiyONP1s2HXQA0LrEx8CY uHXz91ggNRE1Gi8/F6/citsc5bqwh4dNg4/pc8E1yOr+q6N0UO+Y+j0p3Gqs2vhyWd8l QQI9d02mBYvZHh09XRj6hKdWaejhqi2h/udNFLAOOYnhnXxyzH/5LqyrD07NTptfp6NU jaRlQft1ac/I9etzF7+s8tWWTOBXmACL6JRWnPkqer4ZJ5i/ds5sVwtZxj8cNVU+lGc+ rv6T1+xCOpw5r4csLaCSOvmm32XI0OWwQkcteKV0/OOAQw7gzAJQ/be/YXYkYBxrwfXx w/4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=43S2GYlLXjLRxg/HT4dvvYsXLH+0SPd+ZKW4dxKsl0A=; b=dU7bgYBC8xnuHtbHspnQQbyHSWjcgkm3xzS8yvJIM2b0VNQWAfb2bHwII9wSGGcL3o LeHF7Nqv1QQbKHC7KuBoM+8hKR6oBwUYCFWQSHjpFVrAepz0gYxNltnkDtWtF5wj5gXr p2V4i8KvlMYpE0phDz24fkbJS90ZimLUS0LG8EMR0pykO6y0Y/bhPmpwC3Ffyn9B240d 7ZRYAIQD2Rl+UG7EjnlQVBksQoAtAtDbAf1Oj3xGIkXrYG6ilyczQPj2x0qx7pcuapw5 sPwAl3rVM+T4eU5tp78ROxd8XYfiVoBuVihqJfMIT16P3E4q0lbK1vXXHgXx3d5Bo3Ui NXew== X-Gm-Message-State: AOAM531pDm7NGiOuy5+Y889T96gHiEunzmYuI5T0YxhfLB30oH8S4t6F 2bZ/E4+yQuYs5SnK3YfiXrU= X-Google-Smtp-Source: ABdhPJwavUd0rEq7kM+6BS27pxNn/9YZU1ozWYFFJPJjt+EjRvzVp+4wkriOScbHXiaBTVMX3DbYxg== X-Received: by 2002:a17:907:20ee:: with SMTP id rh14mr12406024ejb.395.1592756295580; Sun, 21 Jun 2020 09:18:15 -0700 (PDT) Original-Received: from [192.168.8.4] (netacc-gpn-7-220-203.pool.telenor.hu. [176.77.220.203]) by smtp.gmail.com with ESMTPSA id bt11sm10311570edb.48.2020.06.21.09.18.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 21 Jun 2020 09:18:15 -0700 (PDT) In-Reply-To: <838sggv23x.fsf@gnu.org> Content-Language: sv-FI 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:182246 Archived-At: 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 >> 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?