From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Augusto Stoffel Newsgroups: gmane.emacs.bugs Subject: bug#51196: 29.0.50; python.el eldoc problems Date: Sat, 16 Oct 2021 11:15:36 +0200 Message-ID: <87zgr949fr.fsf@gmail.com> References: <87o87qdomy.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27329"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux) Cc: 51196@debbugs.gnu.org To: Carlos Pita Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 16 11:16: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 1mbfnc-0006wq-Ge for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 16 Oct 2021 11:16:16 +0200 Original-Received: from localhost ([::1]:51756 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mbfnb-0005mL-Eu for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 16 Oct 2021 05:16:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49802) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mbfnO-0005mC-JU for bug-gnu-emacs@gnu.org; Sat, 16 Oct 2021 05:16:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57630) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mbfnO-0004fS-BB for bug-gnu-emacs@gnu.org; Sat, 16 Oct 2021 05:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mbfnO-0000ga-3y for bug-gnu-emacs@gnu.org; Sat, 16 Oct 2021 05:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Augusto Stoffel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 16 Oct 2021 09:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51196 X-GNU-PR-Package: emacs Original-Received: via spool by 51196-submit@debbugs.gnu.org id=B51196.16343757482604 (code B ref 51196); Sat, 16 Oct 2021 09:16:02 +0000 Original-Received: (at 51196) by debbugs.gnu.org; 16 Oct 2021 09:15:48 +0000 Original-Received: from localhost ([127.0.0.1]:40943 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mbfn9-0000fw-VC for submit@debbugs.gnu.org; Sat, 16 Oct 2021 05:15:48 -0400 Original-Received: from mail-wr1-f53.google.com ([209.85.221.53]:45047) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mbfn5-0000fb-JA for 51196@debbugs.gnu.org; Sat, 16 Oct 2021 05:15:46 -0400 Original-Received: by mail-wr1-f53.google.com with SMTP id e3so30420195wrc.11 for <51196@debbugs.gnu.org>; Sat, 16 Oct 2021 02:15:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=+jhptfHV2Hskrv6fg/PJr4tto5a/mY6UohcjM3arqCA=; b=JB6Q/OneoNCAwZ7adPWTCcvZf/Qx6Ax0LIneEnLTNB2TY260gjtTrsAB4eZAX0hMi0 EOFU14AFuREh8Sfrr6vvAe93wAyzFS4KRXYuMkt88Yic2aDZCFKiHNByf2o/DJ84sB8Y crY6lw5KOshdO+sT02HjXTjIgnmYyAOrw67C+DqWxqGFo6hfNCMjCtEvzNltP75F0z+i sWMGWTgHBq0KcL3obKow7USftLITqy4a5Ukuo1ffCMYjR52BslV0/Of5ehQPmxE4oNeK TUPjeNVfzV9qmQuZH09u8VTTTvYlagW0cEy6S6yayACQVWEsCqyoIm1O0KoodGzB6M54 gMXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=+jhptfHV2Hskrv6fg/PJr4tto5a/mY6UohcjM3arqCA=; b=pRCOdBIRaRY1I1aqdYJTmnrjhQEQfcC0MfwgoOarbldTqPoS/8KWknhSEhs5wztBBE gKEDuEZI0sqmb7NRNiaBahsULMTNLRcoj4wYbwbVDnDbQ+X3MyL+KSAQLNNBQ9bJfIVa zOwSagWVE+88dZPdPVrXRM1M5xcXOsPHxc0CHt5F2dDO8VZpiY+I3EnJS1hXM2Bhy4yd J9lJy5+pNGtnl52BMeZP3TTuh1mQCtXYEgagmfbXiQgdMesqz+1rKtRaxqqlKC+BQhf2 yzwFpwYuVoK8tCGewASfU8sy717eQIXYGlJccL+wreEvkif7zbCgPGJySXrwIGu6woZa wTRw== X-Gm-Message-State: AOAM531t/1sFPcPkbdVMdrhtURd20Z6DJCY46I5PooLGDnf5AG89dGPU BuGwxu0RYj55RHID27DVhWwf146VR/s= X-Google-Smtp-Source: ABdhPJyHuajn9Gg6Ga3AUwGDNFT1Ez0OE0KC9kdGwGeIKNBtlXYepaNOtxqpawsP84az9mlLh/uccg== X-Received: by 2002:a05:6000:18aa:: with SMTP id b10mr20287977wri.270.1634375737485; Sat, 16 Oct 2021 02:15:37 -0700 (PDT) Original-Received: from ars3 ([2a02:8109:8ac0:56d0::c48f]) by smtp.gmail.com with ESMTPSA id y8sm6545088wmi.43.2021.10.16.02.15.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Oct 2021 02:15:37 -0700 (PDT) In-Reply-To: (Carlos Pita's message of "Fri, 15 Oct 2021 17:33:57 -0300") 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:217355 Archived-At: On Fri, 15 Oct 2021 at 17:33, Carlos Pita 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