[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 65979f6 291/348: Heed non-sort entries in ivy-sort-functio
From: |
Oleh Krehel |
Subject: |
[elpa] master 65979f6 291/348: Heed non-sort entries in ivy-sort-functions-alist |
Date: |
Sat, 8 Apr 2017 11:04:17 -0400 (EDT) |
branch: master
commit 65979f62f8e8e75a0bdc3f6a86a65539042a4017
Author: Basil L. Contovounesios <address@hidden>
Commit: Oleh Krehel <address@hidden>
Heed non-sort entries in ivy-sort-functions-alist
Currently, ivy--sort-function does not distinguish between
collection functions that are not members of
ivy-sort-functions-alist and ones whose associated sorting function
is nil, i.e. no sorting.
In ivy-completing-read, this meant that the lookup in
ivy-sort-functions-alist would always fall through to the default
sorting function, even for existing collection functions whose CDR
was explicitly set to nil.
Fixes #870
---
ivy.el | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/ivy.el b/ivy.el
index 95e1e1f..8e42efa 100644
--- a/ivy.el
+++ b/ivy.el
@@ -1770,9 +1770,10 @@ INHERIT-INPUT-METHOD is currently ignored."
:history history
:keymap nil
:sort
- (let ((sort (or (ivy--sort-function this-command)
- (ivy--sort-function t))))
- (or sort t)))))
+ (let ((sort (assoc this-command ivy-sort-functions-alist)))
+ (if sort
+ (ivy--sort-function (car sort))
+ (or (ivy--sort-function t) t))))))
(defvar ivy-completion-beg nil
"Completion bounds start.")
- [elpa] master 714cb8c 209/348: ivy.el (ivy--sort-files-by-date): Fix docstring, (continued)
- [elpa] master 714cb8c 209/348: ivy.el (ivy--sort-files-by-date): Fix docstring, Oleh Krehel, 2017/04/08
- [elpa] master 0fc1507 237/348: ivy.el (ivy-occur-mode): Set view-read-only to nil locally, Oleh Krehel, 2017/04/08
- [elpa] master ea260d1 249/348: counsel.el (counsel-grep-occur): Quote the directory name, Oleh Krehel, 2017/04/08
- [elpa] master 3b15585 256/348: Fix little typo, Oleh Krehel, 2017/04/08
- [elpa] master 7dea0ff 255/348: Use ivy-format-function approach for counsel-faces, Oleh Krehel, 2017/04/08
- [elpa] master 2989f25 268/348: swiper.el (swiper--update-input-ivy): Fix window-end call, Oleh Krehel, 2017/04/08
- [elpa] master c2c0e2d 270/348: ivy.el: Simplify previous commit, Oleh Krehel, 2017/04/08
- [elpa] master 75f9ceb 286/348: Allow spaces in file names when running linux apps., Oleh Krehel, 2017/04/08
- [elpa] master 2f70c56 287/348: Revert "Add missing parameter for ag", Oleh Krehel, 2017/04/08
- [elpa] master 950545b 304/348: counsel.el (counsel-linux-apps-list): Check if dir exists, Oleh Krehel, 2017/04/08
- [elpa] master 65979f6 291/348: Heed non-sort entries in ivy-sort-functions-alist,
Oleh Krehel <=
- [elpa] master ce3c0ec 317/348: ivy.el (ivy-completing-read): Adjust :caller, Oleh Krehel, 2017/04/08
- [elpa] master d9d7592 315/348: ivy.el (ivy-completion-in-region): Remove :require-match, Oleh Krehel, 2017/04/08
- [elpa] master 4d72dc1 327/348: ivy.el: Change recursive restore order, Oleh Krehel, 2017/04/08
- [elpa] master d82dc2c 328/348: counsel.el (counsel-colors--best-contrast-color): Return same color on error, Oleh Krehel, 2017/04/08
- [elpa] master 3fbeaa5 333/348: Define ivy-help-file with defconst, Oleh Krehel, 2017/04/08
- [elpa] master fee9810 336/348: ivy.el (ivy-partial): Fix for :dynamic-collection, Oleh Krehel, 2017/04/08
- [elpa] master 5f04a70 322/348: ivy.el: Move ivy-recursive-last logic to ivy-call, Oleh Krehel, 2017/04/08
- [elpa] master ff3b696 338/348: counsel.el (counsel-find-file): Add new action counsel-find-file-as-root, Oleh Krehel, 2017/04/08
- [elpa] master 8c9f6a3 340/348: swiper.el: Silence byte-compiler, Oleh Krehel, 2017/04/08
- [elpa] master a63a935 339/348: counsel.el (counsel--find-symbol): Fix typo, Oleh Krehel, 2017/04/08