unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Matthew Leach <matthew@mattleach.net>
Cc: 30264@debbugs.gnu.org
Subject: bug#30264: 27.0.50; Resizing in `tabulated-list-mode'
Date: Sat, 27 Jan 2018 10:20:13 +0200	[thread overview]
Message-ID: <83tvv7k91e.fsf@gnu.org> (raw)
In-Reply-To: <871sicz31c.fsf@mattleach.net> (message from Matthew Leach on Fri, 26 Jan 2018 22:08:31 +0000)

> From: Matthew Leach <matthew@mattleach.net>
> Date: Fri, 26 Jan 2018 22:08:31 +0000
> 
> When in a mode that uses `tabulated-list-mode' as it's parent, the
> resizing of text in such buffers doesn't re-tabulate the contents.
> Recipe:
> 
> emacs -Q
> M-x package-list-packages
> C-x C-=
> 
> AFAICS, the problem is that the header line doesn't scale with C-x C-=.

Faces don't generally scale unless some code makes them scale.  Text
scale changes are implemented via face-remapping-alist, but that alist
doesn't get set for every face on Earth, and neither should it be
(because many faces are not supposed to scale automatically).  C-x C-=
etc. only affect the 'default' face and the faces that inherit from it.

> I've tried looking around the source, but this looks as though the face
> selection for the header line is done in the C source code.

No, the face of the header line is set in faces.el, and it's called
'header-line'.  Note also that tabulated-list-init-header uses the
'fixed-pitch' face for aligning the column headers.

> Any pointers on how to fix this would be appreciated!

FWIW, I don't think this needs to be "fixed": resizing text of
tabulated display makes very little sense to me.  YMMV, of course, but
I personally don't consider this to be a bug.

In any case, to make the header-line scale automatically with the
text, you will have to make its face inherit from 'default'.
Alternatively, you could redefine "C-x C-=" etc. to adjust the scale
of the 'header-line' face, in addition to 'default'.  Neither of which
sounds like a good idea for Emacs in general, which is why I don't
think we should fix this in Emacs.





  reply	other threads:[~2018-01-27  8:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-26 22:08 bug#30264: 27.0.50; Resizing in `tabulated-list-mode' Matthew Leach
2018-01-27  8:20 ` Eli Zaretskii [this message]
2018-03-02 22:43   ` Noam Postavsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83tvv7k91e.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=30264@debbugs.gnu.org \
    --cc=matthew@mattleach.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).