-
-
Notifications
You must be signed in to change notification settings - Fork 337
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ivy compares :action against the literal symbol 'identity #1632
Comments
This should be replaced with something less gross once abo-abo#1632 is solved.
Work around abo-abo/swiper#1632 temporarily.
Your code doesn't break if you fix the missing quote: - :history file-name-history
+ :history 'file-name-history
Checking for |
Actually, it does still break. Exactly the same thing happens with or without that quote.
It is? Where is that documented?
OK, fine, but why would that affect the operation of
Not in my setup. I use
Yes, of course. But I must be misunderstanding something here. Firstly, if the action is |
FWIW, the actual problem in my setup is that |
Can you give me a reproducible scenario, since I can't reproduce with |
I'm using revision 80f05a7 of the (ivy-read "Find file: " 'read-file-name-internal
:predicate 'file-exists-p
:require-match 'confirm-after-completion
:initial-input "~/.emacs.d/init.el"
:preselect "~/.emacs.d/init.el"
:def "~/.emacs.d/init.el"
:history 'file-name-history
:keymap nil
:sort t
:dynamic-collection nil
:caller 'read-file-name-internal
:action (lambda (x) x)) pressed Do you not have a file called |
No.
Using 26.1 on Ubuntu 16. No error is reproduced. Instead, I'm getting the input "~/.emacs.d/init.el" in the minibuffer and |
FWIW, you can just use |
Even if you create I get the same result with Also, I tried the same thing (with Also, I found another machine running a newer version of macOS, did a fresh Frankly I've yet to find a situation in which the problem isn't reproduced. |
This fixes abo-abo/swiper#1632.
Thanks, please test. |
…ial-input * ivy-test.el (ivy-read-file-name-initial-input): Add test Fixes abo-abo#1632
The following code emulates the operation of
find-file
withivy-mode
enabled. It works fine (see screenshot below):The following code does the same but substituting the function
(lambda (x) x)
instead of'identity
. This should make no difference at all, but actually it breaks Ivy:This is because there is a check against the literal symbol
'identity
inivy--reset-state
:swiper/ivy.el
Lines 1917 to 1918 in 6f29394
The text was updated successfully, but these errors were encountered: