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#65896: 30.0.50; folding text with text properties prevents background from extending past the newline Date: Sat, 23 Sep 2023 15:38:03 +0300 Message-ID: <83pm293w0k.fsf@gnu.org> 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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20269"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65896@debbugs.gnu.org, kevin.legouguec@gmail.com, look@strawberrytea.xyz To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 23 14:39: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 1qk1uk-00055C-Mw for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Sep 2023 14:39:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qk1uO-00059H-Ip; Sat, 23 Sep 2023 08:38:52 -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 1qk1uN-000599-64 for bug-gnu-emacs@gnu.org; Sat, 23 Sep 2023 08:38: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 1qk1uM-0005Wt-UL for bug-gnu-emacs@gnu.org; Sat, 23 Sep 2023 08:38:50 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qk1uX-0004TH-Tp for bug-gnu-emacs@gnu.org; Sat, 23 Sep 2023 08:39:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Sep 2023 12:39: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.169547269217101 (code B ref 65896); Sat, 23 Sep 2023 12:39:01 +0000 Original-Received: (at 65896) by debbugs.gnu.org; 23 Sep 2023 12:38:12 +0000 Original-Received: from localhost ([127.0.0.1]:37925 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qk1tj-0004Rl-HN for submit@debbugs.gnu.org; Sat, 23 Sep 2023 08:38:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53230) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qk1tg-0004RU-KD for 65896@debbugs.gnu.org; Sat, 23 Sep 2023 08:38:10 -0400 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 1qk1tP-0005NC-TQ; Sat, 23 Sep 2023 08:37:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=b0H24jlDWUe4wdpQnuHKDvEhjCG5WU9UWqNMAA48ecI=; b=MixTR6LQcyqq bjp1AJEa1Z7luJvGhmUOsTWf8gQz85tRm0TKCzbqpli4s96KXBHhgAB3Bg3UZaWxGqTOn856o+KtE yJLo0VcOXiQSz++hM0Y3+z9la62VebZNVIhrP+wHtSYU7J1E1gfu95vRaTT7dXpjfVIdnLvPyUffe DejvPsbf2kjmgj0J5YVwJRRQo22W1VXoh8VYArObuT5MspSbLNp/3VUvEEbXptzsSUi73+7JE+pv8 zYsBJSeH4L8JWB5Et6ubbz053zS9NGLMXYIXBOzYjKauSH1fsPyNlFt0vkFhjh5zjn2DDLdS0HJCs vlUJ9gqrM/PkBm7IePkenw==; In-Reply-To: <871qep2l2z.fsf@localhost> (message from Ihor Radchenko on Sat, 23 Sep 2023 11:19:32 +0000) 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:271162 Archived-At: > From: Ihor Radchenko > Cc: look@strawberrytea.xyz, 65896@debbugs.gnu.org, kevin.legouguec@gmail.com > Date: Sat, 23 Sep 2023 11:19:32 +0000 > > 1. emacs -Q > 2. M-x org-mode > 3. M-: (set-face-background 'org-block-end-line "lightblue") > 4. Insert > * Heading > #+begin_src emacs-lisp > 1 > #+end_src > * Another heading > 5. S- > 6. Observe * Heading... 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. 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".