diff options
| author | Eric Abrahamsen | 2015-03-20 10:49:06 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2015-03-20 10:49:06 +0000 |
| commit | b8ea3aa9dbcc17c0a38214aebdc7cb2b579c34ff (patch) | |
| tree | 6dacf3632fe1405fa980d57327b7e21d37b64384 | |
| parent | 395a76ad1c16614adf166a68658f68dd41b2aaa2 (diff) | |
| download | emacs-b8ea3aa9dbcc17c0a38214aebdc7cb2b579c34ff.tar.gz emacs-b8ea3aa9dbcc17c0a38214aebdc7cb2b579c34ff.zip | |
lisp/gnus/registry.el (registry-collect-prune-candidates): Fix call to cl-subseq
| -rw-r--r-- | lisp/gnus/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/gnus/registry.el | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 64124bc183d..7e962f73068 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2015-03-19 Eric Abrahamsen <eric@ericabrahamsen.net> | ||
| 2 | |||
| 3 | * registry.el (registry-collect-prune-candidates): Fix call to | ||
| 4 | cl-subseq. | ||
| 5 | |||
| 1 | 2015-03-11 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2015-03-11 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 7 | ||
| 3 | * gnus-registry.el (gnus-registry-handle-action) | 8 | * gnus-registry.el (gnus-registry-handle-action) |
diff --git a/lisp/gnus/registry.el b/lisp/gnus/registry.el index 1c83b939d80..6ee1c316643 100644 --- a/lisp/gnus/registry.el +++ b/lisp/gnus/registry.el | |||
| @@ -371,7 +371,7 @@ entries first and return candidates from beginning of list." | |||
| 371 | ;; list of entry keys. | 371 | ;; list of entry keys. |
| 372 | (when sortfunc | 372 | (when sortfunc |
| 373 | (setq candidates (sort candidates sortfunc))) | 373 | (setq candidates (sort candidates sortfunc))) |
| 374 | (delq nil (cl-subseq (mapcar #'car candidates) 0 limit)))) | 374 | (cl-subseq (mapcar #'car candidates) 0 (min limit (length candidates))))) |
| 375 | 375 | ||
| 376 | (provide 'registry) | 376 | (provide 'registry) |
| 377 | ;;; registry.el ends here | 377 | ;;; registry.el ends here |