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: John Wiegley
Subject: Re: [pcomplete.el (pcomplete-completions-at-point)] Why max?
Date: Wed, 20 Mar 2019 16:38:54 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.92 (darwin)

>>>>> "SM" == Stefan Monnier <address@hidden> writes:

SM> It's because when we

SM>     (string-prefix-p s2 string completion-ignore-case)

SM> instead of

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

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

Thank you, Stefan!

-- 
John Wiegley                  GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com                          60E1 46C4 BD1A 7AC1 4BA2



reply via email to

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