diff options
author | Sean Allred <code@seanallred.com> | 2015-01-15 00:01:32 -0500 |
---|---|---|
committer | Sean Allred <code@seanallred.com> | 2015-01-15 00:07:12 -0500 |
commit | 3328a62d42ff3ca62c31366a4cd0cfd38a3ec663 (patch) | |
tree | 7aa50782f1408fde2280933455beb2afe844dec7 /sx-question-list.el | |
parent | 766d008e12d7164053bda6d56f336af442109232 (diff) |
Create and implement comparator creation macro
This obsoletes `sx--<'.
Diffstat (limited to 'sx-question-list.el')
-rw-r--r-- | sx-question-list.el | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sx-question-list.el b/sx-question-list.el index 1b7fe5a..5909156 100644 --- a/sx-question-list.el +++ b/sx-question-list.el @@ -322,11 +322,11 @@ into consideration. ;; Add a setter to protect the value. :group 'sx-question-list) -(defun sx-question-list--date-more-recent-p (x y) - "Non-nil if tabulated-entry X is newer than Y." - (sx--< - sx-question-list-date-sort-method - (car x) (car y) #'>)) +(sx--create-comparator sx-question-list--date-more-recent-p + "Non-nil if tabulated-entry A is newer than B." + > (lambda (x) + (cdr (assoc sx-question-list-date-sort-method + (car x))))) ;;; Keybinds |