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: Fri, 22 Sep 2023 10:12:57 +0000 Message-ID: <87jzsiy0ra.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> <87pm2d6mbj.fsf@localhost> <83bkdvaio4.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="18895"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65896@debbugs.gnu.org, kevin.legouguec@gmail.com, look@strawberrytea.xyz To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 22 12:13:15 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 1qjd9t-0004k5-EP for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 22 Sep 2023 12:13:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjd9e-00089H-R3; Fri, 22 Sep 2023 06:12:58 -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 1qjd9Y-00087i-JA for bug-gnu-emacs@gnu.org; Fri, 22 Sep 2023 06:12:53 -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 1qjd9X-00049F-Ss for bug-gnu-emacs@gnu.org; Fri, 22 Sep 2023 06:12:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qjd9h-0001fN-PZ for bug-gnu-emacs@gnu.org; Fri, 22 Sep 2023 06:13:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 Sep 2023 10:13:01 +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.16953775246330 (code B ref 65896); Fri, 22 Sep 2023 10:13:01 +0000 Original-Received: (at 65896) by debbugs.gnu.org; 22 Sep 2023 10:12:04 +0000 Original-Received: from localhost ([127.0.0.1]:35349 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjd8m-0001e2-FK for submit@debbugs.gnu.org; Fri, 22 Sep 2023 06:12:04 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:55263) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjd8h-0001dV-BC for 65896@debbugs.gnu.org; Fri, 22 Sep 2023 06:12:02 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id DDFDA24002A for <65896@debbugs.gnu.org>; Fri, 22 Sep 2023 12:11:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695377502; bh=8KgNjqq2sthQiUMe5rpCfoIpGve/ujlfEmxUKQQ86g8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=VsJ69fTs8w4KmISLffYpz0VGMcgdTVcuvkov2TiSY5bgRr8qguTEBsiAGvKsl4d+b +YSGKgofr8kivRDdm0Xu+ol+XjyD3UW1oDT9eCxnTSwN3Pc4OLEgR2k3ZGyonekhWp E4C+t+bleLUScZAsWT2K4Qabsufp6AhNbKn4qEp0Q3FuM77So1dwiPAFLDwxWtbkax bi3scW4jOgCAtroIrdT++C3efO02pSvo3o1J3ynjaxNkRQdm4/rffAcDCJ0hqwKPZG Cd9m3SijwAZ4fKQmadbIdn5N/EWhgjjPmPrJ/tlEyqu1k+BH+/NuXHUi10EKft5k1q 6i06E3bgs3GHA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RsSjT5xFDz6twc; Fri, 22 Sep 2023 12:11:41 +0200 (CEST) In-Reply-To: <83bkdvaio4.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:271060 Archived-At: Eli Zaretskii writes: >> 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. > > First, glyphs have only partial information about the original face > properties. IOW, the produced glyph row doesn't have all the info > that the original text had. > > And second, I don't see how the accessibility to the glyphs is > relevant to the issue at hand. Suppose the visible text of a line is: > > aaabbbbxxx > > where each letter represents some character with different face -- you > want Emacs to extend face 'a' after the end of the line, not the face > 'x', just because the line started with characters whose face was > 'a'?? that's what the OP said, AFAIU. I am also not a big fan of using the first glyph/letter in the line. What about not extending the face unless the last 2 glyphs have eq face or we have a single glyph in a row? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at