Subject: bug#41852: 27.0.50; text-scale commands don't scale header of tabulated-list-mode

From: Thomas Hisch <[email-masked]>
Date: Sun, 14 Jun 2020 18:25:26 +0200

On 6/14/20 4:42 PM, Eli Zaretskii wrote:
>> From: Thomas Hisch <[email-masked]>
>> Date: Sun, 14 Jun 2020 15:36:23 +0200
>>
>> If the text is scaled (using `text-scale-increase`) in a
>> `tabulated-list-mode` buffer, the text of the header is not scaled,
>> which leads to a messed up (row data doesn't align with header row) buffer.
>
> text-scale-increase affects only the default face and faces that
> inherit from it.  It isn't supposed to affect any other face, such as
> the mode-line, the header-line, etc.

Thx for mentioning header line. I've just noticed that
tabulated-list-mode supports using a header that doesn't rely on
`header-line-format`.
This feature (setq tabulated-list-use-header-line nil) also doesn't work
as expected. I can see that the header row is rescaled now when
`text-scale-increase` is called, but the row data still looks a bit
messed up (cols are not aligned) after calling `text-scale-increase`
multiple times. The issue can be easily seen by calling
`text-scale-increase` in the *Packages* buffer.

Maybe `tabulate-list-mode` calculates the positions of the beginning of
each column only once.

>
> So you are actually asking for a new feature of the
> tabulated-list-mode, whereby it defines "C-x +" etc. to produce effect
> specific to that mode.
>

Yes it would be nice if text-scale-increase would properly rescale the
header-line, especially since (setq tabulated-list-use-header-line t) is
the default.

BR
Thomas
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly prohibited.

IMS Nanofabrication GmbH FN: 208021 p, FB-Gericht: Wien; Sitz: Schreygasse 3, 1020, Vienna (Austria),Tel. +43 1 214 48 94; E-Mail: [email-masked]; DVR-Nr: 0374369; www.ims.co.at