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: Tue, 23 Jan 2024 20:14:21 +0100 Message-ID: <87r0i7eub6.fsf@gmail.com> References: <87ttrzmfua.fsf@strawberrytea.xyz> <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> <87r0ml9wk5.fsf@localhost> <87o7ddwhnm.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18331"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , 65896-done@debbugs.gnu.org, look@strawberrytea.xyz To: Ihor Radchenko Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 23 20:15:18 2024 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 1rSMEw-0004b8-Bd for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 23 Jan 2024 20:15:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rSMEc-0001E6-IH; Tue, 23 Jan 2024 14:14:58 -0500 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 1rSMEb-0001Dr-Da for bug-gnu-emacs@gnu.org; Tue, 23 Jan 2024 14:14:57 -0500 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 1rSMEb-0008Tk-5T for bug-gnu-emacs@gnu.org; Tue, 23 Jan 2024 14:14:57 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rSMEf-0008AB-Mn for bug-gnu-emacs@gnu.org; Tue, 23 Jan 2024 14:15:01 -0500 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: Tue, 23 Jan 2024 19:15: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-done@debbugs.gnu.org id=D65896.170603727631328 (code D ref 65896); Tue, 23 Jan 2024 19:15:01 +0000 Original-Received: (at 65896-done) by debbugs.gnu.org; 23 Jan 2024 19:14:36 +0000 Original-Received: from localhost ([127.0.0.1]:44005 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rSMEG-00089D-2d for submit@debbugs.gnu.org; Tue, 23 Jan 2024 14:14:36 -0500 Original-Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]:60903) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rSMED-00088x-Hw for 65896-done@debbugs.gnu.org; Tue, 23 Jan 2024 14:14:34 -0500 Original-Received: by mail-wr1-x431.google.com with SMTP id ffacd0b85a97d-3392d417a9fso1867783f8f.1 for <65896-done@debbugs.gnu.org>; Tue, 23 Jan 2024 11:14:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706037263; x=1706642063; darn=debbugs.gnu.org; h=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=pRapFTmeNKCsGkmL1cfVbehNwTyy0sU/4HBY4nBR1Bw=; b=CgSr2q3JnBw/RE0g60UBhelkoxofaIHUVU1x9OytuGrrPG0iXRTxFYHn12bNXx7lxg tU3BylCzHvIOmKd9P6E8SA8MYnirFRB/UAhfUb0F98v8fFSZm6THzKdpaVEOD9q4LSlX R2seAokyCuNjq6gSrVzeaNR08AzultuQHwjOOIIW10gOmMVmqqgBSgXDjxEIuPgZ77IF pTzd8Xiekl6HCv0O8gVqn63LLZfaEb3w13rZUkzhUYyR4VWiVq6kLWubw66I+FJFc0OR RA844Lav3IPUILmVVe7H5ULIUdSm4oR7r1eimDyo2rv5qIiua9z9FYpXdiDNJ2avaqX2 QA5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706037263; x=1706642063; h=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=pRapFTmeNKCsGkmL1cfVbehNwTyy0sU/4HBY4nBR1Bw=; b=He9fT5X8rAzjssC3nSQkrRMOz/cu7g/dMz1eRoUl34oZr4qVdGKnfWcb8MAnrDSyaH VS8vD4b6vRdwlU7iHm84Iqgu3W0j0iABYISmtoES5iZW+xQDlPXvTc1gYSj+aoUOjQId FoyBmAQ8JpR55KMska2QsUzhoVpYk08tObvDD5bdkWaYYVE6HmyBxTfWFhMoeSTwL8Xg TtxBvyMum4pva9GODMN5jaRDES3sZPlnsun7745PXe1YFSmcWOktqyiZRWfAvcAujgrr 5tEo4g7I+E6BAmicROjRCVc//053uRDXloNc4Uk6+e/xDWrW+qz2FWc9U89/sv3+v4TN 7hLQ== X-Gm-Message-State: AOJu0YxKhx/M4/sRY8OwKiDUtKhBlNZK0TzfezCgPncqKfFU6LuA25pZ t3BC/HWpzjSGVWAL2sOKtG7d1Q4aEVfb8qY3oTfIzRr+Md66twcM X-Google-Smtp-Source: AGHT+IFAVUQ+5lrrFo0bJ5+NOFPe7o1HRkBtgMYYgDRFoGJ/lwhRo8F0kV2Nolxit/m9hnSA07npmA== X-Received: by 2002:a5d:44c6:0:b0:336:9e8a:6fde with SMTP id z6-20020a5d44c6000000b003369e8a6fdemr3520217wrr.22.1706037262664; Tue, 23 Jan 2024 11:14:22 -0800 (PST) Original-Received: from amdahl30 ([2a01:e0a:253:fe0:2ef0:5dff:fed2:7b49]) by smtp.gmail.com with ESMTPSA id u7-20020a5d6da7000000b00337d735c193sm4032121wrs.49.2024.01.23.11.14.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 11:14:22 -0800 (PST) In-Reply-To: <87o7ddwhnm.fsf@localhost> (Ihor Radchenko's message of "Mon, 22 Jan 2024 14:45:49 +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:278747 Archived-At: Ihor Radchenko writes: > After several attempts, I found a way to handle faces in the trailing > newlines after folds without excessive changes in Org mode. > Fixed, on main. > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=2ade16bbc Neat. At first glance (including the subsequent fixup), it looks like outline.el could be taught the same trick, right? It would """just""" be a matter of finding the spot(s) that map to org-fold-core-region, and implementing equivalents to the org-fold-core helpers you leveraged (get-regions, get-folding-spec, get-region-at-point) if they don't exist already? Not lobbying for it (and certainly not requesting you tackle that); asking in case your experience with Org taught you anything that might come in handy for generalizing to outline.el. There already exist non-Org uses of that package that could benefit from that feature (e.g. diff-mode when the diff-context face has a non-default background, or when diff switches include -U0), so I could see value in adding a user option to enable that.