summaryrefslogtreecommitdiff
path: root/lisp/minibuffer.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2017-04-19 20:43:41 -0400
committerStefan Monnier <monnier@iro.umontreal.ca>2017-04-19 20:43:41 -0400
commitcd56490fef9cf585708b9d11de2f3f2ec1e2d5b2 (patch)
tree037cf92e29bb68b3b4669eb0a43a06e101adb846 /lisp/minibuffer.el
parent992e2019d3c535a61df064de25f664c01b8c309f (diff)
downloademacs-cd56490fef9cf585708b9d11de2f3f2ec1e2d5b2.tar.gz
Use substring completion for Info menus and index
* lisp/info.el (Info-complete-menu-item): Add `category' metadata. (Info-menu): Simplify now that we use the `default' arg of completing-read. * lisp/minibuffer.el (completion-category-defaults): Use substring completion for `info-menu`.
Diffstat (limited to 'lisp/minibuffer.el')
-rw-r--r--lisp/minibuffer.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el
index 00722ec4b15..0377cd549a2 100644
--- a/lisp/minibuffer.el
+++ b/lisp/minibuffer.el
@@ -834,7 +834,8 @@ styles for specific categories, such as files, buffers, etc."
(defvar completion-category-defaults
'((buffer (styles . (basic substring)))
(unicode-name (styles . (basic substring)))
- (project-file (styles . (basic substring))))
+ (project-file (styles . (basic substring)))
+ (info-menu (styles . (basic substring))))
"Default settings for specific completion categories.
Each entry has the shape (CATEGORY . ALIST) where ALIST is
an association list that can specify properties such as: