emacs-devel
[Top][All Lists]
Advanced

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

Re: on helm substantial differences


From: Juri Linkov
Subject: Re: on helm substantial differences
Date: Wed, 25 Nov 2020 22:35:48 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)

>> >> character1 \t name1   \t with :align-to   character2 \t name2
>> >>
>> >> And tab-width doesn't align properly \t between character2 and name2.
>> >
>> > I don't think I understand why.  Maybe the value of :align-to needs
>> > tuning?  If not, what is the problem here?
>> 
>> Tuning means adding :align-to to all '\t'?
>
> No, just use :align-to VALUE and tune VALUE.
>
> 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?



reply via email to

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