From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id gB63Ezw5AF8NTAAA0tVLHw (envelope-from ) for ; Sat, 04 Jul 2020 08:09:32 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id oNBrDzw5AF/ubwAAbx9fmQ (envelope-from ) for ; Sat, 04 Jul 2020 08:09:32 +0000 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 CD683940215 for ; Sat, 4 Jul 2020 08:09:31 +0000 (UTC) Received: from localhost ([::1]:55774 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jrdEn-0001Sz-UL for larch@yhetil.org; Sat, 04 Jul 2020 04:09:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50202) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jrdES-0001S7-Vh for emacs-orgmode@gnu.org; Sat, 04 Jul 2020 04:09:08 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:37691) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jrdDj-000577-Ut for emacs-orgmode@gnu.org; Sat, 04 Jul 2020 04:09:08 -0400 X-Originating-IP: 185.131.40.67 Received: from localhost (40-67.ipv4.commingeshautdebit.fr [185.131.40.67]) (Authenticated sender: admin@nicolasgoaziou.fr) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 5FA2FFF80B; Sat, 4 Jul 2020 08:08:19 +0000 (UTC) From: Nicolas Goaziou To: Ihor Radchenko Subject: Re: [9.4] LOGBOOK visibility References: <87eepuz0bj.fsf@gmail.com> <87wo3kk8x1.fsf@gmail.com> <87pn9cihul.fsf@gmail.com> <87r1ts3s8r.fsf@localhost> Mail-Followup-To: Ihor Radchenko , =?utf-8?Q?K=C3=A9vi?= =?utf-8?Q?n?= Le Gouguec , emacs-orgmode@gnu.org Date: Sat, 04 Jul 2020 10:08:17 +0200 In-Reply-To: <87r1ts3s8r.fsf@localhost> (Ihor Radchenko's message of "Sat, 04 Jul 2020 10:53:56 +0800") Message-ID: <87mu4f66tq.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=217.70.183.199; envelope-from=mail@nicolasgoaziou.fr; helo=relay9-d.mail.gandi.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/04 04:08:20 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -35 X-Spam_score: -3.6 X-Spam_bar: --- X-Spam_report: (-3.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org, =?utf-8?Q?K=C3=A9vin?= Le Gouguec Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -1.01 X-TUID: rRmrYHO4XdJi Hello, Ihor Radchenko writes: > There used to be several types of overlays for headline folding, drawer > folding, and block folding. One of the recent commits made all the > overlays use headline type. As a result all the overlays are merged into > a single overlay upon folding. This was done to reduce the total number > of overlays present in an org buffer, which degrades Emacs performance > on huge org files (see the discussion in [1]). > > What you observe is a consequence of that change. Now, all the drawer > overlays are destroyed when you fold a heading. Isearch would > only see a single huge overlay and unfold it alltogether. For completeness, at the beginning drawers and outline shared the same invisibility value. At some point during 9.X development, I gave drawers their own invisibility value. It provided an overall nicer behaviour, but also introduced some serious slowdown in large files. Recently, as pointed out by Ihor, I switched drawers back to their initial state, i.e., they now share the same invisibility value as the outline. At least, Org on very large files is slightly more manageable, but the behaviour is less nice. With overlays, you can't have your cake and eat it too. > I am currently working on a patch to rewrite the whole folding system. > Your issue should disappear once it is applied. Yes, hopefully, switching to text properties will get us out of this sad situation. Regards, -- Nicolas Goaziou