[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#6160: 24.0.50; partial completion of emacs commands doesn't work
From: |
Stefan Monnier |
Subject: |
bug#6160: 24.0.50; partial completion of emacs commands doesn't work |
Date: |
Tue, 11 May 2010 09:25:57 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
> As mentioned in the subject, and although `completion-styles' seems to
> have the correct value (it contains basic, partial-completion and
> emacs22), partial completion seems broken for elisp commands: if one
> tries any partial name including dashes in the minibuffer
> (e.g. M-x rep-em-TAB), the completion key provokes a [No match] error
> (in the example, i would have expected report-emacs-bug as a completion).
Indeed, I messed up my last change. Thanks for pointing it out.
I've installed the patch below which should make it work again,
Stefan
=== modified file 'lisp/minibuffer.el'
--- lisp/minibuffer.el 2010-05-09 22:39:36 +0000
+++ lisp/minibuffer.el 2010-05-11 13:22:02 +0000
@@ -1835,8 +1835,8 @@
(lambda (x)
(cond
((stringp x) (regexp-quote x))
- ((if (consp group) (memq x group) group)
- "\\(.*?\\)" ".*?")))
+ ((if (consp group) (memq x group) group) "\\(.*?\\)")
+ (t ".*?")))
pattern
""))))
;; Avoid pathological backtracking.