From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 0GO1Aj1UPWR5RAAASxT56A (envelope-from ) for ; Mon, 17 Apr 2023 16:14:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 4FuuAT1UPWR8rAAAG6o9tA (envelope-from ) for ; Mon, 17 Apr 2023 16:14:21 +0200 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 C4E75149AF for ; Mon, 17 Apr 2023 16:14:20 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1poP2K-0005g5-CY; Mon, 17 Apr 2023 09:36:52 -0400 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 1poP2G-0005fk-MQ for emacs-orgmode@gnu.org; Mon, 17 Apr 2023 09:36:49 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1poP2B-0004HN-6T for emacs-orgmode@gnu.org; Mon, 17 Apr 2023 09:36:48 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 124162401B0 for ; Mon, 17 Apr 2023 15:36:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1681738601; bh=7yQknyqiZHhez2qNntfrRPMh19LUnCMc0g7c9qX04SU=; h=From:To:Cc:Subject:Date:From; b=fGBkQd4yh6yW2PYNQXSPXIZxncgheWTOxbXr45Efv72+JGH2lEIF+5lUUzRtHpFmG GRvMhT2Z/OEGmAvIwNfR3H9ldYFUpJao9WIvx/KdigjINuIOXX2AvywK83TbA9w3VO ehF9NP2S7+T3lypBY37I6HGALqGc0ExDFOIswZTcJI+TQdokTuT8IXxKF4Aqb3lLJA +KcaGLur7UTxVJhxw9PVXFpR8cN6Q8sPYGqJwYv9WvGSGEOlgaeEvPJAw0gcXTtYFb IRYuJcihrnogO+9i9o4K24oYltkiMGzcKGL1SW4L/hq9bxv1+/lDp68Y4DiHqORjra B3u7C/W6lj1Qg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Q0Skw3wtnz6tyC; Mon, 17 Apr 2023 15:36:40 +0200 (CEST) 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: Mon, 17 Apr 2023 13:39:13 +0000 Message-ID: <87edoi1vcu.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.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, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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=1681740860; 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=/NAbqsx8pO7zNbYj8BteqzJk9i6QHSGQx8ghgw0BWWs=; b=p+sjF1P4U21AGYPSuwlATr0OhqtmIG/DZR1ZO5OjCarGGKXaIuziIrrpSO85UpACpfAdYn d9+5ywlcYFei7jvgwPJd8fVxRfvgvAfvwIDEdpF6CN9nxwieAMc8Mg5YFx2jck1onSbcx6 WYXHt2VtSH0Nlj1CGNOXKThSYm4A9LWIe+UI9lyKW3XRWSIGV3QerdEXoHIOI48IM5qBFj cHhQGU5e+iw+fFJrI9dCThBc93l4mQvsm1FWhy6K7Y4+PhHhsiwt8Q1+EEdUAblqdZJWa6 q7pSacDe9rBxyDXikJFCsbsrtKl1syokKwgjXS23oJRaKT2iv9+uLtyT5N2nmw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=fGBkQd4y; 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=1681740860; a=rsa-sha256; cv=none; b=oSPY2kknNfxunvGPLgDjK9der6bVAXw7mazxzqEcDjyL3EbKcSDIXz1NioYZn5CK16BZaf nfQdzdK6S+0tr+McF02O9rxuZP8/qedzB5ryS4NIX1vUPstsh+B3zlfVBKx7ExLxQwqKJg ae+Mol5J1XKbgSnQ07KEZ1yZ9hvq/URgOMSlqfX8TQEZOW3j2yl3wp5hz4SKuezqr1ymQf mCy/RyaT8/KudL2abeDP9Eqe4YaJm/wGLkRrIxOlPYL7sWr5cF3RXQ7y/kHXmB0W8QUgj8 2lfLMhLffBhTD8RtBlQX6jQQprlffCC/x5QttwL+yZn2+1U1WK8IXTEJfy1EHQ== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=fGBkQd4y; 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: -4.57 X-Spam-Score: -4.57 X-Migadu-Queue-Id: C4E75149AF X-Migadu-Scanner: scn1.migadu.com X-TUID: it5VFcM3lqvR 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. What can be reasonably done here is revealing edits, when they are done inside folded text. Do you think that adding such an option to Org would be useful? Note that we cannot easily prevent edits inside invisible region because some edits may start in visible text and then continue inside invisible - aborting only invisible part of the edit will cause partial edited state, which is terrible idea. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at