From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Carlos Pita Newsgroups: gmane.emacs.bugs Subject: bug#51196: 29.0.50; python.el eldoc problems Date: Thu, 14 Oct 2021 23:05:20 -0300 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4768"; mail-complaints-to="usenet@ciao.gmane.io" To: 51196@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 15 04:06:30 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 1mbCc8-00015p-LK for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 Oct 2021 04:06:28 +0200 Original-Received: from localhost ([::1]:47512 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mbCc7-0001yl-Jt for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Oct 2021 22:06:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51822) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mbCbm-0001up-Pr for bug-gnu-emacs@gnu.org; Thu, 14 Oct 2021 22:06:08 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54167) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mbCbi-0004la-QD for bug-gnu-emacs@gnu.org; Thu, 14 Oct 2021 22:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mbCbi-0006Ej-Ba for bug-gnu-emacs@gnu.org; Thu, 14 Oct 2021 22:06:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Carlos Pita Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Oct 2021 02:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51196 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.163426354423945 (code B ref -1); Fri, 15 Oct 2021 02:06:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Oct 2021 02:05:44 +0000 Original-Received: from localhost ([127.0.0.1]:37480 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mbCbQ-0006E9-EU for submit@debbugs.gnu.org; Thu, 14 Oct 2021 22:05:44 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:50826) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mbCbL-0006Dw-Kd for submit@debbugs.gnu.org; Thu, 14 Oct 2021 22:05:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51756) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mbCbL-0001mp-DP for bug-gnu-emacs@gnu.org; Thu, 14 Oct 2021 22:05:39 -0400 Original-Received: from mail-yb1-xb2b.google.com ([2607:f8b0:4864:20::b2b]:41599) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mbCbI-0004UN-DX for bug-gnu-emacs@gnu.org; Thu, 14 Oct 2021 22:05:38 -0400 Original-Received: by mail-yb1-xb2b.google.com with SMTP id s4so19141371ybs.8 for ; Thu, 14 Oct 2021 19:05:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=7ysLDcbzWm2TqLT/M9/xmVxrkfG9c2KvfVeyO5sIvxk=; b=k5V/a7vTuAm4u9NreD++pd4/OtahK9L8PkO14Fxnxd/fLYmsmij/Zuvm0tirq0UKWL q1g3pgH/UHu0PJlUjKlYfJXv4YrXVwA1pCszZ9Q1ZJ/sD7fCmU+o15DNCb8XUqkY0mI6 s/vD+MwQQfdwn9zFOLkhG7YZz56RZs0kwRMUw8+XDiLBHruMxaEln8H4FCMs+cN00nVz iw4mSdWt3K5WJA8fcgCqzXfAhm3IifUmDFU9D6abyl1y871W+pbOTnG3Ihcmvyqnrujn a/Q66iw/cGEWScSdfIpMbF8Kb/7K8kK4k5S/2/DoRuOSwk8AFjrNZzgWaFmMEw9qlQnk sk2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=7ysLDcbzWm2TqLT/M9/xmVxrkfG9c2KvfVeyO5sIvxk=; b=3uVcTxrOWIE24mdwXcSi4J4lmcROUw2ebHs0hbU7ELTImC1Urf5ArIywGdYeVc8tjZ 42x+8YCmBTs20szZk7dcA5AkXKAqJ3J9LLhQjv2xUkgvxuZF2ysP/AFufiDZM/jeGAsY yvTYW1Qbq64uJomGY3ez+WugiOAwZo1Mx86cO233ncGSStg1N1D0ezWEgnmAXFzCxgVH oQQ/RrzMp9/Niw3u0NEFlhPaliAwpfvvGGrKdg7GjfpohyfFDvAmF7ntZsOPa99NHrWG PxjA/hvuCihwazhqYbnujEYI2Djg9kNJpQ04s3GVeOVDm7EKvmqzsA/eh0Ca9Zc219yA oibw== X-Gm-Message-State: AOAM532UWICupbsjSwzmnpQhCwgUBsrjVvk3mRMmOqNGMQu+HqUAa0cy taZ82OXGtR2fEReQTvDwqJYWYJ+jJ9lrCVhLrHFySGjh4k8VqA== X-Google-Smtp-Source: ABdhPJwvCKwPuXrou958feMHSlQOaLwFUr1+4C3kBZl/AtPwC3VGF/7I72RBACyC9fl8p2bckSaLYZgJjYYYjgUGi40= X-Received: by 2002:a25:3104:: with SMTP id x4mr10038408ybx.512.1634263535032; Thu, 14 Oct 2021 19:05:35 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::b2b; envelope-from=carlosjosepita2@gmail.com; helo=mail-yb1-xb2b.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:217277 Archived-At: 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