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: Wed, 04 Dec 2024 15:10:07 +0200 Message-ID: <865xnz1tn4.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23886"; 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 Wed Dec 04 14:10:53 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 1tIp9Z-000650-Gh for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 04 Dec 2024 14:10:53 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tIp94-00081Q-FP; Wed, 04 Dec 2024 08:10:22 -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 1tIp8z-000813-EO for help-gnu-emacs@gnu.org; Wed, 04 Dec 2024 08:10:17 -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 1tIp8y-0008PX-Qw for help-gnu-emacs@gnu.org; Wed, 04 Dec 2024 08:10:17 -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=kP+JwQgejqSKOIjLfhb+QNURXeHhyHxjUiX3HO9zhcw=; b=G2qHSVTMjQE2 LTyVuDu2uSYd6wYqBFPwct2hh58MLZxfze3bQDrDco+JJw2P12I89WFRYx+kxI2xfofao/ClTdUBr GseztmS3xi2jB2b3x4Al4ZFH8p7iVkbphAz4M4dP8W/uUgp7Vnz4gbB7uHoalgFQZHjErEBHl7Nyn NAfyNlZM+fS601G16WzsLuN4xUJHpALRG/lYnqaeefKudjYU8F7m88/zn9+NBKGcVqceYltRziQIh crQbh0VLfk9l2hR3xr/IWrb6EGjxzRU6W1nStq8Ddzuh+uJ2rt1SDXe+bQJrnGwEJZDIGsC9hIbuc BuMerGccaZzhwiQY7O5NNA==; In-Reply-To: (message from Psionic K on Wed, 4 Dec 2024 14:08:16 +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:148597 Archived-At: > From: Psionic K > Date: Wed, 4 Dec 2024 14:08:16 +0900 > Cc: Stefan Monnier , Eli Zaretskii > > Regarding Eli's reply: > > What do you mean by "extending the background of :inverse-video > > background" of a line? Can you show some simple Lisp which produces > > this effect on display? > > (let ((buffer (get-buffer-create "testorito"))) > (set-buffer buffer) > (erase-buffer) > (insert "* ") > (insert (propertize "TODO" 'face '(:inverse-video t))) > (insert " Org Modern Uses Inverse Video") > (insert "\n") > (insert "* ") > (insert (propertize "TODO" 'face '(:inverse-video t :foreground > "#ff2222"))) > (insert " To Draw Fancy Todos") > (setq-local p (point-max)) > (insert "\n") > (setq-local o (make-overlay p (1+ p))) > (overlay-put o 'line-height 4.0) > (switch-to-buffer buffer)) > > This example re-creates the situation that exists in Dslide. I need > to separate the two lines by some floating point multiple of lines in > order to "slide in" to a vanishing degree of separation between two > lines of content. I use the same technique between list items and > sub-headings. All text that has a background exhibits the behavior, > not just `:inverse-video`. And what is the problem with what the above snippet produces? Is the problem that you _want_ the background color extended to EOL? If so, you need to use (:extend t), and you need to make sure the face affects the entire line till the newline. But maybe I misunderstand what you want to achieve?