GNU bug report logs - #77718
31.0.50; completion styles substring and flex are broken

Previous Next

Package: emacs;

Reported by: Stephen Berman <stephen.berman <at> gmx.net>

Date: Thu, 10 Apr 2025 22:23:02 UTC

Severity: normal

Found in version 31.0.50

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Full log


Message #136 received at 77718 <at> debbugs.gnu.org (full text, mbox):

From: Stephen Berman <stephen.berman <at> gmx.net>
To: Spencer Baugh <sbaugh <at> janestreet.com>
Cc: 77718 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>,
 Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: Re: bug#77718: 31.0.50; completion styles substring and flex are
 broken
Date: Tue, 17 Jun 2025 17:52:16 +0200
[Message part 1 (text/plain, inline)]
On Tue, 17 Jun 2025 10:59:56 -0400 Spencer Baugh <sbaugh <at> janestreet.com> wrote:

> Stephen Berman <stephen.berman <at> gmx.net> writes:
>> On Mon, 02 Jun 2025 12:38:06 +0200 Stephen Berman <stephen.berman <at> gmx.net> wrote:
>>
>>> On Fri, 02 May 2025 14:44:04 +0200 Stephen Berman <stephen.berman <at> gmx.net> wrote:
>>>
>>>> On Fri, 2 May 2025 08:26:44 -0400 Spencer Baugh <sbaugh <at> janestreet.com> wrote:
>>>>
>>>>> On Fri, May 2, 2025, 4:30 AM Stephen Berman <stephen.berman <at> gmx.net> wrote:
>>>>
>>>>>> What about the other regression I mentioned?  Have you looked at that
>>>>>> and tried the fix for it I included?  If there are no objections to that
>>>>>> patch, I'd like to install it on master.  Or if there are problems with
>>>>>> it, I'd welcome a better fix.
>>>>>>
>>>>>
>>>>> That fix is not right and would cause other issues.
>>>>
>>>> When you have the opportunity, please say what those issues are; I have
>>>> been using my patch since the first version of your changes that
>>>> introduced this regression and don't recall any issues with it with my
>>>> setup, but admittedly I haven't extensive testing with -Q or other
>>>> configurations.
>>>
>>> Do you have a rough ETA for fixing this regression?  And again, can you
>>> please explain what's wrong with my fix?
>>
>> Progress on this issue seems to be stalled.  I have no reason to doubt
>> my fix may be problematic for use cases I haven't encountered, but I
>> don't know what these are, so I cannot reasonably investigate further.
>> If my patch is installed, those who encounter any problems due to it can
>> report them, which hopefully will facilitate finding a better fix.
>> Therefore, I request permission to install my patch.  If it causes
>> serious problems for which there is no quick fix, it can be reverted.
>
> There is no other regression.  rfn-eshadow works correctly, graying out
> the section of the minibuffer text which will be removed by
> substitute-in-file-name when read-file-name returns, even if point is in
> that section of the text.  This has always been the case.  Likewise, the
> pcm-based completion styles sometimes move point into that text on
> try-completion.  This has also always been the case.  So there is no
> other regression.

I'm not sure what you mean by "no other regression", but what I reported
upstream still holds in current master.  That is, start Emacs like this:

emacs -Q --eval "(custom-set-variables '(completion-category-overrides '((file (styles substring)))))"

After typing `C-x d / TAB', I see this on master:
[master-1.png (image/png, attachment)]
[Message part 3 (text/plain, inline)]
and after continuing typing `us TAB TAB', I see this:
[master-2.png (image/png, attachment)]
[Message part 5 (text/plain, inline)]
In contrast, starting emacs-30 as above and making the same input, I see
the following:
[emacs-30-1.png (image/png, attachment)]
[emacs-30-2.png (image/png, attachment)]
[Message part 8 (text/plain, inline)]
And these last two results are also what I see when I repeat the test on
master with my patch applied.

Steve

This bug report was last modified today.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.