aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Gutov2018-12-29 20:06:24 +0300
committerDmitry Gutov2018-12-29 20:06:42 +0300
commitb0e6ecfc33077fb2dce904d315c8ef24e3649c9b (patch)
tree320865c16ccd8c2f1a1d87f95b09ede352686623
parentb71d4ce056ca291594682b2a8536a4a768a97330 (diff)
downloademacs-b0e6ecfc33077fb2dce904d315c8ef24e3649c9b.tar.gz
emacs-b0e6ecfc33077fb2dce904d315c8ef24e3649c9b.zip
Skip 'basic' completion style for project-find-file
* lisp/minibuffer.el (completion-category-defaults): Skip 'basic' for 'project-file', in order not to prefer files at the top of the directory tree.
-rw-r--r--lisp/minibuffer.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el
index f8e328f6152..bc7d26ac2e0 100644
--- a/lisp/minibuffer.el
+++ b/lisp/minibuffer.el
@@ -835,7 +835,7 @@ styles for specific categories, such as files, buffers, etc."
835(defvar completion-category-defaults 835(defvar completion-category-defaults
836 '((buffer (styles . (basic substring))) 836 '((buffer (styles . (basic substring)))
837 (unicode-name (styles . (basic substring))) 837 (unicode-name (styles . (basic substring)))
838 (project-file (styles . (basic substring))) 838 (project-file (styles . (substring)))
839 (info-menu (styles . (basic substring)))) 839 (info-menu (styles . (basic substring))))
840 "Default settings for specific completion categories. 840 "Default settings for specific completion categories.
841Each entry has the shape (CATEGORY . ALIST) where ALIST is 841Each entry has the shape (CATEGORY . ALIST) where ALIST is