From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: ndame Newsgroups: gmane.emacs.bugs Subject: bug#40507: 26.2; truncate-lines does not respect line-height Date: Wed, 8 Apr 2020 15:51:09 +0200 (CEST) Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_106236_677907669.1586353378589" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="8475"; mail-complaints-to="usenet@ciao.gmane.io" To: 40507@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 08 15:52:15 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 1jMB7n-00026i-DK for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 08 Apr 2020 15:52:15 +0200 Original-Received: from localhost ([::1]:36356 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jMB7m-0006Jq-7d for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 08 Apr 2020 09:52:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45766) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jMB7c-0006IU-9S for bug-gnu-emacs@gnu.org; Wed, 08 Apr 2020 09:52:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jMB7a-00070V-RN for bug-gnu-emacs@gnu.org; Wed, 08 Apr 2020 09:52:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40003) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jMB7a-00070Q-Oa for bug-gnu-emacs@gnu.org; Wed, 08 Apr 2020 09:52:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jMB7a-0002Tl-MV for bug-gnu-emacs@gnu.org; Wed, 08 Apr 2020 09:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: ndame Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 08 Apr 2020 13:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 40507 X-GNU-PR-Package: emacs X-Debbugs-Original-To: "bug-gnu-emacs@gnu.org" Original-Received: via spool by submit@debbugs.gnu.org id=B.15863538909488 (code B ref -1); Wed, 08 Apr 2020 13:52:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Apr 2020 13:51:30 +0000 Original-Received: from localhost ([127.0.0.1]:51549 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jMB74-0002Sy-4G for submit@debbugs.gnu.org; Wed, 08 Apr 2020 09:51:30 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:49648) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jMB72-0002Sp-8B for submit@debbugs.gnu.org; Wed, 08 Apr 2020 09:51:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45666) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jMB70-0006G1-LM for bug-gnu-emacs@gnu.org; Wed, 08 Apr 2020 09:51:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jMB6z-0006HD-5y for bug-gnu-emacs@gnu.org; Wed, 08 Apr 2020 09:51:26 -0400 Original-Received: from fmfe36.onbox.hu ([46.107.16.241]:35029 helo=web-out.onbox.hu) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jMB6y-00064f-Fe for bug-gnu-emacs@gnu.org; Wed, 08 Apr 2020 09:51:24 -0400 X-fm-smtp-source: yes Original-Received: from localhost (localhost [84.236.72.86]) by web-out.onbox.hu (Postfix) with SMTP id 48y5KF55Dkz124f for ; Wed, 8 Apr 2020 15:51:09 +0200 (CEST) X-AccountId: 57978162 X-Originating-Ip: 84.236.72.86 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduhedrudejgdeijecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdcuhfftgffgofetkffnnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffkufggtgfvihffsegrtdersgdttddunecuhfhrohhmpehnuggrmhgvuceovghmrggtshhushgvrhesfhhrvggvmhgrihhlrdhhuheqnecukfhppeekgedrvdefiedrjedvrdekieenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhephhgvlhhopedpihhnvghtpeekgedrvdefiedrjedvrdekiedpmhgrihhlfhhrohhmpegvmhgrtghsuhhsvghrsehfrhgvvghmrghilhdrhhhupdhrtghpthhtohepsghughdqghhnuhdqvghmrggtshesghhnuhdrohhrgh X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] 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: 209.51.188.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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:178136 Archived-At: ------=_Part_106236_677907669.1586353378589 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable The manual says: =E2=80=98line-height=E2=80=99 =C2=A0 =C2=A0 =C2=A0A newline can have a =E2=80=98line-height=E2=80=99 text= or overlay property that =C2=A0 =C2=A0 =C2=A0controls the total height of the display line ending in= that =C2=A0 =C2=A0 =C2=A0newline. =C2=A0*Note Line Height::. If you set this for a bunch of lines then it properly adds spacing to those= lines. But if you have long lines in the buffer and =C2=A0 (setq truncate-lines t)= then=C2=A0 all lines will be properly spaced, except for the long lines, because the= =C2=A0 newline is out of screen. Even if the newline is not on screen, it should affect the height of the tr= uncated=C2=A0 line, because that's why the package developer added line-height to the new= line, so the=C2=A0 line has some spacing. =C2=A0 =C2=A0 ------=_Part_106236_677907669.1586353378589 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit The manual says:

‘line-height’
     A newline can have a ‘line-height’ text or overlay property that
     controls the total height of the display line ending in that
     newline.  *Note Line Height::.

If you set this for a bunch of lines then it properly adds spacing to those lines.

But if you have long lines in the buffer and   (setq truncate-lines t) then 
all lines will be properly spaced, except for the long lines, because the 
newline is out of screen.

Even if the newline is not on screen, it should affect the height of the truncated 
line, because that's why the package developer added line-height to the newline,
so the  line has some spacing.
 
  ------=_Part_106236_677907669.1586353378589--