[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [elpa] master 9f21e1d 06/18: Add a matching optimization
From: |
Stefan Monnier |
Subject: |
Re: [elpa] master 9f21e1d 06/18: Add a matching optimization |
Date: |
Mon, 20 Apr 2015 11:02:45 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
> * ivy.el (ivy-completions): When the new regex `re' is a contains the
> old regex `ivy--old-re', it must be true that all candidates that
> match `re' are contained inside all candidates that match
IIUC ivy-mode treats the minibuffer's content as a regexp, so the user
can write any fancy regexp she wants. In that case, the above is
actually not guaranteed. E.g. "foo" matches fewer candidates than
"foo?".
> + ((and ivy--old-re (eq 0 (cl-search ivy--old-re re)))
Why not use string-prefix-p?
Stefan
- Re: [elpa] master 9f21e1d 06/18: Add a matching optimization,
Stefan Monnier <=