From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Psionic K Newsgroups: gmane.emacs.help Subject: Re: How to Display a Zero Height Line Date: Sun, 1 Dec 2024 10:04:32 +0900 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32515"; 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 Sun Dec 01 02:05:34 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 1tHYOz-0008KK-J4 for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 01 Dec 2024 02:05:33 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tHYOG-0003dM-Eq; Sat, 30 Nov 2024 20:04:48 -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 1tHYOE-0003cq-Lj for help-gnu-emacs@gnu.org; Sat, 30 Nov 2024 20:04:46 -0500 Original-Received: from mail-yw1-x112a.google.com ([2607:f8b0:4864:20::112a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tHYOC-00046q-Un for help-gnu-emacs@gnu.org; Sat, 30 Nov 2024 20:04:46 -0500 Original-Received: by mail-yw1-x112a.google.com with SMTP id 00721157ae682-6ef58af34a8so20563007b3.0 for ; Sat, 30 Nov 2024 17:04:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=positron.solutions; s=google; t=1733015083; x=1733619883; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=VYwLsBANOczyrDppDUyPln9WbX3l86OI0yzzWEaUBMc=; b=BQMc86gRVtXEmeMWCl5USD+jrLhNbQJ9AQr4yliJC0ZZYLlNv6+rlnTS1yT35o9TNa h/BTXAV5+6bAKxn7ri7cnGDtKRimU6kMDwm9HCgvFs77aU/VviIl5U+ocgo9xiiRcJb1 6Y4DzuuK6iHh3OB67MuCwjjKBbkspRFq4grKUPx+a+3RmLVFm2d0YTyRxgvTLGLKZkOd hhGSwDSYpIDUUCg9xYjQ2n8EXuBEwaqQtYHomNkVfIiHN2s0a0+xWJ43CxXYGUKuYSyk Zq+MCsOhqwnMUMUNcPHgc4riBd8jOE9IGW4SpqMT4v/CnqBHRASfOTvurJ3PF7bfX4CB zKtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733015083; x=1733619883; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=VYwLsBANOczyrDppDUyPln9WbX3l86OI0yzzWEaUBMc=; b=WeHLkkxCEglP4WTVyV9julm4KwLoXV8k4DoCZWZWu+nKOtTukLYflCFTuVmN41DnwR 9XWGkpnLSDICXavDEBW+hxkEDSzU858S8Ccfo69wGBDyLTYCoIEzWl8ksHdIu8UH3IUI B0ZB8crHzsmnW//M2+gsPQnSOnIw4vlML5jHvLg0FuCcWsui0mkUQIuuOd73PuI6cxAo a/I3C8C9vTycCDD9KwMsMCOWTluklceWfs3ef3IOSdaVSqMAoqYyrLPQhzcJcLZIXe1Y pSLVVjv0YUwW3zIDCEAg+TZGIyYf+EcQfw0pmZ/aX2rApyhyAC0/dJY9duPgXvCa2Y+/ qfhQ== X-Gm-Message-State: AOJu0YxvfrjqDpCDu8YwfEqPNtwOXObI2ya2ljSteq24xthfrmMeF78Q jRWgpYusRFsBZsHbhBiLDS5Z0cSdA3rj3T2HmZhcg2X7s2r4wXTqIqQz9886KKhaPik9kNV1J6g Iu5QIUnsEfcRw7Kb7kue3q0iFwj0aGMY3VYAZhFijnhd4d0M/iFs= X-Gm-Gg: ASbGncu5BNV8oj1guPyI0J/VvPXxWW1pwhzeiel+OQntTRDp3dTrXoFhdbvfyLJM69/ isqyM5ZU8rWnmx66LqVDuEUUYj9W77W1/nA== X-Google-Smtp-Source: AGHT+IFEFBWdpnLK53qgcu7HFkMqrNhrcm8MBnGsozEQyVnKxeLdVc1DIHY6rEq+sfePCtM7YJKCU7pL7rKjODlQLME= X-Received: by 2002:a05:690c:c14:b0:6ef:529e:602c with SMTP id 00721157ae682-6ef529e62e2mr124073687b3.40.1733015082945; Sat, 30 Nov 2024 17:04:42 -0800 (PST) Received-SPF: pass client-ip=2607:f8b0:4864:20::112a; envelope-from=exec@positron.solutions; helo=mail-yw1-x112a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:148470 Archived-At: 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.