emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] `completing-read`: Add `group-function` support to completio


From: Daniel Mendler
Subject: Re: [PATCH] `completing-read`: Add `group-function` support to completion metadata (REVISED PATCH)
Date: Sun, 25 Apr 2021 21:38:06 +0200

On 4/25/21 3:32 PM, Daniel Mendler wrote:
I attached a patch which adds grouping support to the completions buffer. The completion table can specify a `group-function` via its completion metadata.

I attached a revised patch with the following changes over the previous version:

1. Add a `completions-group` guard variable, to turn the grouping off. The setting is off by default. 2. Ensure that the original completion string is used in `choose-completion`. Attach the untransformed completion string to each completion string displayed in the *Completions* buffer.

You can try the patch with the following settings and execute `xref-find-references` for example (M-?).

(setq xref-show-xrefs-function
  #'xref-show-definitions-completing-read
  completions-group t
  completions-format 'one-column)

Daniel

Attachment: 0001-completing-read-Add-group-function-to-completion-met.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]