unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#48013: [PATCH] (icomplete-vertical-mode): Add support for affixations and, annotations
       [not found] ` <CALDnm50jEiGGnsoMr0e6GVsAf--fpPxEfo7_5TgXNMiKUro7Rw@mail.gmail.com>
@ 2021-05-23 11:10   ` Daniel Mendler
  0 siblings, 0 replies; only message in thread
From: Daniel Mendler @ 2021-05-23 11:10 UTC (permalink / raw)
  To: João Távora; +Cc: 48013

[-- Attachment #1: Type: text/plain, Size: 1464 bytes --]

On 5/23/21 11:37 AM, João Távora wrote:
> Can you give a visual example of what it looks like for a given completion
> table, ...

I attached two screenshots:

- M-x
- `describe-symbol` if `completions-detailed` is set

The layout is the same as in the usual *Completions* buffer, when
`completions-format` is set to `one-column`.

> ...along with the changes to the completion table code to take
> advantage of the new interface?

See for example `help--symbol-completion-table-affixation` in
help-fns.el or `read-extended-command--affixation` in simple.el.

There are more `annotation-function`s/`affixation-function`s present in
the Emacs code base if you grep.

See also minibuffer.el for the implementation for the *Completions* buffer.

> It seems that neither affixation or annotation were present in non-vertical
> icomplete.el before your patch.  Do you have an idea why?  Should they
> be added there, too?

There is not enough space in the vertical display. The only
annotations/affixations which would make sense are single character
annotations, maybe icons. But people who like the compact Ido/Icomplete
horizontal style probably would not want this additional noise.
Furthermore it makes the completions harder to read since you get
prefix-completion-suffix, prefix-completion-suffix, where everything is
mixed up. This is different from the vertical mode, where annotations
and candidates are visually separate and easier to distinguish.

Daniel

[-- Attachment #2: describe-symbol.png --]
[-- Type: image/png, Size: 99332 bytes --]

[-- Attachment #3: Mx.png --]
[-- Type: image/png, Size: 46465 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-05-23 11:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <b19c3b3b-ed3a-8944-357f-416f2731ad9f@daniel-mendler.de>
     [not found] ` <CALDnm50jEiGGnsoMr0e6GVsAf--fpPxEfo7_5TgXNMiKUro7Rw@mail.gmail.com>
2021-05-23 11:10   ` bug#48013: [PATCH] (icomplete-vertical-mode): Add support for affixations and, annotations Daniel Mendler

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).