diff options
| author | John Wiegley | 2004-04-18 10:31:29 +0000 |
|---|---|---|
| committer | John Wiegley | 2004-04-18 10:31:29 +0000 |
| commit | 5f5d410aa19f840c08bcaab3813d98a8bf2c661c (patch) | |
| tree | 12174ca2f8bcbaefd3c7f67681d8d4124c97ebdc | |
| parent | 8fef838baa982c613d889de20af69020864dd74d (diff) | |
| download | emacs-5f5d410aa19f840c08bcaab3813d98a8bf2c661c.tar.gz emacs-5f5d410aa19f840c08bcaab3813d98a8bf2c661c.zip | |
2004-04-18 John Wiegley <johnw@newartisans.com>
* iswitchb.el (iswitchb-completions): Removed dependency on cl.
| -rw-r--r-- | lisp/iswitchb.el | 12 |
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'." | |||
| 1244 | (> (length comps) iswitchb-max-to-show)) | 1244 | (> (length comps) iswitchb-max-to-show)) |
| 1245 | (setq comps | 1245 | (setq comps |
| 1246 | (append | 1246 | (append |
| 1247 | (subseq comps 0 (/ iswitchb-max-to-show 2)) | 1247 | (let ((res nil) |
| 1248 | (comp comps) | ||
| 1249 | (end (/ iswitchb-max-to-show 2))) | ||
| 1250 | (while (>= (setq end (1- end)) 0) | ||
| 1251 | (setq res (cons (car comp) res) | ||
| 1252 | comp (cdr comp))) | ||
| 1253 | (nreverse res)) | ||
| 1248 | (list "...") | 1254 | (list "...") |
| 1249 | (subseq comps (- (length comps) | 1255 | (nthcdr (- (length comps) |
| 1250 | (/ iswitchb-max-to-show 2)))))) | 1256 | (/ iswitchb-max-to-show 2)) comps)))) |
| 1251 | (let* ( | 1257 | (let* ( |
| 1252 | ;;(most (try-completion name candidates predicate)) | 1258 | ;;(most (try-completion name candidates predicate)) |
| 1253 | (most nil) | 1259 | (most nil) |