From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: StrawberryTea Newsgroups: gmane.emacs.bugs Subject: bug#65896: 30.0.50; folding text with text properties prevents background from extending past the newline Date: Sun, 24 Sep 2023 13:30:33 -0500 Message-ID: <87sf73xswd.fsf@strawberrytea.xyz> References: <87ttrzmfua.fsf@strawberrytea.xyz> <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> <87y1gx11vv.fsf@localhost> <83jzsh3uj8.fsf@gnu.org> <87ttrl0yt1.fsf@localhost> <87lecwrast.fsf@strawberrytea.xyz> <83edio4snm.fsf@gnu.org> <87jzsgr9jr.fsf@strawberrytea.xyz> <83cyy84143.fsf@gnu.org> <877cog80hc.fsf@strawberrytea.xyz> <87h6nj27s0.fsf@localhost> <83v8bz3hpq.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31107"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.10.6; emacs 30.0.50 Cc: Ihor Radchenko , 65896@debbugs.gnu.org, kevin.legouguec@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 24 21:40:20 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 1qkUxj-0007oV-NZ for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 24 Sep 2023 21:40:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qkUxM-00086Z-J9; Sun, 24 Sep 2023 15:39: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 1qkUxK-00086C-N0 for bug-gnu-emacs@gnu.org; Sun, 24 Sep 2023 15:39:50 -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 1qkUxK-0006bp-FH for bug-gnu-emacs@gnu.org; Sun, 24 Sep 2023 15:39:50 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qkUxV-0000Ew-RA for bug-gnu-emacs@gnu.org; Sun, 24 Sep 2023 15:40:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: StrawberryTea Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 24 Sep 2023 19:40: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.1695584394898 (code B ref 65896); Sun, 24 Sep 2023 19:40:01 +0000 Original-Received: (at 65896) by debbugs.gnu.org; 24 Sep 2023 19:39:54 +0000 Original-Received: from localhost ([127.0.0.1]:43643 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qkUxO-0000EQ-9G for submit@debbugs.gnu.org; Sun, 24 Sep 2023 15:39:54 -0400 Original-Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:48837) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qkUxL-0000E9-In for 65896@debbugs.gnu.org; Sun, 24 Sep 2023 15:39:53 -0400 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 801A93200952; Sun, 24 Sep 2023 15:39:33 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Sun, 24 Sep 2023 15:39:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= strawberrytea.xyz; h=cc:cc:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm3; t= 1695584373; x=1695670773; bh=qVxaUErTk2pp4y3CHYMUAZRvlKE6mu0Ib3A idhBjtu0=; b=toByr2tTQKw5p5rTxQ5gyN1h5u83TcZIvTANUR8jkmyry/raflF 4PhR1g7s8xyLMUR4Y1l/NKLPNG7sXuPj+1dEbOlvnj9QT7X/a+70HCfKFhOGEPVf xT6mHm4sNjTpvSOhRKVK143wifEhw3e2obGWMAjt3DMgkEXpZW00NvskrH+pYWhd B4aREXEcZ99sAZbfBSGP6Fw57n2x10tAjgUJnirEKlrxc4VQxl3/hAxE8XrYHj5b hgW6UbOdJSbHJJmoWu6X1f76keeqLPDok5ROagjHyHYuv+gBeiZUWhiNCleD1+i5 5jL7agW5jD5rgMwdF3Ml3Df5zrPvL5TZX7A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1695584373; x=1695670773; bh=qVxaUErTk2pp4 y3CHYMUAZRvlKE6mu0Ib3AidhBjtu0=; b=CQlMAoFkpE6F48PMyrhN7kZf2wjrl mF0fx64kbd8de08N+Zb7G8/ZnUQDdeSIeaFdBtJHTHbqHZgnssvgR38kiWXB+JEb gFeSMtG/615mESLumsRdeaNGpU9feV7JVYE0XmVgx4Sa5jhk9mKcZ0UYxb/pKxMN 4LPzzcl1xVA771vFC1oAzeL4/mfckxbQdXHrFWH0xbyz+ThphHQFqQmCSUpZbwvK qtdxJOkynX4GsUNf7I8lbjK4gTaiRBzwuH8lcqf9f0ceTqBhSkaRd36ngAh8X6FN UhAzqaPFR3ZUtwfxxYeAG0gokuuOd/TIWOdZx4ZRXPdRRAQ461jdJ3zyg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudelvddgudegvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enfghrlhcuvffnffculddujedmnecujfgurhephffvvefuffhffggjkfggtgesmhdtreer tderjeenucfhrhhomhepufhtrhgrfigsvghrrhihvfgvrgcuoehlohhokhesshhtrhgrfi gsvghrrhihthgvrgdrgiihiieqnecuggftrfgrthhtvghrnhephfelleffvdeijeetgfdt vdfghfegfedvtefgjeefveejteegudekveelvdeluefhnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomheplhhoohhksehsthhrrgifsggvrhhrhiht vggrrdighiii X-ME-Proxy: Feedback-ID: id85149b6:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 24 Sep 2023 15:39:32 -0400 (EDT) In-reply-to: <83v8bz3hpq.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:271269 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Exactly. It turns out my code breaks when there are nested headings so an E= lisp solution would have to be more complicated. Currently, if the extension pro= perty is on a non-newline character, it does nothing. So a first approach would be face_at_buffer_position look back one character if the current character do= es not have the extend property. But I=E2=80=99m thinking that we should be able to fontify the ellipsis wit= hout extend and the heading with the extend property should override the background of = the other faces on the same line (even the ellipsis). Eli Zaretskii writes: >> From: Ihor Radchenko >> Cc: Eli Zaretskii , 65896@debbugs.gnu.org, >> kevin.legouguec@gmail.com >> Date: Sun, 24 Sep 2023 10:19:11 +0000 >> >> StrawberryTea writes: >> >> > (overlay-put o =E2=80=99evaporate t) >> > (overlay-put o =E2=80=99cae-org-fold-heading t) >> > (overlay-put o =E2=80=99face >> > (save-excursion (goto-char from) >> > (face-at-point))) >> > (overlay-put o =E2=80=99display =E2=80=9C\n=E2=80=9D)))) >> >> This has a potential to break a number of things, because the text under >> the fold will no longer be considered invisible. >> >> Also, ellipsis will not be obeyed. > > But the idea to use a display string which is =E2=80=9C\n=E2=80=9D could = still be > useful, to help with the problem you pointed out in response to my > previous suggestion, no? --=-=-=--