unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Augusto Stoffel <arstoffel@gmail.com>
To: Carlos Pita <carlosjosepita2@gmail.com>
Cc: 51196@debbugs.gnu.org
Subject: bug#51196: 29.0.50; python.el eldoc problems
Date: Sat, 16 Oct 2021 11:15:36 +0200	[thread overview]
Message-ID: <87zgr949fr.fsf@gmail.com> (raw)
In-Reply-To: <CAEOO5Tdx3cfGpSm1BKeauaHYHKH37yUpc08EKESrKabPOHp7iw@mail.gmail.com> (Carlos Pita's message of "Fri, 15 Oct 2021 17:33:57 -0300")

On Fri, 15 Oct 2021 at 17:33, Carlos Pita <carlosjosepita2@gmail.com> wrote:

> Hi Augusto,
>
>> > - Have a sane, solid and simple python.el with good syntax highlighting,
>> >   movements commands, folding, etc. and leave the cleverness to elpy,
>> >   lsp-mode, eglot, emacs-jupyter or whatever.
>>
>> But the problematic Eldoc functionality is disabled by default, right?
>> So leaving it there doesn't hurt anyone --- except for the unwitting
>> user who doesn't know that this feature is kind of broken.
>
> No, it's not, all the magic is enabled by default, only piecemeal
> measures have been taken over the years in order to prevent blocking
> behavior, so for example now eldoc disables itself forever after 1s
> timeout.

I see.  I never noticed this because Eglot masks the completion/eldoc
functions from python.el.

As you already mentioned, the biggest problem here is to use the same
Python process/thread for both REPL interaction _and_
completion/documentation stuff.  Individually, each of these things
works alright, but mixing the two is just never going to work
flawlessly.

> But that's not true of non-native completion AFAICS and
> it certainly isn't of C-c C-f (help on symbol).

If the user explicitly types C-c C-f, then I see no problem in the
blocking behavior.

> And improving on this by adding even more special cases doesn't sound
> like a good idea.
>
> Best regards,
> Carlos





  reply	other threads:[~2021-10-16  9:15 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
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 [this message]
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=87zgr949fr.fsf@gmail.com \
    --to=arstoffel@gmail.com \
    --cc=51196@debbugs.gnu.org \
    --cc=carlosjosepita2@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 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).