emacs-devel
[Top][All Lists]
Advanced

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

Re: master 87e422f: Beef up the Emacs string utility set a bit


From: Clément Pit-Claudel
Subject: Re: master 87e422f: Beef up the Emacs string utility set a bit
Date: Mon, 21 Dec 2020 16:29:53 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

On 12/21/20 4:11 PM, Lars Ingebrigtsen wrote:
> Clément Pit-Claudel <cpitclaudel@gmail.com> writes:
> 
>>> s-shared-start is already covered by try-completion, right?  Which has
>>> various uses, e.g. in project--read-file-cpd-relative.
>>
>> It's also covered by compare-strings, but both need a bit of setup to
>> do the same as s-shared-start, so a wrapper can be useful (for
>> example, it's easy to forget to reset
>> completion-regexp-list). Additionally, discovering the right function
>> to call can be hard (I hadn't realized that try-completion could be
>> used for this, and neither had the authors or s.el).
> 
> Perhaps adding something like shared-start would be a good addition for
> seq?  The s.el semantics seem a bit unclear -- do "Foobar" and "foozot"
> share a prefix?  Adding to seq (with a predicate to compare characters)
> would be nice...

But slow, right?  Or maybe it would have a fast path for specific predicates? 



reply via email to

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