GNU bug report logs - #40507
26.2; truncate-lines does not respect line-height

Previous Next

Package: emacs;

Reported by: ndame <emacsuser <at> freemail.hu>

Date: Wed, 8 Apr 2020 13:52:02 UTC

Severity: wishlist

Found in version 26.2

Full log


Message #8 received at 40507 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: ndame <emacsuser <at> freemail.hu>
Cc: 40507 <at> debbugs.gnu.org
Subject: Re: bug#40507: 26.2; truncate-lines does not respect line-height
Date: Wed, 08 Apr 2020 17:16:21 +0300
severity 40507 wishlist
thanks

> From: ndame <emacsuser <at> freemail.hu>
> Date: Wed,  8 Apr 2020 15:51:09 +0200 (CEST)
> 
> 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.

That's not what this feature was designed for.  It is conceptually the
same as having a character in a line whose height is greater than
those of others: the line's hight will be increased only if that
taller character is displayed.

The line-height property you put on a newline is basically a means to
force the newline character have some specified height, even though
the newline doesn't have a glyph with a definite metrics.  That's why
this property is placed on a newline, not on any other character.

In terms of the implementation, the feature you expected would require
the display engine consider characters that are not visible in the
window, something that the display code tries hard to avoid doing (so
it could be faster).




This bug report was last modified 5 years and 68 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.