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
Closed

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

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

Comments

@basil-conto
Copy link
Collaborator

@basil-conto basil-conto 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant