1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-28 07:45:00 +00:00

lisp/gnus/registry.el (registry-collect-prune-candidates): Fix call to cl-subseq

This commit is contained in:
Eric Abrahamsen 2015-03-20 10:49:06 +00:00 committed by Katsumi Yamaoka
parent 395a76ad1c
commit b8ea3aa9db
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2015-03-19 Eric Abrahamsen <eric@ericabrahamsen.net>
* registry.el (registry-collect-prune-candidates): Fix call to
cl-subseq.
2015-03-11 Stefan Monnier <monnier@iro.umontreal.ca>
* gnus-registry.el (gnus-registry-handle-action)

View File

@ -371,7 +371,7 @@ entries first and return candidates from beginning of list."
;; list of entry keys.
(when sortfunc
(setq candidates (sort candidates sortfunc)))
(delq nil (cl-subseq (mapcar #'car candidates) 0 limit))))
(cl-subseq (mapcar #'car candidates) 0 (min limit (length candidates)))))
(provide 'registry)
;;; registry.el ends here