[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Support paragraph-local tab stops
From: |
Eli Zaretskii |
Subject: |
Re: Support paragraph-local tab stops |
Date: |
Wed, 27 May 2020 18:29:08 +0300 |
> From: Yuan Fu <address@hidden>
> Date: Tue, 26 May 2020 19:26:01 -0400
>
> As show above, the second table has longer tab stops since they have longer
> headers.
>
> In Emacs, both table would have to use long tab stops, and the first table
> with short headers would waste a lot of space. In order to set proper tab
> stops, you have to go through the whole buffer and use the longest header for
> each column.
>
> Word processors doesn’t have this problem because they have paragraph-local
> tab stops, so each table can have their own tabs stops. I wonder if Emacs can
> do the same. Can we add a text property that points to a list that specifies
> the tabs stops to use? Is that possible?
IMO, TAB stops are not the right tool for the job here. You need to
use the :align-to display property, which allows to align text with
pixel granularity.