* bug#47679: 28.0.50; python-shell-switch-to-shell redisplay bug
@ 2021-04-09 20:51 Shitikanth Kashyap
2021-04-09 21:03 ` Shitikanth
0 siblings, 1 reply; 5+ messages in thread
From: Shitikanth Kashyap @ 2021-04-09 20:51 UTC (permalink / raw)
To: 47679
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#47679: 28.0.50; python-shell-switch-to-shell redisplay bug
2021-04-09 20:51 bug#47679: 28.0.50; python-shell-switch-to-shell redisplay bug Shitikanth Kashyap
@ 2021-04-09 21:03 ` Shitikanth
2021-04-12 8:44 ` Lars Ingebrigtsen
0 siblings, 1 reply; 5+ messages in thread
From: Shitikanth @ 2021-04-09 21:03 UTC (permalink / raw)
To: 47679
[-- Attachment #1.1: Type: text/plain, Size: 968 bytes --]
Proposed fix.
On Sat, 10 Apr 2021 at 02:22, Shitikanth Kashyap <shitikanth1@gmail.com>
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.
>
>
>
>
>
>
[-- Attachment #1.2: Type: text/html, Size: 1402 bytes --]
[-- Attachment #2: 0001-Fix-python-shell-switch-to-shell-redisplay-bug.patch --]
[-- Type: application/octet-stream, Size: 837 bytes --]
From b2633cb4bc7b259839f1ac3a6215e839c2a74be7 Mon Sep 17 00:00:00 2001
From: Shitikanth Kashyap <shitikanth1@gmail.com>
Date: Sat, 10 Apr 2021 01:32:51 +0530
Subject: [PATCH] Fix python-shell-switch-to-shell redisplay bug
---
lisp/progmodes/python.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index e5c15d148f..3af0bdde2e 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -3385,7 +3385,7 @@ python-shell-switch-to-shell
t when called interactively."
(interactive "p")
(pop-to-buffer
- (process-buffer (python-shell-get-process-or-error msg)) nil t))
+ (process-buffer (python-shell-get-process-or-error msg)) nil 'mark-for-redisplay))
(defun python-shell-send-setup-code ()
"Send all setup code for shell.
--
2.30.2
^ permalink raw reply related [flat|nested] 5+ messages in thread
* bug#47679: 28.0.50; python-shell-switch-to-shell redisplay bug
2021-04-09 21:03 ` Shitikanth
@ 2021-04-12 8:44 ` Lars Ingebrigtsen
2021-04-12 18:25 ` Shitikanth
0 siblings, 1 reply; 5+ messages in thread
From: Lars Ingebrigtsen @ 2021-04-12 8:44 UTC (permalink / raw)
To: Shitikanth; +Cc: 47679
Shitikanth <shitikanth1@gmail.com> writes:
> Proposed fix.
Makes sense to me.
This change was small enough to apply without assigning copyright to the
FSF, but for future patches you want to submit, it might make sense to
get the paperwork started now, so that subsequent patches can be applied
speedily. Would you be willing to sign such paperwork?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#47679: 28.0.50; python-shell-switch-to-shell redisplay bug
2021-04-12 8:44 ` Lars Ingebrigtsen
@ 2021-04-12 18:25 ` Shitikanth
2021-04-13 7:34 ` Lars Ingebrigtsen
0 siblings, 1 reply; 5+ messages in thread
From: Shitikanth @ 2021-04-12 18:25 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: 47679
[-- Attachment #1: Type: text/plain, Size: 584 bytes --]
Gladly. How should I start?
On Mon, 12 Apr 2021 at 14:14, Lars Ingebrigtsen <larsi@gnus.org> wrote:
> Shitikanth <shitikanth1@gmail.com> writes:
>
> > Proposed fix.
>
> Makes sense to me.
>
> This change was small enough to apply without assigning copyright to the
> FSF, but for future patches you want to submit, it might make sense to
> get the paperwork started now, so that subsequent patches can be applied
> speedily. Would you be willing to sign such paperwork?
>
> --
> (domestic pets only, the antidote for overdose, milk.)
> bloggy blog: http://lars.ingebrigtsen.no
>
[-- Attachment #2: Type: text/html, Size: 1048 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#47679: 28.0.50; python-shell-switch-to-shell redisplay bug
2021-04-12 18:25 ` Shitikanth
@ 2021-04-13 7:34 ` Lars Ingebrigtsen
0 siblings, 0 replies; 5+ messages in thread
From: Lars Ingebrigtsen @ 2021-04-13 7:34 UTC (permalink / raw)
To: Shitikanth; +Cc: 47679
Shitikanth <shitikanth1@gmail.com> writes:
> Gladly. How should I start?
Here's the form to get started:
Please email the following information to assign@gnu.org, and we
will send you the assignment form for your past and future changes.
Please use your full legal name (in ASCII characters) as the subject
line of the message.
----------------------------------------------------------------------
REQUEST: SEND FORM FOR PAST AND FUTURE CHANGES
[What is the name of the program or package you're contributing to?]
Emacs
[Did you copy any files or text written by someone else in these changes?
Even if that material is free software, we need to know about it.]
[Do you have an employer who might have a basis to claim to own
your changes? Do you attend a school which might make such a claim?]
[For the copyright registration, what country are you a citizen of?]
[What year were you born?]
[Please write your email address here.]
[Please write your postal address here.]
[Which files have you changed so far, and which new files have you written
so far?]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-04-13 7:34 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-09 20:51 bug#47679: 28.0.50; python-shell-switch-to-shell redisplay bug Shitikanth Kashyap
2021-04-09 21:03 ` Shitikanth
2021-04-12 8:44 ` Lars Ingebrigtsen
2021-04-12 18:25 ` Shitikanth
2021-04-13 7:34 ` Lars Ingebrigtsen
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.