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#50459: 28.0.50; Python shell completion is incompatible with flex, orderless, etc. Date: Sat, 11 Sep 2021 14:34:20 +0200 Message-ID: <87ilz71eb7.fsf@gmail.com> References: <87wnnsl1d1.fsf@gmail.com> <87czpijixk.fsf@gmail.com> <877dfqjfwu.fsf@gmail.com> <87mtolr91a.fsf@gmail.com> <877dfopsoa.fsf@gnus.org> <87zgskejjq.fsf@gmail.com> <87lf43nwkd.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25944"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 50459@debbugs.gnu.org, Gregory Heytings , Michael Albinus , joaotavora@gmail.com To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 11 14:35:19 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 1mP2E3-0006Yt-Ar for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 11 Sep 2021 14:35:19 +0200 Original-Received: from localhost ([::1]:47330 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mP2E1-00032h-TR for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 11 Sep 2021 08:35:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51672) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mP2Dm-00032Q-MA for bug-gnu-emacs@gnu.org; Sat, 11 Sep 2021 08:35:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56367) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mP2Dm-0006R4-Cl for bug-gnu-emacs@gnu.org; Sat, 11 Sep 2021 08:35:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mP2Dm-00008b-7a for bug-gnu-emacs@gnu.org; Sat, 11 Sep 2021 08:35: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, 11 Sep 2021 12:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50459 X-GNU-PR-Package: emacs Original-Received: via spool by 50459-submit@debbugs.gnu.org id=B50459.1631363670471 (code B ref 50459); Sat, 11 Sep 2021 12:35:02 +0000 Original-Received: (at 50459) by debbugs.gnu.org; 11 Sep 2021 12:34:30 +0000 Original-Received: from localhost ([127.0.0.1]:39677 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mP2DG-00007W-FQ for submit@debbugs.gnu.org; Sat, 11 Sep 2021 08:34:30 -0400 Original-Received: from mail-wr1-f47.google.com ([209.85.221.47]:37531) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mP2DE-00007I-Rp for 50459@debbugs.gnu.org; Sat, 11 Sep 2021 08:34:29 -0400 Original-Received: by mail-wr1-f47.google.com with SMTP id t8so1679800wrq.4 for <50459@debbugs.gnu.org>; Sat, 11 Sep 2021 05:34:28 -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=FX/wQudVg5/LNb3nmZP4FpiHOFOB55rt3bfhdwUr6rQ=; b=OAzyoli4cHsU64XI4PG9Rrq0dSYzzXMMxXaU+3NxOgGMMcwKKL2vnKnNf/m/SR7oLd 1UGxE6/qezcibGQhH+vAMXd+O/osGo13X1Ixo9T6q1Ul+vvDIAsBlNmQT8YEXQedlAbt QsP1L5x7lG6ioreDMbCxqrV1kt4G9TPP79gh93dvaJuVmFKmOsJ/zwGKLb31DiQT4q99 xL76KQdNTpCcKtGftLaau5dPx4l0z6hZGVRypIshtAaj+Eqye1i7k8aX5R6S1RN7SVGG 32EtZCwfWn9jtEG25IJBEHKdfbJ6+Bxri6JAZSj6wvi1hM8i3UdCuvKeGWofMXW1awk1 +C6w== 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=FX/wQudVg5/LNb3nmZP4FpiHOFOB55rt3bfhdwUr6rQ=; b=FTIN6dmNqWn7WiX97ZIHA67hxQapmwqxZlwD23zSAeDypaL39uO3yykMyYHqZdoIKX C8CLwEPvlAypTUwqXPDbWJ2xBQ6SMTzL7osd77J/KLQ3T3da5YIzmfuSLVPQJIUhZpz/ pcQZmN9cggGvCBTqdVI5hiHfQv71BmH7xC4XmPLBecN650kzJGOcuZQB9kRxJTTLVy8L XQp4nZpln+1Eqrud6j6j7lbqHekOIdr8KTqj85jLC3KXW5y1mcNYjZKsUC6vzNX6fI04 RsuCol3A6+SoNA7AZ8gP2jjM056hcrQ9p5zuO6ZZU0/BmYYgeKQkImJK44D8rJKm/99K 77Lg== X-Gm-Message-State: AOAM533lZBNjmUewnppDZz43vwJI84iHbilDjOMUgXHn5U3C94K/eV8u XrMePs4bWtaKuYNEI9hFub0= X-Google-Smtp-Source: ABdhPJzIL4OzzD36foLfwyVuwj16Ya1qcCfIvhNG/iCeijV2VSJlAKloBNGcf1QXh0DNxcsKcQtbcA== X-Received: by 2002:adf:c148:: with SMTP id w8mr3007294wre.317.1631363661994; Sat, 11 Sep 2021 05:34:21 -0700 (PDT) Original-Received: from ars3 ([2a02:8109:8ac0:56d0::b1d]) by smtp.gmail.com with ESMTPSA id e2sm1604304wra.40.2021.09.11.05.34.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Sep 2021 05:34:21 -0700 (PDT) In-Reply-To: <87lf43nwkd.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sat, 11 Sep 2021 14:09:06 +0200") 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:214062 Archived-At: On Sat, 11 Sep 2021 at 14:09, Lars Ingebrigtsen wrote: > Augusto Stoffel writes: > >> That's true: the logic here is that the completions are computed >> eagerly, and then cached until still valid. So if you type >> >> foo.bar.baz >> >> the inferior process is contacted 3 times: after the , and after >> each dot. Before, a lazy table was returned, but the inferior would be >> contacted after each character anyway (if using Company or similar). > > Ah, I see, then that sounds like a definite improvement. My other > question is then how the cache is flushed... The cache will be flushed, at the earliest, when a new call to 'python-shell-completion-at-point' is made. And the criterium is the following: - If the prompt moved, then the cache is flushed. - If the current completion prefix (the text between 'start' and 'end') is not identical to the original completion prefix, except for the addition of some word or symbol characters at the end, then the cache is flushed. That's it in a nutshell. I can give more details if you want.