From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Shitikanth Newsgroups: gmane.emacs.bugs Subject: bug#47679: 28.0.50; python-shell-switch-to-shell redisplay bug Date: Sat, 10 Apr 2021 02:33:36 +0530 Message-ID: References: <87k0pb89m2.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="00000000000005b36405bf90808a" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14484"; mail-complaints-to="usenet@ciao.gmane.io" To: 47679@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 09 23:04:16 2021 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 1lUyIa-0003gO-Bb for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 09 Apr 2021 23:04:16 +0200 Original-Received: from localhost ([::1]:43748 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lUyIZ-0005rO-D2 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 09 Apr 2021 17:04:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34354) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lUyIM-0005r2-Up for bug-gnu-emacs@gnu.org; Fri, 09 Apr 2021 17:04:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39505) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lUyIM-0002bL-Fp for bug-gnu-emacs@gnu.org; Fri, 09 Apr 2021 17:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lUyIM-0003UO-BD for bug-gnu-emacs@gnu.org; Fri, 09 Apr 2021 17:04:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Shitikanth Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 09 Apr 2021 21:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47679 X-GNU-PR-Package: emacs Original-Received: via spool by 47679-submit@debbugs.gnu.org id=B47679.161800223513400 (code B ref 47679); Fri, 09 Apr 2021 21:04:02 +0000 Original-Received: (at 47679) by debbugs.gnu.org; 9 Apr 2021 21:03:55 +0000 Original-Received: from localhost ([127.0.0.1]:51051 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lUyIF-0003U4-Hr for submit@debbugs.gnu.org; Fri, 09 Apr 2021 17:03:55 -0400 Original-Received: from mail-pl1-f176.google.com ([209.85.214.176]:35341) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lUyIE-0003Tr-00 for 47679@debbugs.gnu.org; Fri, 09 Apr 2021 17:03:54 -0400 Original-Received: by mail-pl1-f176.google.com with SMTP id j7so3348287plx.2 for <47679@debbugs.gnu.org>; Fri, 09 Apr 2021 14:03:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=co9pKOk7jskSEtnFuBGmqL/3lBqhedWho0qxVYGJ4H4=; b=RkVn16KDNFQerglF90u+FkRYh1c8NqTef68dghH17O80w4sA1ttCa1lKR8a3Rbqr3E d/BaUWI9S01Il0UbmaSKwXlQeybYwdRUS2GeB8nYnxBSVV8gswBpKYYRnC+HpZsHJZ4C 2gtWTXJ8j386A6BfogMEtcN/TgXjgffvwFvdEQyL1y9dEZcdBwZ84Ivf0R9SWfNVP4qk 0HxrKNJTgm4wY6a+FGDaLC/tXstuLj4pK19Wg94UHCA2nie3jYVIAKonBtY625QFZ7xf ze0kvJsO6mq9w8pDSshPQWmuVFTrQ2Z3GaldkjryzxAKTQHkl2D7auL/VV1RLBilje7Z /RdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=co9pKOk7jskSEtnFuBGmqL/3lBqhedWho0qxVYGJ4H4=; b=lYMYWqhEN1ubs//i7FHwFghaotLg0gWBmgBqNJDg9tHPqEuyKw4ap7c0pKYAtVzy7S 9xsjTK6xJXFujY9ffrEtvwzIc5un2YP3yViF9eLuy200JAdKKCJAvsfjjpI7+UwD2zvp rGwqSxe3uJePfnR28rPvbB51vJ1hRILIzX5nE23JEsqS+T71gyl4Tryi0la9r3E4bI+l g1jVoOX54TGekLBYG1oH9J8Xd2doTfVowK6E3zkbRud34r/UH6dPTL8t/BTmRPFG/3uZ 8Q8v2oiznx//6cKMs7OxSSEdtzKgJCHzKPqWJ0I9ab91/lASHMP7k1ze6bHYKfUVxYSc RZNg== X-Gm-Message-State: AOAM533T5AuReqXaGgDEo1eIOKjlFvHcyIMeU6K2eq01tyB47uuP1uBK aDvkDtFvjcVROaUIXR9FYD7oyHk9d5srns84Uu2iZ/61LfZgww== X-Google-Smtp-Source: ABdhPJxYk5xNEZA6mk+gzJtyab5DCRAj96tg5eR6xoHZZo+Z0WDyPYd2bMN1vUh5GUbcCilN7oWo0nW66nlzHgKkaXY= X-Received: by 2002:a17:90a:a10c:: with SMTP id s12mr15551632pjp.166.1618002227597; Fri, 09 Apr 2021 14:03:47 -0700 (PDT) In-Reply-To: <87k0pb89m2.fsf@gmail.com> 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:203776 Archived-At: --00000000000005b36405bf90808a Content-Type: multipart/alternative; boundary="00000000000005b36205bf908088" --00000000000005b36205bf908088 Content-Type: text/plain; charset="UTF-8" Proposed fix. On Sat, 10 Apr 2021 at 02:22, Shitikanth Kashyap wrote: > Steps to reproduce: > 1. emacs -Q > 2. Open any python file > 3. Press "C-c C-p" to start interpreter > 4. Press "C-c C-z" from the file's window to switch to interpreter > 5. Go back to file's window with "C-x o" and repeat from 4 a few times. > > There is notable lag (sometimes as much as a few seconds) between > pressing the keybinding "C-c C-z" in file's window before the cursor > appears to be ready on the interpreter's window. The state of the cursor > in the two windows after the command appears to be indeterministic and > inconsistent. > > The issue seems to be that the display of the two windows is not updated > even though internally emacs has changed the focus to the correct > window. For example, it is possible to start typing in the interpreter > window immediately after the command, even though the cursor does not > seem to ready. > > > > > > --00000000000005b36205bf908088 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Proposed fix.

On Sat, 10 Apr 2021 at 02:22,= Shitikanth Kashyap <shitikanth= 1@gmail.com> wrote:
Steps to reproduce:
1. emacs -Q
2. Open any python file
3. Press "C-c C-p"=C2=A0 to start interpreter
4. Press "C-c C-z" from the file's window to switch to interp= reter
5. Go back to file's window with "C-x o" and repeat from 4 a = few times.

There is notable lag (sometimes as much as a few seconds) between
pressing the keybinding "C-c C-z" in file's window before the= cursor
appears to be ready on the interpreter's window. The state of the curso= r
in the two windows after the command appears to be indeterministic and
inconsistent.

The issue seems to be that the display of the two windows is not updated even though internally emacs has changed the focus to the correct
window. For example, it is possible to start typing in the interpreter
window immediately after the command, even though the cursor does not
seem to ready.





--00000000000005b36205bf908088-- --00000000000005b36405bf90808a Content-Type: application/octet-stream; name="0001-Fix-python-shell-switch-to-shell-redisplay-bug.patch" Content-Disposition: attachment; filename="0001-Fix-python-shell-switch-to-shell-redisplay-bug.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_knaspufq0 RnJvbSBiMjYzM2NiNGJjN2IyNTk4MzlmMWFjM2E2MjE1ZTgzOWMyYTc0YmU3IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBTaGl0aWthbnRoIEthc2h5YXAgPHNoaXRpa2FudGgxQGdtYWls LmNvbT4KRGF0ZTogU2F0LCAxMCBBcHIgMjAyMSAwMTozMjo1MSArMDUzMApTdWJqZWN0OiBbUEFU Q0hdIEZpeCBweXRob24tc2hlbGwtc3dpdGNoLXRvLXNoZWxsIHJlZGlzcGxheSBidWcKCi0tLQog bGlzcC9wcm9nbW9kZXMvcHl0aG9uLmVsIHwgMiArLQogMSBmaWxlIGNoYW5nZWQsIDEgaW5zZXJ0 aW9uKCspLCAxIGRlbGV0aW9uKC0pCgpkaWZmIC0tZ2l0IGEvbGlzcC9wcm9nbW9kZXMvcHl0aG9u LmVsIGIvbGlzcC9wcm9nbW9kZXMvcHl0aG9uLmVsCmluZGV4IGU1YzE1ZDE0OGYuLjNhZjBiZGRl MmUgMTAwNjQ0Ci0tLSBhL2xpc3AvcHJvZ21vZGVzL3B5dGhvbi5lbAorKysgYi9saXNwL3Byb2dt b2Rlcy9weXRob24uZWwKQEAgLTMzODUsNyArMzM4NSw3IEBAIHB5dGhvbi1zaGVsbC1zd2l0Y2gt dG8tc2hlbGwKIHQgd2hlbiBjYWxsZWQgaW50ZXJhY3RpdmVseS4iCiAgIChpbnRlcmFjdGl2ZSAi cCIpCiAgIChwb3AtdG8tYnVmZmVyCi0gICAocHJvY2Vzcy1idWZmZXIgKHB5dGhvbi1zaGVsbC1n ZXQtcHJvY2Vzcy1vci1lcnJvciBtc2cpKSBuaWwgdCkpCisgICAocHJvY2Vzcy1idWZmZXIgKHB5 dGhvbi1zaGVsbC1nZXQtcHJvY2Vzcy1vci1lcnJvciBtc2cpKSBuaWwgJ21hcmstZm9yLXJlZGlz cGxheSkpCiAKIChkZWZ1biBweXRob24tc2hlbGwtc2VuZC1zZXR1cC1jb2RlICgpCiAgICJTZW5k IGFsbCBzZXR1cCBjb2RlIGZvciBzaGVsbC4KLS0gCjIuMzAuMgoK --00000000000005b36405bf90808a--