ivy-read and text properties #1724
Closed
Comments
basil-conto
added a commit
to basil-conto/swiper
that referenced
this issue
Aug 21, 2018
Strip idx property from entire candidate returned ivy.el (ivy-read): Strip idx property from entire candidate returned following commit 4ca8786 "ivy.el: Avoid modifying alist collection". ivy-test.el (ivy-read): Test idx property removal. Re: abo-abo#1706 Fixes abo-abo#1724
The property is also removed from the return value of
Yes, this is a regression caused by 4ca8786 which applies the I've submitted PR #1725 which should fix this; please test. Thanks. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently there are cases where
ivy-read
returns a propertized string (see test case below). There is code at the end ofivy-read
that removesidx
property, but it is done after the function return value has been calculated (prog1
).I think this is a bug with Ivy because:
ivy-completing-read
is supposed to be compatible withcompleting-read
, and it is not if there are observable differences between the two given the same inputs.idx
property is an implementation detail of Ivy that should not be leaking out.At the moment I'm using an advice around
ivy-read
to strip away any text properties (usingsubstring-no-properties
), but it would be nice if the library could be fixed properly.The text was updated successfully, but these errors were encountered: