aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Richard2014-02-24 16:41:46 +0100
committerJuanma Barranquero2014-02-24 16:41:46 +0100
commit0e38ae052eb194ac509b77ba9be4b0ab70c784f4 (patch)
treecfe4f94ea7cf74eea2c19dbe855459d5680cda92
parent7c56ecf5f550703a28831c8ac8de940cc7d88599 (diff)
downloademacs-0e38ae052eb194ac509b77ba9be4b0ab70c784f4.tar.gz
emacs-0e38ae052eb194ac509b77ba9be4b0ab70c784f4.zip
lisp/minibuffer.el: Fix bug#16808.
(completion--try-word-completion): Fix error when completing M-x commands.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/minibuffer.el2
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index a7927fd092a..da0d2ea4499 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12014-02-24 Nicolas Richard <theonewiththeevillook@yahoo.fr>
2
3 * minibuffer.el (completion--try-word-completion):
4 Fix error when completing M-x commands (bug#16808).
5
12014-02-24 Leo Liu <sdl.web@gmail.com> 62014-02-24 Leo Liu <sdl.web@gmail.com>
2 7
3 * emacs-lisp/easy-mmode.el (define-minor-mode): Fix debug spec. 8 * emacs-lisp/easy-mmode.el (define-minor-mode): Fix debug spec.
diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el
index edc4c950104..737172e359f 100644
--- a/lisp/minibuffer.el
+++ b/lisp/minibuffer.el
@@ -1371,7 +1371,7 @@ appear to be a match."
1371 (concat before ext after) 1371 (concat before ext after)
1372 table predicate (1+ point) md)) 1372 table predicate (1+ point) md))
1373 exts)))) 1373 exts))))
1374 (when (and (= 1 (length comps) (consp (car comps)))) 1374 (when (and (null (cdr comps)) (consp (car comps)))
1375 (setq comp (car comps))))) 1375 (setq comp (car comps)))))
1376 1376
1377 ;; Completing a single word is actually more difficult than completing 1377 ;; Completing a single word is actually more difficult than completing