[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#50459: 28.0.50; Python shell completion is incompatible with flex, o
From: |
Augusto Stoffel |
Subject: |
bug#50459: 28.0.50; Python shell completion is incompatible with flex, orderless, etc. |
Date: |
Sat, 11 Sep 2021 14:34:20 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
On Sat, 11 Sep 2021 at 14:09, Lars Ingebrigtsen <larsi@gnus.org> wrote:
> Augusto Stoffel <arstoffel@gmail.com> writes:
>
>> That's true: the logic here is that the completions are computed
>> eagerly, and then cached until still valid. So if you type
>>
>> fo<tab>o.bar.baz
>>
>> the inferior process is contacted 3 times: after the <tab>, 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.
- bug#50459: 28.0.50; Python shell completion is incompatible with flex, orderless, etc., (continued)
- bug#50459: 28.0.50; Python shell completion is incompatible with flex, orderless, etc., Augusto Stoffel, 2021/09/10
- bug#50459: 28.0.50; Python shell completion is incompatible with flex, orderless, etc., João Távora, 2021/09/10
- bug#50459: 28.0.50; Python shell completion is incompatible with flex, orderless, etc., Dmitry Gutov, 2021/09/10
- bug#50459: 28.0.50; Python shell completion is incompatible with flex, orderless, etc., João Távora, 2021/09/10
- bug#50459: 28.0.50; Python shell completion is incompatible with flex, orderless, etc., Dmitry Gutov, 2021/09/10
- bug#50459: 28.0.50; Python shell completion is incompatible with flex, orderless, etc., João Távora, 2021/09/10
- bug#50459: 28.0.50; Python shell completion is incompatible with flex, orderless, etc., Dmitry Gutov, 2021/09/10
- bug#50459: 28.0.50; Python shell completion is incompatible with flex, orderless, etc., Augusto Stoffel, 2021/09/10
- bug#50459: 28.0.50; Python shell completion is incompatible with flex, orderless, etc., João Távora, 2021/09/10
- bug#50459: 28.0.50; Python shell completion is incompatible with flex, orderless, etc., Lars Ingebrigtsen, 2021/09/11
- bug#50459: 28.0.50; Python shell completion is incompatible with flex, orderless, etc.,
Augusto Stoffel <=
- bug#50459: 28.0.50; Python shell completion is incompatible with flex, orderless, etc., Lars Ingebrigtsen, 2021/09/11
- bug#50459: 28.0.50; Python shell completion is incompatible with flex, orderless, etc., Dmitry Gutov, 2021/09/10
bug#50459: 28.0.50; [PATCH] Python shell completion is incompatible with flex, orderless, etc., Augusto Stoffel, 2021/09/10