From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?K=C3=A9vin?= Le Gouguec Newsgroups: gmane.emacs.bugs Subject: bug#65896: 30.0.50; folding text with text properties prevents background from extending past the newline Date: Thu, 21 Sep 2023 23:07:50 +0200 Message-ID: <87a5tfp74p.fsf@gmail.com> 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> <83a5tfadpq.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36007"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Ihor Radchenko , 65896@debbugs.gnu.org, look@strawberrytea.xyz To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 21 23:09:10 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 1qjQv8-00097F-59 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 21 Sep 2023 23:09:10 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjQut-0005xd-I6; Thu, 21 Sep 2023 17:08: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 1qjQuq-0005xU-UH for bug-gnu-emacs@gnu.org; Thu, 21 Sep 2023 17:08:52 -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 1qjQuq-0001kC-Ll for bug-gnu-emacs@gnu.org; Thu, 21 Sep 2023 17:08:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qjQv0-00014H-H8 for bug-gnu-emacs@gnu.org; Thu, 21 Sep 2023 17:09:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?K=C3=A9vin?= Le Gouguec Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 21 Sep 2023 21:09: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.16953304964038 (code B ref 65896); Thu, 21 Sep 2023 21:09:02 +0000 Original-Received: (at 65896) by debbugs.gnu.org; 21 Sep 2023 21:08:16 +0000 Original-Received: from localhost ([127.0.0.1]:34892 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjQuE-000133-6c for submit@debbugs.gnu.org; Thu, 21 Sep 2023 17:08:15 -0400 Original-Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]:61588) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qjQu8-00012d-AQ for 65896@debbugs.gnu.org; Thu, 21 Sep 2023 17:08:13 -0400 Original-Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-404314388ceso16062525e9.2 for <65896@debbugs.gnu.org>; Thu, 21 Sep 2023 14:07:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695330472; x=1695935272; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=o1MSDMqHEUnf4WVmhK4tO9qYWAA/Y5Ix74YNENZpPbo=; b=KBqxuzoPF79hQ3XWvDNqaI963zoguIvQ5pcf8XKP4fPCsGG7N6Wr2+axZoA1hWB97B 2jTf1DJjaGBUPlXKntyEmU/emqGOnCOpR66jb3f52eaROL+IU4mQfQkJi93DY7McbBno p2FPl5VkNFs7nT3Q9r2jIkvs3RR0QUHipckiYhMnOZSpIh38eUqoSxDK0NuqnpDGZBH9 6zVoZpozLP6zbAx9yAqkTuJCOqVt8ZbgW5PCq3lG/odXPpYRV0tG+Z1ae4XERkxl4ea7 7RaNVp1tQzRCyQk+SDxm2UKvt85kQrimszNnOAqDeSZp9f8II8NOpyQksLgCbp4CVBMq 1NBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695330472; x=1695935272; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=o1MSDMqHEUnf4WVmhK4tO9qYWAA/Y5Ix74YNENZpPbo=; b=opy9FaK/ieBkXHVbCDFsJNLNQ2WfYc+kynlLLncQmJ+8fr6FwacbbZ6rZzTqLK8CvM dCRkTpvJUFKu0ycoViwTTVdUN1Jw5l44i6STYdSmPK2kD27bbSCP/UuvUF7o7Ry5kHXe MOb5mJbTSq89YxiTQO32tiFn+kTCXW0U2j4L4agQw6BMJ+fUCb9iYyUJc/tzqsG0GObr oaO7sRgt2876okIOzy7qNLS89iYGVxfYQXh5Z3YrrPgevgUoA42cuud3Q6yfKlv9Cw2F Dzutv1cBx/hiq21OZ4kBtcmwSQsm/Hw0ovk8pqFBDv+qdt8oEmSrNKG0EWB+PDsIR1mA INBQ== X-Gm-Message-State: AOJu0YwHaP892BxplLAbBzd2i494CwSynG5FYMT2GOWAxHSxwMjmkgaD IhDuPJLodU3FJhyPLl0SsVk= X-Google-Smtp-Source: AGHT+IGWhjjIZF7QpuF+obJpw27ibHKJgoLpsnYyD1c55GoYw63Fyzt7UkDQ2IPzHCtmc93J3jizJA== X-Received: by 2002:a1c:4c09:0:b0:401:bf87:989c with SMTP id z9-20020a1c4c09000000b00401bf87989cmr6527922wmf.34.1695330471803; Thu, 21 Sep 2023 14:07:51 -0700 (PDT) Original-Received: from amdahl30 ([2a01:e0a:253:fe0:2ef0:5dff:fed2:7b49]) by smtp.gmail.com with ESMTPSA id l21-20020a7bc455000000b003fee8502999sm5686645wmi.18.2023.09.21.14.07.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 14:07:51 -0700 (PDT) In-Reply-To: <83a5tfadpq.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 21 Sep 2023 15:54:41 +0300") 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:271026 Archived-At: Eli Zaretskii writes: > I cannot see how this proposal > could be TRT. Yeah, I believe there should be ways to scratch that itch without going all the way down to the display engine. FWIW, I would invite motivated hackers to check out magit-section and see if outline-mode could be taught a new "folding style" that would use the same folding principles. My own wandering through the EIEIO maze has been too brief to yield anything useful, but AFAICT the salient points are: * setting the 'invisible overlay's BEG at the start of the "section body" (after the heading's newline), * storing bookkeeping information (such as this beginning position) in a 'magit-section property applied to the heading, so that magit-section-show can retrieve that information when invoked by the user with point on that heading. I would imagine outline.el could grow a user option to adjust overlay boundaries this way, so the heading's newline would remain visible, and so would any :extend property on that newline=E2=80=A6 although perhaps I'm missing some key differences between outline-mode and magit-section-mode that may derail this train of thought.