help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to Display a Zero Height Line


From: Psionic K
Subject: Re: How to Display a Zero Height Line
Date: Thu, 12 Dec 2024 18:00:15 +0900

> > The background of TODO extends vertically in a graphical client.  I
> > want the space between the two lines.  I do not want the background of
> > the TODO to extend to the previous line.  Any and all intended
> > workarounds are acceptable.  I am merely choosing an implementation of
> > an effect in Dslide and it doesn't matter how it works.

> I still don't understand, but did you try to use the :extend
> attribute?

Why would I be in such a rush to horizontally :extend that which must
be vertically truncated?

I have further inspected the possibility of using empty lines with
actual newlines in the buffer text.  No combination of assigning the
current line, an extraneous line used to create space, and the newline
before the next heading, via overlays with line-height, face height,
and line-spacing of zero, appear to overcome the font locking
behavior.

Directly manipulating the font locking behavior is acceptable if there
is a precise means of targeting.  I have in the past applied
properties independent of font locking and then read these via new
font locking rules.  As an implementation I prefer to avoid it because
if org learns tree-sitter, my solution will break depending on the
font locking in use.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]