[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: on helm substantial differences
From: |
Eli Zaretskii |
Subject: |
Re: on helm substantial differences |
Date: |
Thu, 26 Nov 2020 15:45:27 +0200 |
> From: Juri Linkov <juri@linkov.net>
> Cc: spacibba@aol.com, bugs@gnu.support, andreyk.mad@gmail.com,
> emacs-devel@gnu.org, contovob@tcd.ie, rudalics@gmx.at,
> monnier@iro.umontreal.ca, ghe@sdf.org, drew.adams@oracle.com
> Date: Wed, 25 Nov 2020 22:35:48 +0200
>
> > Why doesn't name2 get aligned? I still don't think I understand that.
>
> The caller is 'read-char-by-name', and it creates two completion strings
> "character1 (\t with :align-to) name1" and "character2 (\t with :align-to)
> name2",
> and sends them to 'completion--insert-strings' that adds "\t with :align-to"
> as a separator between two columns.
>
> How "character2 (\t with :align-to) name2" could predict the right value
> of this 'align-to' if it doesn't know what value of 'align-to' will use
> 'completion--insert-strings' in its separator?
Ah, okay. Would it work to change read-char-by-name to generate
strings "character1 TAB name1" and "character2 TAB name2", and then
make completion--insert-strings to produce a suitably calculated
(SPC with :align-to) separator between them? Then all you'd need to
do is set tab-width in the completions buffer.
- Re: on helm substantial differences, (continued)
- 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
- Re: on helm substantial differences, Juri Linkov, 2020/11/25
- Re: on helm substantial differences,
Eli Zaretskii <=
- Re: on helm substantial differences, Juri Linkov, 2020/11/27
- Re: on helm substantial differences, Eli Zaretskii, 2020/11/27
- Re: on helm substantial differences, Juri Linkov, 2020/11/27
- Re: on helm substantial differences, Jean Louis, 2020/11/17
- Re: on helm substantial differences, Juri Linkov, 2020/11/18
- Re: on helm substantial differences, Juri Linkov, 2020/11/18
- select yank via completion, Stefan Monnier, 2020/11/18
- RE: select yank via completion, Drew Adams, 2020/11/18
- Re: select yank via completion, Juri Linkov, 2020/11/19
- RE: select yank via completion, Drew Adams, 2020/11/19