From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#23806: 24.5; can not set line height Date: Tue, 21 Jun 2016 17:24:54 +0300 Message-ID: <83bn2u7h6x.fsf@gnu.org> References: <87inx3z55l.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1466519194 24646 80.91.229.3 (21 Jun 2016 14:26:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 Jun 2016 14:26:34 +0000 (UTC) Cc: 23806-done@debbugs.gnu.org To: ynyaaa@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 21 16:26:19 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bFMd5-0000OI-CJ for geb-bug-gnu-emacs@m.gmane.org; Tue, 21 Jun 2016 16:26:15 +0200 Original-Received: from localhost ([::1]:52268 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFMd4-0000IM-Mm for geb-bug-gnu-emacs@m.gmane.org; Tue, 21 Jun 2016 10:26:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36740) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFMcv-0000H8-SA for bug-gnu-emacs@gnu.org; Tue, 21 Jun 2016 10:26:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bFMcs-0001WK-Ew for bug-gnu-emacs@gnu.org; Tue, 21 Jun 2016 10:26:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37519) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFMcs-0001W6-CU for bug-gnu-emacs@gnu.org; Tue, 21 Jun 2016 10:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bFMcs-0005D8-8x for bug-gnu-emacs@gnu.org; Tue, 21 Jun 2016 10:26:02 -0400 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Jun 2016 14:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 23806 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Mail-Followup-To: 23806@debbugs.gnu.org, eliz@gnu.org, ynyaaa@gmail.com Original-Received: via spool by 23806-done@debbugs.gnu.org id=D23806.146651915920014 (code D ref 23806); Tue, 21 Jun 2016 14:26:02 +0000 Original-Received: (at 23806-done) by debbugs.gnu.org; 21 Jun 2016 14:25:59 +0000 Original-Received: from localhost ([127.0.0.1]:49855 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bFMco-0005Ck-Of for submit@debbugs.gnu.org; Tue, 21 Jun 2016 10:25:58 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45698) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bFMcm-0005CW-Ik for 23806-done@debbugs.gnu.org; Tue, 21 Jun 2016 10:25:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bFMce-0001Ta-13 for 23806-done@debbugs.gnu.org; Tue, 21 Jun 2016 10:25:51 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45365) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFMcd-0001TN-UP; Tue, 21 Jun 2016 10:25:47 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4832 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bFMcb-00052A-Rp; Tue, 21 Jun 2016 10:25:46 -0400 In-reply-to: <87inx3z55l.fsf@gmail.com> (ynyaaa@gmail.com) 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:119885 Archived-At: > From: ynyaaa@gmail.com > Cc: 23806@debbugs.gnu.org > Date: Tue, 21 Jun 2016 10:45:10 +0900 > > Eli Zaretskii writes: > > > The node "Line Height" in the ELisp manual describes the line-spacing > > variable and frame parameter, which are more general-purpose ways of > > controlling vertical layout of text. > > The manual also describes the line-spacing property at the newlines, > which has same problems as the line-height property. Yes, and its documentation also refers to a "display line". > I want to use the line-height property because the line-spacing variable > can not affect partial buffer contents What do you mean by "partial buffer contents"? > and can not add spacing both above and below lines. Such an extension could be added. > By the way it is written in the manual, > If the property value is a list of the form ‘(HEIGHT TOTAL)’, > (snip) In > this case, the other ways to specify the line spacing are ignored. > > Setting the line-height property to '(1.0 1.0) ignores the line-spacing > property, but the line-spacing variable or frame parameter takes effect. > > Setting the line-height property to 't ignores the line-spacing > property, this behavior is not documented. It's documented, sort of, by saying that only the visible content determines the line height in this case. But I made that more explicit. > In the manual: > Finally, a newline can have a ‘line-spacing’ text or overlay property > that overrides the default frame line spacing and the buffer local > ‘line-spacing’ variable, for the display line ending in that newline. > > The line-spacing property overrides the line-spacing variable or frame > parameter only if the property value is bigger. Actually, it doesn't override, but compared, and the largest value used instead. I fixed these inaccuracies, and I'm marking the bug done. Thanks.