From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#65896: 30.0.50; folding text with text properties prevents background from extending past the newline Date: Wed, 20 Sep 2023 12:50:08 +0000 Message-ID: <87pm2d6mbj.fsf@localhost> References: <87ttrzmfua.fsf@strawberrytea.xyz> <83v8cfns1m.fsf@gnu.org> <87il8fm7x2.fsf@gmail.com> <40b4f4d3-34ae-4631-bebd-eefcd034d87e@app.fastmail.com> <83il8envaf.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23864"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65896@debbugs.gnu.org, kevin.legouguec@gmail.com, LemonBreezes To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 20 14:50:13 2023 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 1qiwej-0005un-01 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 20 Sep 2023 14:50:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qiweT-0002bE-Cv; Wed, 20 Sep 2023 08:49:57 -0400 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 1qiweR-0002an-D7 for bug-gnu-emacs@gnu.org; Wed, 20 Sep 2023 08:49:55 -0400 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 1qiweP-0004V7-G5 for bug-gnu-emacs@gnu.org; Wed, 20 Sep 2023 08:49:53 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qiweY-0003Ms-8R for bug-gnu-emacs@gnu.org; Wed, 20 Sep 2023 08:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 20 Sep 2023 12:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65896 X-GNU-PR-Package: emacs Original-Received: via spool by 65896-submit@debbugs.gnu.org id=B65896.169521415312879 (code B ref 65896); Wed, 20 Sep 2023 12:50:02 +0000 Original-Received: (at 65896) by debbugs.gnu.org; 20 Sep 2023 12:49:13 +0000 Original-Received: from localhost ([127.0.0.1]:58533 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qiwdl-0003Le-3x for submit@debbugs.gnu.org; Wed, 20 Sep 2023 08:49:13 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:38061) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qiwdh-0003LQ-OV for 65896@debbugs.gnu.org; Wed, 20 Sep 2023 08:49:11 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 62792240104 for <65896@debbugs.gnu.org>; Wed, 20 Sep 2023 14:48:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695214134; bh=0vYmbHySirFPWVxoXmxK/sB5YXXDzssO+aXyx75IWkM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=o3xfqG2UiBoOx4R89BwbNRBlTgU22s4ERliWq9H3vDf9r6jHSFJyNXxqf/RgILqDV mKDqByf5pYO+0CnUXM0RqsXXv2Tml2A79NiBaNeTzMOQbYowBPgEluF8fL4zVf/54U WFS3P7aUJ5HRzG6IP7RR8wM5+91MHynMBDbZ8g5mhtbpPxj/NBahu/+kMdu+3VhtyA xumRoewxrZP9OQtAUovL8uFRB5eDTJkKc6cDIWNISphOQCa0IKMY+PeSGOa9EerYvp 2tnPl/Nl6mg5lWH7uYHRodiX+CkNeQy5cf6v4kJyr4acfM+QqR8nQebgmfPFZ1D+ih JDjpyN4/dIDNA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RrJHn2rDSz6v4r; Wed, 20 Sep 2023 14:48:53 +0200 (CEST) In-Reply-To: <83il8envaf.fsf@gnu.org> 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:270922 Archived-At: Eli Zaretskii writes: >> This might not sound too clever, but why don't we just make the extend >> property be determined by the first character in the line rather than >> the last character / newline character? > > How can Emacs know, when it processes the first character on a line, > whether the last character on that line will have the same face? > > You seem to assume that the Emacs display engine has "global" view of > the line it is processing for display. But that's not what happens: > the Emacs display is basically a one-pass layout engine whose view of > the text is a peephole whose size is a single character. The display > engine processes a character, makes all the decisions regarding its > display and layout, then proceeds to the next one, and so on. When it > gets to the newline that ends a line, it makes the decision whether > the last face it saw needs to be extended, and if so, extends it. Are you sure? I am looking at `extend_face_to_end_of_line' and it looks like there is nothing preventing it from accessing it->glyph_row->glyphs array to look backwards into preceding glyphs. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at