changeset 95394:119c6508d4f8

(completion-pcm-all-completions): Add the base-size.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Thu, 29 May 2008 20:46:35 +0000
parents c6d82cbe67bc
children a374273bf2a5
files lisp/ChangeLog lisp/minibuffer.el
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Thu May 29 20:18:07 2008 +0000
+++ b/lisp/ChangeLog	Thu May 29 20:46:35 2008 +0000
@@ -1,3 +1,7 @@
+2008-05-29  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+	* minibuffer.el (completion-pcm-all-completions): Add the base-size.
+
 2008-05-29  Juanma Barranquero  <lekktu@gmail.com>
 
 	* icomplete.el (icomplete-prospects-height): Add :group.
--- a/lisp/minibuffer.el	Thu May 29 20:18:07 2008 +0000
+++ b/lisp/minibuffer.el	Thu May 29 20:46:35 2008 +0000
@@ -1496,7 +1496,9 @@
 (defun completion-pcm-all-completions (string table pred point)
   (destructuring-bind (pattern all &optional prefix suffix)
       (completion-pcm--find-all-completions string table pred point)
-    (completion-pcm--hilit-commonality pattern all)))
+    (when all
+      (nconc (completion-pcm--hilit-commonality pattern all)
+             (length prefix)))))
 
 (defun completion-pcm--merge-completions (strs pattern)
   "Extract the commonality in STRS, with the help of PATTERN."