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: Wed, 4 Dec 2024 14:08:16 +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="2139"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Monnier , Eli Zaretskii 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 06:09:11 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 1tIhdO-0000IL-Pk for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 04 Dec 2024 06:09:11 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tIhco-0000Q0-8u; Wed, 04 Dec 2024 00:08:35 -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 1tIhcl-0000Pa-JU for help-gnu-emacs@gnu.org; Wed, 04 Dec 2024 00:08:31 -0500 Original-Received: from mail-yb1-xb2e.google.com ([2607:f8b0:4864:20::b2e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tIhci-0004id-5n for help-gnu-emacs@gnu.org; Wed, 04 Dec 2024 00:08:30 -0500 Original-Received: by mail-yb1-xb2e.google.com with SMTP id 3f1490d57ef6-e399f8bb391so3206221276.2 for ; Tue, 03 Dec 2024 21:08:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=positron.solutions; s=google; t=1733288906; x=1733893706; darn=gnu.org; h=cc:to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=zBpz8T5fvSqW13FdBXOsEqhYuxKyVA0hfIg8aIk2OU0=; b=V2Z5J0FHAj8nwQy3hAZNMIl5Ixl7NFAkUCMoWYuSH99FIgCCVn1b0VY/s3naUtzYiK A+T423lkSWRv7lNkM6xlTqCaOs4lwJbwjss2M6xM7+rhJMaartLayyKoD12wQ9W8HAZY F9YX1Cdl2zk8NYGIKg+7tD06LM3RWMoySVUI9Hj4BhEci7pNmNU8A5+QYc/eZtcC17Jj Qt2RDS1DHBBu54Icdq85IPU0PvZus+h2oWKu2qrTayQNpwTOQZEcsSV6scmJYFulWhTd hzWGLZFk2MKoTx2prvsiGmXyZRYsDP3AGypsRxLdslabREQTmlNcoh5DG4a0pEOA1yia 3q8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733288906; x=1733893706; h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=zBpz8T5fvSqW13FdBXOsEqhYuxKyVA0hfIg8aIk2OU0=; b=HuQnvMxQt+DG/f9MjLeXpoTVclgSHKhYSXgxaYsf2zmVXUyZwtat97cBjY2PZpthDp UfqELpeP3h8aKKen0i1CGVPr0KGQW36HfaFHgg3rkwQj4cX3Hu0kZZcClbRMKEciqG06 1eF2e1moXHAq/WFyJPp1Ew+JVbILmb+os68skwyEmzNSiodah4QjVUiBroIrquv+FjMF a9sxSlJyfDfuh33g//LBL9peRtDWTn3CD1FL5SLB8ONc3Okx0ywOPzH5AVxP8wM9n6oI ZPP2STVP9twPVMTpsGX4n8BDzX3N2QYisodv5TgC/VTK6YTgLRa7FpUhQrgWbqtgk0+d R/tA== X-Gm-Message-State: AOJu0YyOUx/pOJRu18NEBXNPEbJRRIcKPVeFUK/jJgCcuUB3twzBnr10 OlerLstduPaxv0mMSDWHjrTymcGUxB99CGojU2fi7ygLJmuo3LoHj7YeE5rnFE7qVUjeEzZsSwH Zf+fwvVgThbz1965Xd9HrDUTy1Y3oNdsEfyVNpfboQLEEnc7S7i0= X-Gm-Gg: ASbGncszbXDb0Xz8OjjfFuvcUgBRuUyCEJzrCH6Btuy2iG1M9JbR9Suc0ixO5Pd+ruA 5lCLYXUJbawZ6n7qvI/lqdlozloKhPDmYfQ== X-Google-Smtp-Source: AGHT+IFdz7sM0+Z1zf0x1GO8LHaBVXHzSbUlJ1mg9+faRBLlmnI+kHvQElKXNX7Xp9bhjLjfpJdYSHOR1qW7FOM55iQ= X-Received: by 2002:a05:6902:2292:b0:e38:99df:5406 with SMTP id 3f1490d57ef6-e39d43791c4mr4623478276.40.1733288906597; Tue, 03 Dec 2024 21:08:26 -0800 (PST) Received-SPF: pass client-ip=2607:f8b0:4864:20::b2e; envelope-from=exec@positron.solutions; helo=mail-yb1-xb2e.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=unavailable 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:148586 Archived-At: > I think currently, you won't be able to get down to actual zero *except* > by making that line `invisible`. It is appropriate to merely get "pretty close" to zero, a pixel or so. In animation, as long as the final height is quite small, it appears to smoothly vanish on the final frame. 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`.