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.bugs Subject: bug#68793: 29.2; Visual line mode line spacing text property Date: Mon, 29 Jan 2024 14:30:16 +0200 Message-ID: <86il3c490n.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12108"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 68793@debbugs.gnu.org To: Psionic K Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 29 13:31:18 2024 Return-path: Envelope-to: geb-bug-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 1rUQnG-0002wG-44 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 29 Jan 2024 13:31:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rUQmw-0004lp-UV; Mon, 29 Jan 2024 07:30:58 -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 1rUQms-0004jp-Eu for bug-gnu-emacs@gnu.org; Mon, 29 Jan 2024 07:30:54 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rUQms-0007wT-6Q for bug-gnu-emacs@gnu.org; Mon, 29 Jan 2024 07:30:54 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rUQn0-0007WH-38 for bug-gnu-emacs@gnu.org; Mon, 29 Jan 2024 07:31:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 29 Jan 2024 12:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68793 X-GNU-PR-Package: emacs Original-Received: via spool by 68793-submit@debbugs.gnu.org id=B68793.170653145928676 (code B ref 68793); Mon, 29 Jan 2024 12:31:02 +0000 Original-Received: (at 68793) by debbugs.gnu.org; 29 Jan 2024 12:30:59 +0000 Original-Received: from localhost ([127.0.0.1]:59224 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rUQmx-0007RX-ER for submit@debbugs.gnu.org; Mon, 29 Jan 2024 07:30:59 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57866) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rUQmv-0007Cd-UK; Mon, 29 Jan 2024 07:30:58 -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 1rUQmf-0007uu-Kc; Mon, 29 Jan 2024 07:30:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=crGJ8dVLdiAhhtpF+SmdIgILg4guG1k6dp3VbEqPNMc=; b=So7H0dGNONSBbpowyUOA mWQJu94f+eIr4tf3/cNylogYkk/yHa7ZO5/p+E93cl3uS489aFe1ZsO2ns66TQHpw1fzZMmvP0LBx yeu4dZbSlaKN6s4v2SD8tbsCvmWdfmJOHpYzRBadQz7Fbiwj/eKcoAwqyaXd+tRHcvZ8mHl9Hnw6R +9LHfzejV11VOzVxX4xHxPx7MxmbyQfIqqbpQ0/brZMETaYrHznAEhUsaDHREAvB2x8ku+4uroh8s XCvEmczXT3pMobEuBVx2ZjzmhrCYahLAY2GhFnw+uTiJFv26gkFOpq4NLokeHLSxttFS98Eo7WZb+ RDHOGA5YCTXxzQ==; In-Reply-To: (message from Psionic K on Mon, 29 Jan 2024 15:23:33 +0900) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:279124 Archived-At: tags 68793 notabug thanks > From: Psionic K > Date: Mon, 29 Jan 2024 15:23:33 +0900 > > In visual line mode, setting `line-spacing' and `line-height' text > property on whole lines only correctly displays lines terminating in a > newline > > Steps to reproduce: > > 1. open a buffer in fundamental mode > 2. M-x visual line mode > 3. Write a bunch of text with no newlines > 4. Evaluate (add-text-properties (mark) (point) '(line-spacing 2.0)) > 5. Press RET somewhere in the paragraph or at the end > > Observe that only the line that terminates in newline respects the > property and that this does not respect user intent with > visual-line-mode. This is the documented behavior. From the ELisp manual: Finally, a newline can have a ‘line-spacing’ text or overlay property that can enlarge the default frame line spacing and the buffer local ‘line-spacing’ variable: if its value is larger than the buffer or frame defaults, that larger value is used instead, for the display line ending in that newline ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ Note the part I underlined. Only the last display line (a.k.a. "screen line") preceding the newline is affected. The same happens without visual-line-mode, btw: only the last continuation line has the line-spacing applied to it. This is not a bug, surprising as it might be.