Skip to content
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

:predicate not called on alists with :sort t #1705

Closed
basil-conto opened this issue Aug 7, 2018 · 0 comments

Comments

@basil-conto
Copy link
Collaborator

commented Aug 7, 2018

Compare:

(let (called)
  (setq unread-command-events '(?\C-m))
  (ivy-read "" '((c) (a) (b))
            :predicate (lambda (_) (setq called t))
            :sort t)
  called)
  ;; => nil

with:

(let (called)
  (setq unread-command-events '(?\C-m))
  (ivy-read "" '((c) (a) (b))
            :predicate (lambda (_) (setq called t))
            :sort nil)
  called)
  ;; => t

and:

(let (called)
  (setq unread-command-events '(?\C-m))
  (ivy-read "" '(c a b)
            :predicate (lambda (_) (setq called t))
            :sort t)
  called)
  ;; => t
basil-conto added a commit to basil-conto/swiper that referenced this issue Aug 9, 2018

@abo-abo abo-abo closed this in 75fce36 Aug 9, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.