From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#41852: 27.0.50; text-scale commands don't scale header of tabulated-list-mode Date: Fri, 30 Oct 2020 22:53:01 +0200 Message-ID: <835z6ra11u.fsf@gnu.org> References: <955fe4fe-a64d-b7c6-fe31-7efd810f97a5@ims.co.at> <83mu553e0x.fsf@gnu.org> <953c6df9-59b4-8b57-0be3-600d147fe9c7@ims.co.at> <83y2k2pabb.fsf@gnu.org> <83wnzmnioj.fsf@gnu.org> <83lfg1nfv1.fsf@gnu.org> <83d01dnegn.fsf@gnu.org> <2ae49edc-098f-9ace-595d-9e29bf3d2c8b@gmx.at> <83h7qba6jb.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37559"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 41852@debbugs.gnu.org, thomas.hisch@ims.co.at To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 30 21:54:09 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kYbPU-0009fg-SR for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 30 Oct 2020 21:54:08 +0100 Original-Received: from localhost ([::1]:46360 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kYbPT-0002FM-Qg for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 30 Oct 2020 16:54:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58542) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kYbPO-0002F2-4q for bug-gnu-emacs@gnu.org; Fri, 30 Oct 2020 16:54:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48356) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kYbPN-0003PM-Rq for bug-gnu-emacs@gnu.org; Fri, 30 Oct 2020 16:54:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kYbPN-00016q-Qx for bug-gnu-emacs@gnu.org; Fri, 30 Oct 2020 16:54:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 30 Oct 2020 20:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41852 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 41852-submit@debbugs.gnu.org id=B41852.16040912124222 (code B ref 41852); Fri, 30 Oct 2020 20:54:01 +0000 Original-Received: (at 41852) by debbugs.gnu.org; 30 Oct 2020 20:53:32 +0000 Original-Received: from localhost ([127.0.0.1]:59902 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kYbOu-000161-Iq for submit@debbugs.gnu.org; Fri, 30 Oct 2020 16:53:32 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:58376) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kYbOs-00015p-5Z for 41852@debbugs.gnu.org; Fri, 30 Oct 2020 16:53:31 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:53260) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kYbOh-0003G6-Vn; Fri, 30 Oct 2020 16:53:23 -0400 Original-Received: from [176.228.60.248] (port=1205 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kYbOh-00025i-8W; Fri, 30 Oct 2020 16:53:19 -0400 In-Reply-To: (message from Stefan Kangas on Fri, 30 Oct 2020 20:22:58 +0000) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:192198 Archived-At: > From: Stefan Kangas > Date: Fri, 30 Oct 2020 20:22:58 +0000 > Cc: rudalics@gmx.at, thomas.hisch@ims.co.at, 41852@debbugs.gnu.org > > > No, only faces that inherit from 'default' are scaled. And now so > > will the faces that inherit from 'header-line'. > > When I use my patch in emacs -Q, say `M-x list-buffer' and then evaluate > this in that buffer: > > (setq-local header-line-format (concat > (propertize "foo" 'face 'mode-line) " " > (propertize "bar" 'face 'bold))) > > Both "foo" and "bar" in the header line is scaled with the rest of the > buffer. But I don't think either of those faces inherits from the > header-line face. Try using fixed-pitch and variable-pitch instead of mode-line and bold. What happens then? And what does that mean for this discussion? > > No, not every face inherits from 'default', only those that inherit > > explicitly. > > `(elisp) Basic Faces' says that they do: > > ‘default’ > The default face, whose attributes are all specified. All other > faces implicitly inherit from it: any unspecified attribute > defaults to the attribute on this face (*note Face Attributes::). > > So I'm not sure I understand what you are saying. You said it yourself: "any _unspecified_ attribute". > > A random face that is defined with defface isn't affected by > > text-scale-*. > > What do you mean by "random face" here? When I do this, the text "bar" > is scaled along with the rest: > > (progn > (defface foo-face '((t :weight bold)) "") > (pop-to-buffer (get-buffer-create "*test*")) > (insert "foo\n") > (insert (propertize "bar\n" 'face 'foo-face)) > (insert "baz\n") > (text-scale-increase 1)) > > Or could you give an example of where this does not happen? I just did: fixed-pitch and variable-pitch. Another example would be any defface that specifies :height as an absolute number of 1/10 point. > >> (progn > >> (fundamental-mode) > >> (insert (propertize "foo" 'face '(:height 1.5))) > >> (text-scale-increase)) > >> > >> What am I missing? > > > > See above. > > Could you elaborate? What I see is that this anonymous face is scaled. Because you specified :height as 1.5 times the default, i.e. relative to the default face.