aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/icomplete.el15
2 files changed, 13 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index c2014ac2fd9..e98d6f93852 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * icomplete.el (icomplete-completions): Don't use `predicate' with
4 a table of a different type than `candidates'.
5
12008-05-20 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de> 62008-05-20 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
2 7
3 * proced.el (proced-goal-header-re): Renamed from 8 * proced.el (proced-goal-header-re): Renamed from
diff --git a/lisp/icomplete.el b/lisp/icomplete.el
index 38fbf8f42e7..369342e4d91 100644
--- a/lisp/icomplete.el
+++ b/lisp/icomplete.el
@@ -291,13 +291,14 @@ are exhibited within the square braces.)"
291 ;; `icomplete-prospects-length', there is no need for `catch'/`throw'. 291 ;; `icomplete-prospects-length', there is no need for `catch'/`throw'.
292 (if (null comps) 292 (if (null comps)
293 (format " %sNo matches%s" open-bracket close-bracket) 293 (format " %sNo matches%s" open-bracket close-bracket)
294 (let* ((most-try (completion-try-completion 294 (let* ((most-try
295 name 295 (if (and base-size (> base-size 0))
296 ;; If the `comps' are 0-based, the result should be 296 (completion-try-completion
297 ;; the same with `comps'. 297 name candidates predicate (length name))
298 (if base-size candidates comps) 298 ;; If the `comps' are 0-based, the result should be
299 predicate 299 ;; the same with `comps'.
300 (length name))) 300 (completion-try-completion
301 name comps nil (length name))))
301 (most (if (consp most-try) (car most-try) (car comps))) 302 (most (if (consp most-try) (car most-try) (car comps)))
302 ;; Compare name and most, so we can determine if name is 303 ;; Compare name and most, so we can determine if name is
303 ;; a prefix of most, or something else. 304 ;; a prefix of most, or something else.