Skip to content

Commit

Permalink
(minibuffer-completion-help): Do not check completions-group centrally
Browse files Browse the repository at this point in the history
The guard variable `completions-group` should be checked in each
completion table individually.  The guard variable
`completions-detailed` variable is used in the same way.

* minibuffer.el (minibuffer-completion-help): Remove check of
  `completions-group`.
  • Loading branch information
minad authored and link0ff committed May 20, 2021
1 parent de168b7 commit cacfd03
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lisp/minibuffer.el
Expand Up @@ -2182,8 +2182,7 @@ variables.")
(plist-get completion-extra-properties
:affixation-function)))
(sort-fun (completion-metadata-get all-md 'display-sort-function))
(group-fun (and completions-group
(completion-metadata-get all-md 'group-function)))
(group-fun (completion-metadata-get all-md 'group-function))
(mainbuf (current-buffer))
;; If the *Completions* buffer is shown in a new
;; window, mark it as softly-dedicated, so bury-buffer in
Expand Down

0 comments on commit cacfd03

Please sign in to comment.