From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: How to Display a Zero Height Line Date: Sat, 30 Nov 2024 09:35:14 +0200 Message-ID: <864j3pb2dp.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28601"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 30 08:36:09 2024 Return-path: Envelope-to: geh-help-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 1tHI1Q-0007Iz-8M for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 30 Nov 2024 08:36:08 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tHI0o-0007dH-Lt; Sat, 30 Nov 2024 02:35:31 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tHI0h-0007d1-JE for help-gnu-emacs@gnu.org; Sat, 30 Nov 2024 02:35:24 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tHI0h-00019m-9n for help-gnu-emacs@gnu.org; Sat, 30 Nov 2024 02:35:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=8p2k0xJFip0s3vLW8lq2WRYW6Qz0IrwTFctU/Qoorec=; b=XYEawdtDYJhL Z6QKLNx8eaIGYbmyQbek2jS9T2LCYI71cE8JrLS1KO2cY/m6Q4OJ/cn2o2Fa2ngtjrwWu9NsBTEei OZbAVU2UCyZNPSo6HxLO/OhJyD/8ApYUe9cRiugV2+iZrL5O2gL4PNFXrQ71Avvx5JkocrxjE3n63 XwjsQKMHIyZfqDXaI3TifgZrHjx7/7sKcLxiIVkOB74cIAOiqWzDpNx0IBr8mvQW/GLtEFcA+IMab chDWQ/w5/lB2DiPFADMjYNl1J62aczVx3WAZh2e9+eOAsXccwNo2xr/WPZzvclGE+ku9IvDRxOuqJ 2D+Lnyum3K2DzRTSx6gVsA==; In-Reply-To: (message from Psionic K on Sat, 30 Nov 2024 12:02:05 +0900) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:148457 Archived-At: > From: Psionic K > Date: Sat, 30 Nov 2024 12:02:05 +0900 > Cc: Psionic K > > 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.