diff options
author | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-02-21 10:27:53 -0200 |
---|---|---|
committer | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-02-21 10:27:53 -0200 |
commit | 546f30134df637e912ea947aac942f940c275faf (patch) | |
tree | cc699167a3ff901babde186931e25f6c35508fcd /sx-question.el | |
parent | 2f398913b77d190f2e0c96ba15296c231ba21e18 (diff) | |
parent | ca121c0c65e0e689af2ee859fdd8ebea8bc44bc5 (diff) |
Merge branch 'master' into small-improvements
Diffstat (limited to 'sx-question.el')
-rw-r--r-- | sx-question.el | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sx-question.el b/sx-question.el index 1df4900..1162eb9 100644 --- a/sx-question.el +++ b/sx-question.el @@ -148,7 +148,8 @@ See `sx-question--user-read-list'." ;; Question wasn't present. (t (sx-sorted-insert-skip-first - q-cell site-cell (lambda (x y) (> (car x) (car y)))))))) + q-cell site-cell + (lambda (x y) (> (or (car x) -1) (or (car y) -1)))))))) ;; Save the results. ;; @TODO This causes a small lag on `j' and `k' as the list gets ;; large. Should we do this on a timer? @@ -196,20 +197,14 @@ If no cache exists for it, initialize one with SITE." ;;;; Other data - (defun sx-question--accepted-answer-id (question) "Return accepted answer in QUESTION or nil if none exists." (sx-assoc-let question (and (integerp .accepted_answer_id) .accepted_answer_id))) -(defun sx-question--tag-format (tag) - "Formats TAG for display." - (concat "[" tag "]")) - ;;; Question Mode Answer-Sorting Functions - (sx--create-comparator sx-answer-higher-score-p "Return t if answer A has a higher score than answer B." #'> (lambda (x) (cdr (assq 'score x)))) |