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#51821: 29.0.50; Suggest add variable or frame parameter: line-height Date: Sun, 14 Nov 2021 13:29:03 +0200 Message-ID: <83bl2nugao.fsf@gnu.org> References: <87bl2nhbyp.fsf@163.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="362"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 51821@debbugs.gnu.org To: "Feng Shu" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 14 12:30:32 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 1mmDiR-000ATj-PX for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Nov 2021 12:30:31 +0100 Original-Received: from localhost ([::1]:47570 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mmDiQ-0007Te-BR for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Nov 2021 06:30:30 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:54206) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mmDhz-0007TQ-GF for bug-gnu-emacs@gnu.org; Sun, 14 Nov 2021 06:30:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37749) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mmDhz-00079i-7b for bug-gnu-emacs@gnu.org; Sun, 14 Nov 2021 06:30:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mmDhz-0006Uq-3M for bug-gnu-emacs@gnu.org; Sun, 14 Nov 2021 06:30:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Nov 2021 11:30:03 +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.163688936524896 (code B ref 51821); Sun, 14 Nov 2021 11:30:03 +0000 Original-Received: (at 51821) by debbugs.gnu.org; 14 Nov 2021 11:29:25 +0000 Original-Received: from localhost ([127.0.0.1]:49295 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mmDhN-0006TU-0b for submit@debbugs.gnu.org; Sun, 14 Nov 2021 06:29:25 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:53392) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mmDhL-0006TI-Pi for 51821@debbugs.gnu.org; Sun, 14 Nov 2021 06:29:24 -0500 Original-Received: from [2001:470:142:3::e] (port=51810 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mmDhG-00076X-J9; Sun, 14 Nov 2021 06:29:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=D8xVOhERW9cIyMhs5hNctgp4ofTv5CEt8LDI1kvT/gA=; b=jWKtR5J+iyDz lHMSCLYjcuIk+glWQrP9blq9JfZjjpjLwypKT5fcZC8oHpXgXo9k4zwc6QJop8yjRjm/beD1kINSs isWhcp8k3XTZyXzofslPj8kstq8auXNqW91vcW9L8KxAZ8Jb7Fzoom8pzcPKWwzyuWtPsVzDprCSe 62enzs8UDo0Df0wmvY8Qysss6tD0/OUiWnXxc/BAF5lmNqQPxgjFYz/XEyNHoxc8mi32e2UY9rMWq 3Eq/ya5j6dXJkqLsMgvR6nqnJn/UZgYKQi6k+WS+V6dvlUgDeN/+X/TiKUPifqnfQAEckSL/AXv3f 0AXAV3QQ4Wqm4f2lvkesAw==; Original-Received: from [87.69.77.57] (port=4325 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mmDhF-0006ZV-Vq; Sun, 14 Nov 2021 06:29:18 -0500 In-Reply-To: <87bl2nhbyp.fsf@163.com> (tumashu@163.com) 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:219930 Archived-At: > From: "Feng Shu" > Date: Sun, 14 Nov 2021 07:28:46 +0800 > > I have try the below code, and it work > > (insert (propertize "\n" 'line-height 1.4)) > > But how to apply line-height global and let line-height work with > mode/header/tab-bar? > > Maybe we should add a variable or frame parameter: line-height Adding a variable is easy, but what would be its semantics? Emacs can display different faces in the same window, and some of those faces can have smaller height. If the line of text in a window uses the smaller faces, that line's height will be smaller as well. For example, evaluate the following: (defface small '((t :height 0.6)) "") Then visit some file, and do this: M-x font-lock-mode RET M-x load-library RET facemenu RET C-SPC C-n C-n M-x facemenu-set-face RET small RET Now you should see 2 lines in a smaller font; those lines have correspondingly smaller height. So if we require all the lines to be at least line-height pixels, those smaller lines will also become higher, and that is not what's expected, I guess? So what would be the correct interpretation of the line-height variable or frame parameter, when different faces are being used?