GNU bug report logs - #6160
24.0.50; partial completion of emacs commands doesn't work

Previous Next

Package: emacs;

Reported by: Jose Antonio Ortega Ruiz <jaortega <at> gmail.com>

Date: Mon, 10 May 2010 19:40:04 UTC

Severity: normal

Found in version 24.0.50

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 6160 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Jose Antonio Ortega Ruiz <jaortega <at> gmail.com>
Cc: 6160 <at> debbugs.gnu.org, rfrancoise <at> debian.org
Subject: Re: bug#6160: 24.0.50;
	partial completion of emacs commands doesn't work
Date: Tue, 11 May 2010 09:25:57 -0400
> 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.





This bug report was last modified 15 years and 10 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.