all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: How to Display a Zero Height Line
Date: Sat, 30 Nov 2024 09:35:14 +0200	[thread overview]
Message-ID: <864j3pb2dp.fsf@gnu.org> (raw)
In-Reply-To: <CADQMGASZ2Z_bKgVHJV+28T4UP-Vcg0uiRvZooqo=TQ2NPCbGTA@mail.gmail.com> (message from Psionic K on Sat, 30 Nov 2024 12:02:05 +0900)

> From: Psionic K <psionik@positron.solutions>
> Date: Sat, 30 Nov 2024 12:02:05 +0900
> Cc: Psionic K <psionik@positron.solutions>
> 
> Related dslide user issue:
> https://github.com/positron-solutions/dslide/issues/15
> 
> If I use line height or line spacing to accomplish the slide-in
> effect, text with any background color set have that background
> stretched out.
> 
> To work around this, I was going to use a zero height line but could
> not achieve the effect after a couple tries.
> 
> While I achieved vanishing line height in a fundamental mode buffer
> using an actual newline with text properties, I could not reproduce
> the effect in a fontified buffer, where I needed to use an overlay.  I
> messed around a bit with 'before-string etc.
> 
> I'm aware this might be a display limitation and want to confirm
> before labeling my user's issue accordingly.

I'm sorry, I could understand neither the problem you were trying to
solve ("slide-in effect"), nor how you tried to do that ("use line
height or line spacing"), nor the problems you've encountered while
trying to solve this ("background stretched out", zero-height line
that didn't work in a fontified buffer).

So please tell more about this, and perhaps show some simple Lisp to
illustrate.

In general, if something works in Fundamental mode but not in a
fontified buffer, it means you use 'face' properties, which
font-lock-mode wipes out.  The usual solution for this is to use
'font-lock-face' properties instead.  But this is a stub in the dark,
so apologies if it makes no sense or is completely off the target.



  reply	other threads:[~2024-11-30  7:35 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-30  3:02 How to Display a Zero Height Line Psionic K
2024-11-30  7:35 ` Eli Zaretskii [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-12-01  1:04 Psionic K
2024-12-01  6:41 ` Eli Zaretskii
2024-12-03 13:30 ` Stefan Monnier via Users list for the GNU Emacs text editor
2024-12-04  5:08 Psionic K
2024-12-04 13:10 ` Eli Zaretskii
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

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=864j3pb2dp.fsf@gnu.org \
    --to=eliz@gnu.org \
    --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.