changeset 100022:3e1f480f4b69

(completion--try-word-completion): Don't ignore partial-completion if it's the only style.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Sat, 29 Nov 2008 02:39:19 +0000
parents 81670f15d8b6
children 32c3e2f6272a
files lisp/ChangeLog lisp/minibuffer.el
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Sat Nov 29 02:00:07 2008 +0000
+++ b/lisp/ChangeLog	Sat Nov 29 02:39:19 2008 +0000
@@ -1,3 +1,8 @@
+2008-11-29  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+	* minibuffer.el (completion--try-word-completion): Don't ignore
+	partial-completion if it's the only style.
+
 2008-11-28  Juanma Barranquero  <lekktu@gmail.com>
 
 	* emacs-lisp/re-builder.el (reb-auto-update): Remove redundant code.
--- a/lisp/minibuffer.el	Sat Nov 29 02:00:07 2008 +0000
+++ b/lisp/minibuffer.el	Sat Nov 29 02:39:19 2008 +0000
@@ -625,7 +625,8 @@
               (after (substring string point))
 	      ;; Disable partial-completion for this.
 	      (completion-styles
-	       (remove 'partial-completion completion-styles))
+	       (or (remove 'partial-completion completion-styles)
+		   completion-styles))
 	      tem)
 	  (while (and exts (not (consp tem)))
             (setq tem (completion-try-completion