]> git.eshelyaron.com Git - emacs.git/commit
Dynamic validation of styles in completion-category-overrides
authorMattias Engdegård <mattiase@acm.org>
Wed, 26 Oct 2022 08:51:51 +0000 (10:51 +0200)
committerMattias Engdegård <mattiase@acm.org>
Wed, 26 Oct 2022 08:51:51 +0000 (10:51 +0200)
commite54c3959827eeee3ea60ccaa4918d22b9dce9cc5
tree129b3a30df477be897f7f9f91c9189774c783699
parent0367208e6e9cb7621eb5faa3c44b94948207c5c7
Dynamic validation of styles in completion-category-overrides

The type of the defcustom completion-category-overrides must be able
to accommodate dynamic changes to completion-styles-alist, because
some packages (eglot) make their own additions.

This change fixes a failure in test-custom-opts.  See discussion at:
https://lists.gnu.org/archive/html/emacs-devel/2022-10/msg01969.html

* lisp/minibuffer.el (completion--styles-type):
Add an "Other" case that accepts any symbol which is then validated
dynamically against completion-styles-alist.
lisp/minibuffer.el