emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pcomplete.el (pcomplete-completions-at-point)] Why max?


From: Stefan Monnier
Subject: Re: [pcomplete.el (pcomplete-completions-at-point)] Why max?
Date: Wed, 20 Mar 2019 13:11:19 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

> I confirm that commit 18fc4ac5294d85e37d9e544c04b5d4e89ef3237c solves
> the problem.
> Why the problem seems to be dependent on the number of characters and
> their cases?

It's because when we

    (string-prefix-p s2 string completion-ignore-case)
    
instead of

    (string-prefix-p s2 res completion-ignore-case)

we still get the correct result if `string` also happens to begin with
`s2` (in your cases, `s2` is short, typically the same number of chars
as the number of backslashes in your argument).


        Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]