all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: kobarity <kobarity@gmail.com>
Cc: 58713-done@debbugs.gnu.org
Subject: bug#58713: 29.0.50; Completion/ElDoc/FFAP interferes with a running Python program
Date: Thu, 27 Oct 2022 19:06:05 +0300	[thread overview]
Message-ID: <83sfj9l09e.fsf@gnu.org> (raw)
In-Reply-To: <eke77d0s58oa.wl-kobarity@gmail.com> (message from kobarity on Sat, 22 Oct 2022 21:45:09 +0900)

> Date: Sat, 22 Oct 2022 21:45:09 +0900
> From: kobarity <kobarity@gmail.com>
> 
> When a Python program is sent to the Python Shell buffer using
> `python-shell-send-buffer' or similar functions, it is run
> asynchronously.  So it is possible to invoke Completion/ElDoc/FFAP in
> the Python buffer while the program is running.  However, it leads to
> several problems:
> 
> 1. emacs -Q
> 2. Open the following Python file.
> 
> #+begin_src python
> import time
> 
> for i in range(10):
>     print(i)
>     time.sleep(1)
> #+end_src
> 
> 3. C-u -1 M-x eldoc-mode (Disable ElDoc mode.)
> 4. C-c C-p (M-x run-python)
> 5. C-x o (Back to the Python mode buffer)
> 6. M-> (M-x end-of-buffer)
> 7. C-c C-c (M-x python-shell-send-buffer)
> 8. While the program is running, type "t".
> 9. C-M-i (M-x completion-at-point)
> 
> Output from the program will no longer be displayed and the Python
> buffer cannot be manipulated until the program is completed or the
> completion is canceled with C-g.
> 
> Similar problems occur with ElDoc/FFAP.
> 
> These problems are caused by the fact that
> `python-shell-send-string-no-output' used by these features replaces
> the process-filter.  So I think it is appropriate to disable
> Completion/ElDoc/FFAP while a program is running.
> 
> Attached is a patch to disable Completion/ElDoc/FFAP when a proper
> prompt is not received in the Python Shell buffer.

Thanks, installed.





      reply	other threads:[~2022-10-27 16:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-22 12:45 bug#58713: 29.0.50; Completion/ElDoc/FFAP interferes with a running Python program kobarity
2022-10-27 16:06 ` Eli Zaretskii [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83sfj9l09e.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=58713-done@debbugs.gnu.org \
    --cc=kobarity@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.