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: Sat, 23 Sep 2023 12:59:32 +0000 Message-ID: <87y1gx11vv.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> <87jzsiy0ra.fsf@localhost> <83il82775q.fsf@gnu.org> <8734z6xvsh.fsf@localhost> <83a5te74sa.fsf@gnu.org> <87fs352mdx.fsf@localhost> <83sf75401f.fsf@gnu.org> <871qep2l2z.fsf@localhost> <83pm293w0k.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="31442"; 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 Sat Sep 23 14:59:05 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 1qk2Dv-0007vd-LH for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Sep 2023 14:59:03 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qk2Dn-0000xS-QE; Sat, 23 Sep 2023 08:58:55 -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 1qk2Dj-0000xF-BG for bug-gnu-emacs@gnu.org; Sat, 23 Sep 2023 08:58:51 -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 1qk2Dj-0002Qd-3C for bug-gnu-emacs@gnu.org; Sat, 23 Sep 2023 08:58:51 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qk2Du-00058W-7y for bug-gnu-emacs@gnu.org; Sat, 23 Sep 2023 08:59: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: Sat, 23 Sep 2023 12:59: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.169547391719701 (code B ref 65896); Sat, 23 Sep 2023 12:59:02 +0000 Original-Received: (at 65896) by debbugs.gnu.org; 23 Sep 2023 12:58:37 +0000 Original-Received: from localhost ([127.0.0.1]:37959 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qk2DV-00057g-4p for submit@debbugs.gnu.org; Sat, 23 Sep 2023 08:58:37 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:48747) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qk2DR-00057L-Bx for 65896@debbugs.gnu.org; Sat, 23 Sep 2023 08:58:35 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 8F266240101 for <65896@debbugs.gnu.org>; Sat, 23 Sep 2023 14:58:16 +0200 (CEST) Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Rt8MC4Z55z6tsg; Sat, 23 Sep 2023 14:58:15 +0200 (CEST) In-Reply-To: <83pm293w0k.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:271167 Archived-At: Eli Zaretskii writes: >> 1. emacs -Q > ... > It's because the invisible text does not include the newline of the > #+end_src line, and that newline has the face you don't want to see. > > If we ignore the face of the newline itself, we will change the > behavior when the last glyph before the newline has a different face. > The most notable use case is: > > . C-e > . C-SPC > . C-f > > This is expected to paint with the region face the part between the > last glyph of the current line and the first glyph of the next line, > but with your proposal will not. IOW, the region face will > effectively not be extended in this case. I see. Note that there is a similar case when the region is not displayed at all: * Folded heading... . C-SPC . C-f (observe ellipsis not being highlighted) > Why cannot Org include in the invisible text the newline of the last > line that is being hidden? That is, in the above scenario, make the > invisible text begin with the first character of "#+begin_src" and end > after the newline following "#+end_src". That will make ellipsis displayed on the same line with the next heading: * Heading ...* Another heading -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at