From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Feng Shu" Newsgroups: gmane.emacs.bugs Subject: bug#51821: 29.0.50; Suggest add variable or frame parameter: line-height Date: Mon, 15 Nov 2021 06:42:39 +0800 Message-ID: <87mtm6qrz4.fsf@163.com> References: <87bl2nhbyp.fsf@163.com> <83bl2nugao.fsf@gnu.org> <878rxq62qt.fsf@gnus.org> <83k0hatxjl.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9311"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Lars Ingebrigtsen , 51821@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 14 23:43:15 2021 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 1mmODS-0002F6-P7 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Nov 2021 23:43:15 +0100 Original-Received: from localhost ([::1]:57374 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mmODR-0001Zn-2d for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Nov 2021 17:43:13 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:46992) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mmODG-0001ZO-HL for bug-gnu-emacs@gnu.org; Sun, 14 Nov 2021 17:43:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40410) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mmODG-0006Ut-9I for bug-gnu-emacs@gnu.org; Sun, 14 Nov 2021 17:43:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mmODG-0004PO-5b for bug-gnu-emacs@gnu.org; Sun, 14 Nov 2021 17:43:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Feng Shu" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Nov 2021 22:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51821 X-GNU-PR-Package: emacs Original-Received: via spool by 51821-submit@debbugs.gnu.org id=B51821.163692976616921 (code B ref 51821); Sun, 14 Nov 2021 22:43:02 +0000 Original-Received: (at 51821) by debbugs.gnu.org; 14 Nov 2021 22:42:46 +0000 Original-Received: from localhost ([127.0.0.1]:51956 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mmOCz-0004Or-LQ for submit@debbugs.gnu.org; Sun, 14 Nov 2021 17:42:45 -0500 Original-Received: from m12-17.163.com ([220.181.12.17]:36719) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mmOCx-0004Of-Fe for 51821@debbugs.gnu.org; Sun, 14 Nov 2021 17:42:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-ID:MIME-Version; bh=VRqii JRoGdpCe3NO5VvyfLQP8V5leQadi0LNQVVXPlM=; b=YNJFisaj3os1xyqcTTqSD Vnwn2E1qAU5KNvQTd7wU8YZHuj6gzXPRPx9AVu6ohR3hxfGr6lRRn/wUOhbJvNwY kRlgak4nOy6nKyTRuCyth4SUnhNAOgxo3BLVipqOuEoYpFLSSPIXWH657QOjgOzN ThRBi4nLbZUfZWGewfZynE= Original-Received: from tumashu (unknown [49.88.37.140]) by smtp13 (Coremail) with SMTP id EcCowACny3_fkJFhDT3JXg--.48083S2; Mon, 15 Nov 2021 06:42:40 +0800 (CST) In-Reply-To: <83k0hatxjl.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 14 Nov 2021 20:14:06 +0200") X-CM-TRANSID: EcCowACny3_fkJFhDT3JXg--.48083S2 X-Coremail-Antispam: 1Uf129KBjvJXoW7KFWxAw47CFyDuF1DCr1xZrb_yoW8Xw4kpF ZrJw18KrsrJr10yrykZw4xZa4fu3y8JFW7Cr40kryjya98W34xZrW2yF4rC3Z29r18Cayj qa1DKrn7uF93Za7anT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07U2NtsUUUUU= X-Originating-IP: [49.88.37.140] X-CM-SenderInfo: 5wxpt2lkx6il2tof0z/xtbBHABL1F3mCAyJSAAAs9 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:220016 Archived-At: Eli Zaretskii writes: >> From: Lars Ingebrigtsen >> Cc: "Feng Shu" , 51821@debbugs.gnu.org >> Date: Sun, 14 Nov 2021 18:55:38 +0100 >> >> Eli Zaretskii writes: >> >> > So what would be the correct interpretation of the line-height >> > variable or frame parameter, when different faces are being used? >> >> I think... a natural interpretation would be that explicit :height >> specs would override the line-height variable/parameter? > > But line-height is not a variable or parameter, it is just a text > property, and it needs to be put on a newline to change the height of > that single line. So currently this is up to the Lisp program: if it > puts this property on some line, the visual results is its > responsibility. > > By contrast, a buffer-local variable or a frame parameter are global: > they apply to all lines, tall and small alike. And users will use > this variable/parameter globally as well. Thus its effect on lines > that use smaller fonts is something to be concerned about. > > My impression is that this is wanted only for the default face, and > then only for the ASCII font of that face. That could be done, I > think, but (a) it will probably not work with text-scaling and other > remappings of the default faces, and (b) some faces other than default > also need this, definitely the mode-line and header-line, but also > fixed-pitch perhaps? > > So I'm stuck trying to figure out what exactly are the requirements > here. What about support it as a face attr instead of variable? --