GNU bug report logs - #41852
27.0.50; text-scale commands don't scale header of tabulated-list-mode

Previous Next

Package: emacs;

Reported by: Thomas Hisch <thomas.hisch <at> ims.co.at>

Date: Sun, 14 Jun 2020 13:38:01 UTC

Severity: wishlist

Tags: fixed, patch

Found in version 27.0.50

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: rudalics <at> gmx.at, 41852 <at> debbugs.gnu.org, thomas.hisch <at> ims.co.at
Subject: bug#41852: 27.0.50; text-scale commands don't scale header of tabulated-list-mode
Date: Fri, 30 Oct 2020 20:54:32 +0200
> From: Stefan Kangas <stefan <at> marxist.se>
> Date: Fri, 30 Oct 2020 16:04:58 +0000
> Cc: thomas.hisch <at> ims.co.at, 41852 <at> debbugs.gnu.org
> 
> > (2) that text in the header line or elsewhere in such a buffer not
> > inheriting from (the remapped) header line face is unaffected, and
> 
> I'm not sure I understand what you mean.  If text-scale-mode is enabled,
> typically through running e.g. `text-scale-increase', the `default' face
> is scaled.  The result, AFAICT, is that all faces in the buffer change
> size (well, not the mode line).

No, only faces that inherit from 'default' are scaled.  And now so
will the faces that inherit from 'header-line'.

> And that makes sense since all other implicitly inherits from it,
> right?

No, not every face inherits from 'default', only those that inherit
explicitly.  A random face that is defined with defface isn't affected
by text-scale-*.

> This works even for anonymous faces, e.g.:
> 
>    (progn
>     (fundamental-mode)
>     (insert (propertize "foo" 'face '(:height 1.5)))
>     (text-scale-increase))
> 
> What am I missing?

See above.

> > Wrt (3) I assume that 'tabulated-list-mode' can already get derailed
> > when a user customizes header line face to use some large or small font
> > size (a scenario where face remapping is not involved at all).
> 
> I tried customizing the `Height' for the `header-line' face, and it
> seems to work as expected:
> 
> With no text-scale-mode it is as big as it is customized to be.  When I
> run `text-scale-increase', it scales up accordingly (relative to its
> customized size).  So I don't know what, if anything, should be added
> here.  Since it works as expected, perhaps there is nothing to add?

What Martin means, I think, is that using a larger font in header-line
face might make the text below the header line in tabulated-list-mode
fail to align.




This bug report was last modified 4 years and 180 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.