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 iCjzC/oU5mPZ0wAAbAwnHQ (envelope-from ) for ; Fri, 10 Feb 2023 10:57:14 +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 cJ31C/oU5mMhIwAA9RJhRA (envelope-from ) for ; Fri, 10 Feb 2023 10:57:14 +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 B07243ECF3 for ; Fri, 10 Feb 2023 10:57:13 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pQQ8o-0003ju-2D; Fri, 10 Feb 2023 04:56:26 -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 1pQQ8m-0003ji-2U for emacs-orgmode@gnu.org; Fri, 10 Feb 2023 04:56:24 -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 1pQQ8k-0006bR-0R for emacs-orgmode@gnu.org; Fri, 10 Feb 2023 04:56:23 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id DD44A240444 for ; Fri, 10 Feb 2023 10:56:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1676022975; bh=qy+Bbz0Li32kmG8uqZyMO5T1tNLjOi0Id5m3K0txrpo=; h=From:To:Cc:Subject:Date:From; b=DCLWaPzkCcWaymAo9FoJRBI0UB5DoP0Ghxbfhc5SwEfzRgWYkTSrPY6Sq/UXK82Vw EemP/mgv+MidWUHhaFfBASFjIdFiCN2W25kBQERSDtwgIz0yjhwDNYKl3FqLXFjZNC enRCTzlHvW/aYneGBovg1E/ehOfhlL3iJ6xOySPM1ngYa61NJmK6fEAwIeAJWYryCy TTgrJ/uTogQx1IvvJfNl9klG8h48x2rUDpBubsbVVYzbA/d2h5egOo8Zx4FoGnVQOr 6ryY8VE2kwDQ4BparEFaw0cCKQAqeeqHeb3rSgGs4hhFtoBsTWvPAa/0mo/yd18DX9 6fGGq3R/qWJ3g== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PCpys1mTbz9rxd; Fri, 10 Feb 2023 10:56:03 +0100 (CET) From: Ihor Radchenko To: alain.cochard@unistra.fr Cc: emacs-orgmode Subject: Should we extend org-catch-invisible-edits to more interactive commands? (was: Catching invisible edits: problem understanding doc) In-Reply-To: <25573.3996.714544.156631@gargle.gargle.HOWL> References: <25573.3996.714544.156631@gargle.gargle.HOWL> Date: Fri, 10 Feb 2023 09:56:34 +0000 Message-ID: <87bkm1etd9.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-Flow: FLOW_IN X-Migadu-Country: US ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=DCLWaPzk; 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=1676023033; a=rsa-sha256; cv=none; b=BOaiv9LGs9vExoBZVqz/EHRGwwbnaMeHFJYyB0IylreSRs4nIaJErycgfli43b9IwNCqJ6 K2oA7tPESh6USUYsPQI/7P3kIA0rHybWkz9veSwe56hQyBJe8m+cROoqQPRHCEwcHNoDOx 4Y7LkgQjxVN3xdouZaxF/+7WSA25g0D1M7elfJocsSL39ppqZJW47HCb8iy0KMpUuSLebB 9FoxE9Ncym5c1tHrHTd3a7lEpi7YKotULsN43wamrRjPKyPNFwPxqvHdyoOOSOAGiAwdY+ ZEHWmnmZFu+1Xw4G7WvK+ZlY6UXwM8WvRKwjqr7MUrtboMvJIZ4Ai4B6naBH1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676023033; 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=tnBmaesp5LA9NCg7A0YSEYffuOYEe3CcIi+xfNErDko=; b=POPa12qq7XHbJgPkJ1Cuz+IwxAFHfJ9KuN1fTF2kSB2YJlrEAdjnf9nbrKkPEpod+ZkDTS JF6YBh0l9JrDWFXu3dRrGwR5gl9uxvHGsvZGUMX9yfv8Ay7uv4ttjxgYcuC6zVSvdAX/lS w5iyCmm3K3iMqkP77PzVuEq/WLxeUf06OJ+C5N4MawnkawrxQgNi743UVl0gOcjcz8Jyr3 t5KsmAUJyskVtu4et6dsZDHPcTDZDUJiF60TLZix/dibosHkHjUXm7DvG0IzQ/ci9hlV1J t7fzWJTtdg7kxXN/zC/dPbet+un+dOKcEr/4jCVr7kmapf57hu/dFChq02hKgw== X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=DCLWaPzk; 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-Spam-Score: -7.37 X-Migadu-Queue-Id: B07243ECF3 X-Migadu-Spam-Score: -7.37 X-TUID: XE+wjTEBS3aT Alain.Cochard@unistra.fr writes: > M-x undo > > I visually see no change, but I can observe by unfolding the headline > that 'bar' has disappeared. In my understanding of the documentation > above and of the docstring for org-fold-catch-invisible-edits, this > should only happen with 'nil'. > > What am I understanding incorrectly? Thank you. Only a handful of interactive commands support invisible edit checks. In particular: self-insert-command (typing), deleting char forward/backward, and `org-meta-return'. I guess we may instead provide a defcustom and hook the check into `pre-command-hook'. Would it be of interest? > PS: a very minor incidental point: after 'bar' has disappeared, the > headline is then void, so I tend to say that the ellipsis should > immediately disappear as well. The headline still contains newlines. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at