summaryrefslogtreecommitdiff
path: root/lisp/iswitchb.el
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-04-18 10:31:29 +0000
committerJohn Wiegley <johnw@newartisans.com>2004-04-18 10:31:29 +0000
commit5f5d410aa19f840c08bcaab3813d98a8bf2c661c (patch)
tree12174ca2f8bcbaefd3c7f67681d8d4124c97ebdc /lisp/iswitchb.el
parent8fef838baa982c613d889de20af69020864dd74d (diff)
downloademacs-5f5d410aa19f840c08bcaab3813d98a8bf2c661c.tar.gz
2004-04-18 John Wiegley <johnw@newartisans.com>
* iswitchb.el (iswitchb-completions): Removed dependency on cl.
Diffstat (limited to 'lisp/iswitchb.el')
-rw-r--r--lisp/iswitchb.el12
1 files changed, 9 insertions, 3 deletions
diff --git a/lisp/iswitchb.el b/lisp/iswitchb.el
index 0c43c270751..4f560820b09 100644
--- a/lisp/iswitchb.el
+++ b/lisp/iswitchb.el
@@ -1244,10 +1244,16 @@ Modified from `icomplete-completions'."
(> (length comps) iswitchb-max-to-show))
(setq comps
(append
- (subseq comps 0 (/ iswitchb-max-to-show 2))
+ (let ((res nil)
+ (comp comps)
+ (end (/ iswitchb-max-to-show 2)))
+ (while (>= (setq end (1- end)) 0)
+ (setq res (cons (car comp) res)
+ comp (cdr comp)))
+ (nreverse res))
(list "...")
- (subseq comps (- (length comps)
- (/ iswitchb-max-to-show 2))))))
+ (nthcdr (- (length comps)
+ (/ iswitchb-max-to-show 2)) comps))))
(let* (
;;(most (try-completion name candidates predicate))
(most nil)