From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id eAOYKHSUmWMtCAAAbAwnHQ (envelope-from ) for ; Wed, 14 Dec 2022 10:16:36 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id +IbRJ3SUmWPvrQAAG6o9tA (envelope-from ) for ; Wed, 14 Dec 2022 10:16:36 +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 523E85A46 for ; Wed, 14 Dec 2022 10:16:36 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p5NrS-0003sL-9C; Wed, 14 Dec 2022 04:15:34 -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 1p5NrN-0003qR-T9 for emacs-orgmode@gnu.org; Wed, 14 Dec 2022 04:15:31 -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 1p5NrK-0000Wk-Ns for emacs-orgmode@gnu.org; Wed, 14 Dec 2022 04:15:28 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 9CB59240027 for ; Wed, 14 Dec 2022 10:15:18 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1671009320; bh=RLxYkTFV1JHOTzyvP7Xc/qrs77eWcSTPVJdvubGLiTI=; h=From:To:Cc:Subject:Date:From; b=sD2qwx5lXlsw36HXkW7aymuyuJ8IszjLXF0z0FDtAnuw6Suj/R5iV5BUi6a5gXhw6 px7QQoiHXz5Cmg3nA5ciWRJ0r8ylWZszUxs7rvlwrAojtyxHA+Oa6J/bvgBpFtN4xm A8EHzN6S58s6Bf+hRsqHbVR6Emr16Tlr9bW1ljHyMWtP6BMhi8IQlYFvnICgiYlEko eWhAHA3fxOQCpvM+JHOejw0vHRDCeFi/rnn3ccDyjjSZVX/TrWt+ufSxnTtWoWpnFV q//k7qoxx1/cNuukTXEUfD3Iu8Y/qJpd5V3sKsPAadT/eqvZt9CMCkmHXSDAZ2yHCi sRtm4uQj1ZEjw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NX8pY4J1Kz6tm9; Wed, 14 Dec 2022 10:15:17 +0100 (CET) From: Ihor Radchenko To: Sterling Hooten Cc: emacs-orgmode@gnu.org Subject: Re: Completely hide properties drawer in 9.6 In-Reply-To: <4CC6A1F4-0B08-44E0-AE4D-60CA11636663@gmail.com> References: <4CC6A1F4-0B08-44E0-AE4D-60CA11636663@gmail.com> Date: Wed, 14 Dec 2022 09:15:15 +0000 Message-ID: <87k02uqrbw.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: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, 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-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1671009396; 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=PQowCbw+hworjPBaaymFvJTg+KWEkePuDIET7L65jas=; b=Z7KGQvny+CQtLF8OX+RyuI7ZorCIBBBZ+5GT2NdWKtSngx+FZ/TLo/eM9pTVNhVjlnpc1X 0LXa4UFqI+hMH0FubeBdWyuIxs5wVGsAmsg6ZEuRE/Et2YMYo8Sx+KQrfaIVVF8OSqW6ZI 4jGlnPjU2JB0iNlSMe2APbkwlWDV9iyxnFTyW6Q6G/XrpCEuBv5pYgZJexGd1H+VaBIj7J K5+hda0O84bTbDuuM42nfJojmZWzd0n6Gw6h3416Kg4i/0l6FQuMCJgQD1wFuq8GzUkk4c iC4X4Ji+Hxpji1mfxDFW4OwXBjirt8Fnz6phDqUgRRJzteY2Vgrn1s8xyURuUA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=sD2qwx5l; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1671009396; a=rsa-sha256; cv=none; b=ui0Rk9S5wjDUl6/Yu+xCa6BnBkStmKQN1kT8+9qufciVKYE/HTblxSgE5702XfkZ97xo3H EoclO37bO+FGzhe4/0Ckw5uFqOfDHUHdg0iIykvYpZ6rTZAWLxz/YLfPcBwXMEjp1tl9E6 pIAvgMc5JY3ggErpZFJL+2hrCAXJrAkMjL0XMgb9p/t1YDVXiUICV6anVcuhSkVLjtfqev UqvTLmQlL6+MpBYbBSq0HJMH05P9Yy0y+8tqlCLjSLtlJn0SMjuB8UL1xqv8MBDr6FVliI 2RqipqNb9lK9moKZ7zDvTF23Xhz0fhu3PgGb03qRZ3CCs8eaOK/RVPS3rlvowA== X-Migadu-Spam-Score: -9.17 X-Spam-Score: -9.17 X-Migadu-Queue-Id: 523E85A46 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=sD2qwx5l; 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"; dmarc=pass (policy=none) header.from=posteo.net X-TUID: qD7FfzngcurF Sterling Hooten writes: > In Ihor suggested > adding `org-custom-properties-hide-emptied-drawers', this was > rejected, but is pretty close to the desired behavior, except it's > still global. I was unable to get this working in release 9.6. I do have this implemented in local branch. Just did not push it upstream as it was rejected. > Prior to 9.6 I overwrote org-cycle-heading to hide the properties box > using overlays. This worked alright but had slowdowns on larger files > and affected typing cadence noticeably. Org 9.6 is now relying on text > properties instead of overlays, and I would like help replicating (and > improving) that behavior. Note that Emacs 29 does not have issues with large numbers of overlays. > Part of the complication comes from updating modified timestamps in > the properties of each heading. This drives the need for hiding to be > fast so as not to bog down the editing experience when triggered by > `after-change-functions'. This is handled by org-fold-core.el library. Note that you can use the library to introduce new fold types. Editing inside folds is optimized. All other concerns are also handled within org-fold-core. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at