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: Lars Ingebrigtsen
Subject: Re: master 87e422f: Beef up the Emacs string utility set a bit
Date: Mon, 21 Dec 2020 22:11:44 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

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...

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



reply via email to

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