[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: on helm substantial differences
From: |
Stefan Monnier |
Subject: |
Re: on helm substantial differences |
Date: |
Fri, 20 Nov 2020 09:39:36 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
> Btw, just switching the order doesn't yet guarantee the names will
> align, because characters are not guaranteed to have the same width on
> display. To really align them we need to use :align-to properties, or
> at least TABs. Of course, using those techniques we could also align
> the display without switching the order...
Indeed, but:
- the width of the chars varies a lot less than the width of their
names, so if you put the char column after the name column, it ends up
pushed pretty far to the right, whereas with the other order, the chars
stay close to their name.
- with the current `annotation-function` it's almost impossible to do
this alignment because you don't have access to all the candidates,
only to a single candidate at a time.
You could arguably align based on the worst possible case (i.e. the
longest name existing in the ucs-names database), but that would make
the result even worse.
So even if you want to keep the current ordering, you need to change
the API, like Juri's patch does.
Stefan
- Re: on helm substantial differences, (continued)
- Re: on helm substantial differences, Stefan Monnier, 2020/11/16
- Re: on helm substantial differences, Juri Linkov, 2020/11/17
- Re: on helm substantial differences, Juri Linkov, 2020/11/17
- Re: on helm substantial differences, Juri Linkov, 2020/11/18
- Re: on helm substantial differences, Basil L. Contovounesios, 2020/11/18
- Re: on helm substantial differences, Juri Linkov, 2020/11/18
- Re: on helm substantial differences, Juri Linkov, 2020/11/18
- Re: on helm substantial differences, Juri Linkov, 2020/11/20
- Re: on helm substantial differences, Eli Zaretskii, 2020/11/20
- Re: on helm substantial differences, Eli Zaretskii, 2020/11/20
- Re: on helm substantial differences,
Stefan Monnier <=
- Re: on helm substantial differences, Juri Linkov, 2020/11/21
- Re: on helm substantial differences, Eli Zaretskii, 2020/11/21
- Re: on helm substantial differences, Juri Linkov, 2020/11/22
- Re: on helm substantial differences, Eli Zaretskii, 2020/11/22
- Re: on helm substantial differences, Juri Linkov, 2020/11/22
- Re: on helm substantial differences, Eli Zaretskii, 2020/11/22
- Re: on helm substantial differences, Juri Linkov, 2020/11/25
- Re: on helm substantial differences, Eli Zaretskii, 2020/11/25
- Re: on helm substantial differences, Juri Linkov, 2020/11/25
- Re: on helm substantial differences, Eli Zaretskii, 2020/11/25