unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Carlos Pita <carlosjosepita2@gmail.com>
To: 51196@debbugs.gnu.org
Subject: bug#51196: 29.0.50; python.el eldoc problems
Date: Thu, 14 Oct 2021 23:05:20 -0300	[thread overview]
Message-ID: <CAEOO5Tdmw1SeqUou9a0Vx6_kYLziqoUrKSi9_bZFNT6JxaQMPw@mail.gmail.com> (raw)
In-Reply-To: <m25yu0bif6.fsf@gmail.com>

I've been delving into the different timeout mechanisms in python.el:

python-shell-completion-native-output-timeout 5.0
python-shell-completion-native-try-output-timeout 1.0
python-eldoc-function-timeout 1
python-eldoc-function-timeout-permanent t
This is in bad shape, in addition to points I've already made above:

- Even though in a clunky way, eldoc at least stops trying after a
timeout in order to avoid causing unbearable UI lags, but that's not
the case with c-a-p. I imagine the rationale here is that c-a-p is not
auto-triggered as eldoc is, but that's not true of company and other
completion backends that will trigger completions under the hood, so
you could end up with constant 5s lag in input.

- Apparently there is no timeout for non-native completions, as in the
case of C-c C-f described above this can freeze emacs, but in this
case it doesn't even have to be manually triggered.

- More complexity but the attempts still fall short. Probably ad hoc
patches have been piling up over the years.

Perhaps we can improve the timeout strategy, simplify it and make it
more coherent, and thus avoid throwing the baby out with the
bathwater. It won't be perfect since documentation sometimes will be
missing, completions sometimes will be missing, the prompt count will
still change mysteriously, but at least it will be safe and
comprehensible.

Best regards,
Carlos





  reply	other threads:[~2021-10-15  2:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-13 23:42 bug#51196: 29.0.50; python.el eldoc problems Carlos Pita
2021-10-15  2:05 ` Carlos Pita [this message]
2021-10-15 20:30   ` Augusto Stoffel
2021-10-15 20:22 ` Augusto Stoffel
2021-10-15 20:33   ` Carlos Pita
2021-10-16  9:15     ` Augusto Stoffel
2021-10-16 18:49       ` Carlos Pita

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=CAEOO5Tdmw1SeqUou9a0Vx6_kYLziqoUrKSi9_bZFNT6JxaQMPw@mail.gmail.com \
    --to=carlosjosepita2@gmail.com \
    --cc=51196@debbugs.gnu.org \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).