diff options
author | Dmitry Gutov <dgutov@yandex.ru> | 2020-12-29 20:24:46 +0200 |
---|---|---|
committer | Dmitry Gutov <dgutov@yandex.ru> | 2020-12-29 20:25:03 +0200 |
commit | 3e80653d2970872c1b7cbd46cc9c5f7b289ca672 (patch) | |
tree | 4a3146d9066ca6916aac7860139e079649d6126a /lisp/minibuffer.el | |
parent | 154d4b856fb9cfbe8b595a7894e7318e29cefdea (diff) | |
download | emacs-3e80653d2970872c1b7cbd46cc9c5f7b289ca672.tar.gz emacs-3e80653d2970872c1b7cbd46cc9c5f7b289ca672.tar.bz2 emacs-3e80653d2970872c1b7cbd46cc9c5f7b289ca672.zip |
xref-show-definitions-completing-read: Tune up completion
* lisp/minibuffer.el (completion-category-defaults)
Use 'substring' completion style for 'xref-location' category by
default.
* lisp/progmodes/xref.el (xref-show-definitions-completing-read):
Assign the 'xref-location' category to the completions. Pass
REQUIRE-MATCH=t.
Diffstat (limited to 'lisp/minibuffer.el')
-rw-r--r-- | lisp/minibuffer.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el index dc37c5f4476..441eca214bd 100644 --- a/lisp/minibuffer.el +++ b/lisp/minibuffer.el @@ -956,6 +956,7 @@ styles for specific categories, such as files, buffers, etc." ;; A new style that combines substring and pcm might be better, ;; e.g. one that does not anchor to bos. (project-file (styles . (substring))) + (xref-location (styles . (substring))) (info-menu (styles . (basic substring)))) "Default settings for specific completion categories. Each entry has the shape (CATEGORY . ALIST) where ALIST is |