From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id OOpEDJ9G7mN/FQEAbAwnHQ (envelope-from ) for ; Thu, 16 Feb 2023 16:07:11 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id uHpnC59G7mMaXQEAG6o9tA (envelope-from ) for ; Thu, 16 Feb 2023 16:07:11 +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 A3AFC38D8F for ; Thu, 16 Feb 2023 16:07:10 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pSfqP-000417-J6; Thu, 16 Feb 2023 10:06:45 -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 1pSfqN-0003zb-K8 for emacs-orgmode@gnu.org; Thu, 16 Feb 2023 10:06:43 -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 1pSfqL-00024w-M2 for emacs-orgmode@gnu.org; Thu, 16 Feb 2023 10:06:43 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 74446240334 for ; Thu, 16 Feb 2023 16:06:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1676559979; bh=CIGoa5Mv6biDidiIs65md5e2wqPLPHoqNm2PNeQ6fpA=; h=From:To:Cc:Subject:Date:From; b=GKO771lkT32ZrMFQhmAj+LVJUkf+Th3aAGybvYAevDrXZyanVgyZY4+l2ABIDQ097 7S6Xaif/nntU5lISREQh+3N3zMVmaUBu1AHy/xS9GQiqswnP9+lyb+BHnSfwKkWVgY rbsmapFC0orU82UuzthsypBqF8ehFkVxrBQrmqEa3v9zMR7g1WKM6Jl6KHKthyu2FE Q+c5Cd8H8B8v90Fvx1wSy0XZk08EVzUu8aONiwLf8FC23549BEXWIDgW8YpqCBTkCZ hO0bZudaHuA8iIWx9Z/C6F1/OaprIOeaE7A0yK1jhy9RHSZRA+x22p2rqyf8Iyi9Mf U5HFolhCzWkZw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PHdZ019wzz6tqh; Thu, 16 Feb 2023 16:06:15 +0100 (CET) From: Ihor Radchenko To: Alain.Cochard@unistra.fr Cc: emacs-orgmode Subject: Re: [PATCH] Allow customizing commands affected by `org-fold-catch-invisible-edits' (was: Should we extend org-catch-invisible-edits to more interactive commands? (was: Catching invisible edits: problem understanding doc)) In-Reply-To: <25579.41430.280368.917278@gargle.gargle.HOWL> References: <25573.3996.714544.156631@gargle.gargle.HOWL> <87bkm1etd9.fsf@localhost> <25575.52322.757469.405610@gargle.gargle.HOWL> <87a61kukn1.fsf@localhost> <25576.34807.805766.160813@gargle.gargle.HOWL> <87wn4mgb5k.fsf@localhost> <25579.41430.280368.917278@gargle.gargle.HOWL> Date: Thu, 16 Feb 2023 15:06:49 +0000 Message-ID: <87v8k1ved2.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-Seal: i=1; s=key1; d=yhetil.org; t=1676560030; a=rsa-sha256; cv=none; b=VkxxwEoXs/qEotk5dgZEaG4K2/TZp4t4JU0bqWxFXzXK427ZMhmEVFjZDZ/XYYK/elAlqg 1mEzFqA4pAWdiUrTyWa/iucDZo7/ju3p1Fw4wLEnWjETiOCzDidh59aAYt9s86k6q42TU6 zRj1dWtnN5FXP57EHO0MJu9zSLX6UhQcPYtok53jRxIETzUPSloMGMmcqYl81ihdTHZzBQ NALJsz+hN4Yh4NXWo53vY1IpAmaRGavZ465fPy7jRlsGFpp4oDpgArgxTShimUevRmllVo zMfdROJ1n5tUMP7W9VqNwx8ymnAgetnPqqj8E3uhCtQDa6RCGfifGX6Y/4peDw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=GKO771lk; 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676560030; 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=+/qOgzfrbyeXmFOoT0x+PV5cmBmQkpRg90GIdwsptM0=; b=sSgVSVyyQ6oFmcGAE1lTneotb1HaFrUYWuSIVsHzrgflHpEpo4P9oOAgjl61Pot6VOdtxI ZHk5YaOrOXyySzCfkX8npLmslHr8u9W03b2lUnU7DwmRJzepUUvI3jO+7a5+0KT7OkWCaZ keYtHLKm/PGh4lLzfk1vMlP+zzOg5XWpz5v/0XpSYC69Bm+8SxK1dyoy6s0IrsW3W2TBSh q1CQGACfeWXS1+LDA1jGbJZ1RWPsENLRRuoBNg8Kdf8u9NWStZRdmKjOlN2Yf6AHCzKXaK Dlm2vyrSOLziQ1tUJEV7eYGceUmluT+WJ60DnOmhmP5g9e9oTn88fM/DvedKDA== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=GKO771lk; 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-Migadu-Spam-Score: -2.96 X-Spam-Score: -2.96 X-Migadu-Queue-Id: A3AFC38D8F X-Migadu-Scanner: scn1.migadu.com X-TUID: 64NHdcXxEOAj Alain.Cochard@unistra.fr writes: > However, I could not have it work for my case so far. I tried to add > "(undo . insert)", "(undo . delete-backward)" and "(undo . delete)" to > 'org-fold-catch-invisible-edits-commands', one by one and together, > and all values of 'org-fold-catch-invisible-edits'. Any clue of what > I am doing wrong? Thanks. As the docstring states, the check is performed at point. Checking the actual modifications would be rather tricky. It might be done, but there are so many caveats that the code will be fragile. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at