From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#30264: 27.0.50; Resizing in `tabulated-list-mode' Date: Sat, 27 Jan 2018 10:20:13 +0200 Message-ID: <83tvv7k91e.fsf@gnu.org> References: <871sicz31c.fsf@mattleach.net> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1517041168 16665 195.159.176.226 (27 Jan 2018 08:19:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 27 Jan 2018 08:19:28 +0000 (UTC) Cc: 30264@debbugs.gnu.org To: Matthew Leach Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jan 27 09:19:24 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1efLhf-0003JB-Kd for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Jan 2018 09:19:11 +0100 Original-Received: from localhost ([::1]:34022 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1efLjf-0005OK-QX for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Jan 2018 03:21:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60972) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1efLjV-0005NO-Rc for bug-gnu-emacs@gnu.org; Sat, 27 Jan 2018 03:21:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1efLjS-0002zG-L5 for bug-gnu-emacs@gnu.org; Sat, 27 Jan 2018 03:21:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36410) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1efLjS-0002zA-Gi for bug-gnu-emacs@gnu.org; Sat, 27 Jan 2018 03:21:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1efLjS-0007Qv-A0 for bug-gnu-emacs@gnu.org; Sat, 27 Jan 2018 03:21:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 Jan 2018 08:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30264 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 30264-submit@debbugs.gnu.org id=B30264.151704122428511 (code B ref 30264); Sat, 27 Jan 2018 08:21:02 +0000 Original-Received: (at 30264) by debbugs.gnu.org; 27 Jan 2018 08:20:24 +0000 Original-Received: from localhost ([127.0.0.1]:44307 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1efLiq-0007Pn-HH for submit@debbugs.gnu.org; Sat, 27 Jan 2018 03:20:24 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:41684) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1efLip-0007Pb-0S for 30264@debbugs.gnu.org; Sat, 27 Jan 2018 03:20:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1efLig-0002YX-Iv for 30264@debbugs.gnu.org; Sat, 27 Jan 2018 03:20:17 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50451) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1efLig-0002YL-EV; Sat, 27 Jan 2018 03:20:14 -0500 Original-Received: from [176.228.60.248] (port=2322 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1efLif-0006Jq-Kp; Sat, 27 Jan 2018 03:20:14 -0500 In-reply-to: <871sicz31c.fsf@mattleach.net> (message from Matthew Leach on Fri, 26 Jan 2018 22:08:31 +0000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:142569 Archived-At: > From: Matthew Leach > 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.