From: Psionic K <psionik@positron.solutions>
To: help-gnu-emacs@gnu.org
Subject: Re: How to Display a Zero Height Line
Date: Sun, 1 Dec 2024 10:04:32 +0900 [thread overview]
Message-ID: <CADQMGASmm05n1NoOEqNgZykT-_-qh-p882vc_e4eWcDp48GQbQ@mail.gmail.com> (raw)
For motivating context, the Dslide package currently uses a
`line-height` modifying overlay to animate text below, achieving a
"slide-in" effect in graphical terminals. The implementation is
visible around line 2699 in dslide.el, available on Non-GNU ELPA.
The problem with the use of `line-height` is that it interacts with
Emacs display to stretch out the `:inverse-video' background of TODO
tags from the org-modern package. I expect text with a background
property will be similarly affected.
As I was saying in the title, I am looking for more ways to display a
zero-height line above a line of actual text. This line can be real,
exist in an overlay, or be achieved through some kind of specified
vertical space or similar concept. The design requirements are as
follows:
1. There is vertical space between a target line and the line above or
top of the buffer
2. This vertical space does not have a side effect of extending the
background or `:inverse-video' background of the target line or the
line above it
3. The vertical space can be drawn at zero height and at fractional
heights up to the distance content is slid in from
I have set these boundary conditions wide because I might not be aware
of all ways to achieve the desired effect.
Within a fontified buffer, I have been unable to make actual newlines
into fractional or zero height using overlays. I have neither been
able to use `:before-string` or `:after-string` as properties or
overlays. I have used what I believe are every combination of
`line-height' and `line-spacing'. However, the vertical spacing I
have achieved either cannot be drawn all the way down to zero height
or stretches the background of the animated line or preceding line.
As I did not write the display, I am unfamiliar with any intersection
of conditions that is capable of achieving the desired effect.
To be clear, this email is not replying to any previous email in this thread.
next reply other threads:[~2024-12-01 1:04 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-01 1:04 Psionic K [this message]
2024-12-01 6:41 ` How to Display a Zero Height Line Eli Zaretskii
2024-12-03 13:30 ` Stefan Monnier via Users list for the GNU Emacs text editor
-- strict thread matches above, loose matches on Subject: below --
2024-12-12 6:37 Psionic K
2024-12-12 6:47 ` Eli Zaretskii
2024-12-12 9:00 ` Psionic K
2024-12-12 9:23 ` Eli Zaretskii
2024-12-12 12:25 ` Psionic K
2024-12-04 5:08 Psionic K
2024-12-04 13:10 ` Eli Zaretskii
2024-11-30 3:02 Psionic K
2024-11-30 7:35 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CADQMGASmm05n1NoOEqNgZykT-_-qh-p882vc_e4eWcDp48GQbQ@mail.gmail.com \
--to=psionik@positron.solutions \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.