# HG changeset patch # User John Wiegley # Date 1082284289 0 # Node ID 8456893f6790ab569cab83a3951b855a8be36e8d # Parent 254afca958979ceb445ead8c27e3fbf4c0e8a166 2004-04-18 John Wiegley * iswitchb.el (iswitchb-completions): Removed dependency on cl. diff -r 254afca95897 -r 8456893f6790 lisp/iswitchb.el --- a/lisp/iswitchb.el Sun Apr 18 10:30:54 2004 +0000 +++ b/lisp/iswitchb.el Sun Apr 18 10:31:29 2004 +0000 @@ -1244,10 +1244,16 @@ (> (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)