From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id aCJ8CNkPa2Nt2AAAbAwnHQ (envelope-from ) for ; Wed, 09 Nov 2022 03:26:33 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id CF5LCNkPa2MBCQAA9RJhRA (envelope-from ) for ; Wed, 09 Nov 2022 03:26:33 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D4FB63180B for ; Wed, 9 Nov 2022 03:26:32 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1osan6-0002UD-Kk; Tue, 08 Nov 2022 21:26:12 -0500 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 1osan4-0002U5-Rl for emacs-orgmode@gnu.org; Tue, 08 Nov 2022 21:26:10 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1osan2-0002kv-Rb for emacs-orgmode@gnu.org; Tue, 08 Nov 2022 21:26:10 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 95A84240026 for ; Wed, 9 Nov 2022 03:26:06 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1667960766; bh=jX1zdrDs5NwNOFBjmUeYwdfzPteJnrSx8EM+AtiNgc8=; h=From:To:Cc:Subject:Date:From; b=RzIfBMk8/ruz9Hl3hRVr6Y/KPdGDdDiGD3ODMAAU7gaJ5pkHrAO/93j3BPrxfuk+5 +sy3uEQ3loSyV5fzY2JGoLruLq8KsckxnK/f3wTNdLpSjJHWbCUQ76seAnUscNSuTc JHLV08YAMASXmfC3h1IBhvSwF3lCzcq+E23ynG09W4l0v04K8nhB99uK1D6TkxTuVm pwDvy3yEs3MF24KRT3CqlWKczNTQerlrx4iWrszThT2CxWdJ+g/MeuiFSvWuQZOufM bYUiYErTsVA1o61p9YuhXBDE6ZNDl+qkxIyArgBdexgfUAHmnDdRGY2Fg1m332efWn 5EJP/lO22O+4g== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4N6TNW4BNFz9rxB; Wed, 9 Nov 2022 03:26:03 +0100 (CET) From: Ihor Radchenko To: Al Haji-Ali Cc: emacs-orgmode@gnu.org Subject: Re: extended background on org-block-end-line In-Reply-To: <871qqdxrjz.fsf@gmail.com> References: <871qqdxrjz.fsf@gmail.com> Date: Wed, 09 Nov 2022 02:26:42 +0000 Message-ID: <87y1skc17h.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1667960792; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=grzpcc9HzPaSwmSlRZ4X9Ss1fb8OWyBNlGLfIH4lANM=; b=ogopft23H/gu5w0L627KKofJaIYy+D7StMNpg4oDuRP4AGDt9LaEXnBK6chZg168nujbnx gYwDlusddA0E8mRILQ4B0ib5kNdS+L4ZqPiAuu49PBIPs5nWtUiOcVbgJYBaY494RyF/mj 5PQL3hFjwU5Zjx53dj4f1ME2y/Qfp9ej6OxJ7F/v2J6NNCEPBua64JhdcCF1v7XSgfpHgF X1nw2Vslbp9s5nEyytbqS2Ka1IXRkqj6U6j/druVbv/Kocbj3AeMhh+bim28uG8LgvxTh4 NQYZbKqk71+WjgREReQukuFqD6Z0m2QmPGz/q127n2rWjGoT0Z5uodbPU2RPIA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667960792; a=rsa-sha256; cv=none; b=dzO7sq/arpZ3diSJf6gKhvFh6v6Zf4Feha/dNNtP/5BM+Ut6D++hazvmbS8ZfdEcHeKYbD 8BslpMuI37hAA/cdX9ffMhZ5qOxjREcwmY3YPkoV1pRh9xgkgk77MSeKk9z52DPBf8ZTus lQyH72NrYrYlIM6i8mRHZuPCkHAM2yGEFseuWmtHxQ8ox7WnhUT+5VKkmmOpyL81upSW51 FrVAikRcUeXIjByS0so23sDArG6ibHwdIRvpgRINjFUGoLlELJTe8P+yEQ+yCQ7inn68KZ iMdLEZvYCAWql0p8AACQiK3rH1Dxomii219qploCCOtGCwc4PqHBFgqWFOu2iA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=RzIfBMk8; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.32 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=RzIfBMk8; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: D4FB63180B X-Spam-Score: -5.32 X-Migadu-Scanner: scn0.migadu.com X-TUID: vIZEA/jSVmXR Al Haji-Ali writes: > I'll admit this "bug" is not critical, but it is visually annoying (at least to me). > When hiding an org entry, source blocks with extended backgrounds remain visible. > > To re-produce: > ... > 5. Notice how the background colour now appears next to "One". > > Is there a way to fix this? Note that if the org-block is not the last line in the entry (for example if there's an empty line before "* Two") then the visual artefact is not present. Thanks for reporting! Confirmed. This is because Org keeps the last newline visible and Emacs apply :extent t to that visible newline. I do not think that we can do much about this on Org side. I have redirected this bug report to Emacs devs. See https://debbugs.gnu.org/cgi/bugreport.cgi?bug=59141 -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at