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 UMlRHNYQ5WO+FQEAbAwnHQ (envelope-from ) for ; Thu, 09 Feb 2023 16:27:18 +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 IKdeG9YQ5WM/WQAAG6o9tA (envelope-from ) for ; Thu, 09 Feb 2023 16:27:18 +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 D82E927F0 for ; Thu, 9 Feb 2023 16:27:17 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pQ8o4-0004vr-J3; Thu, 09 Feb 2023 10:25:52 -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 1pQ8o1-0004r8-Ez for emacs-orgmode@gnu.org; Thu, 09 Feb 2023 10:25:49 -0500 Received: from smtpout02-ext4.partage.renater.fr ([194.254.241.31]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pQ8nx-0000jt-Ne for emacs-orgmode@gnu.org; Thu, 09 Feb 2023 10:25:49 -0500 Received: from zmtaauth04.partage.renater.fr (zmtaauth04.partage.renater.fr [194.254.241.26]) by smtpout20.partage.renater.fr (Postfix) with ESMTP id 4F035C01E1 for ; Thu, 9 Feb 2023 16:25:37 +0100 (CET) Received: from zmtaauth04.partage.renater.fr (localhost [127.0.0.1]) by zmtaauth04.partage.renater.fr (Postfix) with ESMTPS id BF9AF1C0159 for ; Thu, 9 Feb 2023 16:22:05 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by zmtaauth04.partage.renater.fr (Postfix) with ESMTP id ABD471C0165 for ; Thu, 9 Feb 2023 16:22:05 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.10.3 zmtaauth04.partage.renater.fr ABD471C0165 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unistra.fr; s=CF279DD4-6F58-4C59-BB33-73FDC6DFC1E3; t=1675956125; bh=GWsL8NYznYKfGFyy7oZvzI1yodnrrSjgy5sKrY+OZ3U=; h=MIME-Version:Message-ID:Date:From:To; b=GdwAyEPXJLMTYVk41mJRCSG4PC3UpJMwqDyaOMuLZR/PEXLc98erJB11KX8qfxEa6 69w6MF8SQeHeq3sKJt9DZ+NtgRVDbSZ7kfslj4kgN2PESSpsg64J3xA79EQywwteL8 dtxw2125FcT6tjUy7jB8/p1UPyyEjAmfZDK3m05tQoH0Xi9a4snPa3PzyD/v3eDy0X FJHAAozESlCPAY095kHuCuxnYdOnNg8Yk+69Ahk8DEVn4QxMZyY68dJvSQKJ5UdQKm RaczSPjjVuDYO2IJcV3Hqcg8Oh5hCcCpv8eYveB+cKfQNH2TGdnTz6DoKMZ3o/fbco wNKlPb3NsfX7A== Received: from zmtaauth04.partage.renater.fr ([127.0.0.1]) by localhost (zmtaauth04.partage.renater.fr [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 3-bCt69GMCti for ; Thu, 9 Feb 2023 16:22:05 +0100 (CET) Received: from 90.33.255.163 (unknown [194.254.241.251]) by zmtaauth04.partage.renater.fr (Postfix) with ESMTPA id 525901C0159 for ; Thu, 9 Feb 2023 16:22:05 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-ID: <25573.3996.714544.156631@gargle.gargle.HOWL> Date: Thu, 9 Feb 2023 16:22:04 +0100 From: Alain.Cochard@unistra.fr To: emacs-orgmode Subject: Catching invisible edits: problem understanding doc X-Mailer: VM 8.2.0b under 27.2 (x86_64-redhat-linux-gnu) X-Virus-Scanned: clamav-milter 0.103.6 at clamav04 X-Virus-Status: Clean X-Renater-Ptge-SpamState: clean X-Renater-Ptge-SpamScore: 0 X-Renater-Ptge-SpamCause: gggruggvucftvghtrhhoucdtuddrgedvhedrudehfedgjeegucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecutffgpfetvffgtfenuceurghilhhouhhtmecufedttdenucenucfjughrpeggtgfgkfffhffvufforhesthhqredtredtjeenucfhrhhomheptehlrghinhdrvehotghhrghrugesuhhnihhsthhrrgdrfhhrnecuggftrfgrthhtvghrnhepiedtffekffejueeitedvhfduheefueffgeeihfeftdduveelieegfefhjedthfehnecukfhppeduleegrddvheegrddvgedurddvhedunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepudelgedrvdehgedrvdeguddrvdehuddphhgvlhhopeeltddrfeefrddvheehrdduieefpdhmrghilhhfrhhomheptehlrghinhdrvehotghhrghrugesuhhnihhsthhrrgdrfhhrpdhnsggprhgtphhtthhopedupdhrtghpthhtohepvghmrggtshdqohhrghhmohguvgesghhnuhdrohhrgh Received-SPF: pass client-ip=194.254.241.31; envelope-from=Alain.Cochard@unistra.fr; helo=smtpout02-ext4.partage.renater.fr X-Spam_score_int: -3 X-Spam_score: -0.4 X-Spam_bar: / X-Spam_report: (-0.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_HELO_IP_MISMATCH=2.368, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: , Reply-To: alain.cochard@unistra.fr 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=1675956438; a=rsa-sha256; cv=none; b=iV99XgSp7WGygvhgvHkW4C1c6sDkpdUKUprFLhR6ydCHgKThtNN98hgbcLOy9kzCenJH69 0Eq6JL8D/umWBH5PsEasPPHBpeMvpmTijSrNYHfK/UUF5oDB49NKzOmJsuU4zoegn4vlEk Yj5sneydGS0wuoCa16zuLogwXVB6fwsuaxOLdK1GbBhSjypH8PVclILsnXTVesybXOTh8b MEBKQB3KsWnSsjeFja5dUfcgqSy8U2difmZbMQV2ybuF+fqhNVcmWHI9QT1H6FrBVxpAG5 R+/FrZnxR+V6fkkJJkjdzdrsgWwQjypwB5VvyK1vro93cvMJzFsCqMceOt0JVA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=unistra.fr header.s=CF279DD4-6F58-4C59-BB33-73FDC6DFC1E3 header.b=GdwAyEPX; dmarc=none; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1675956438; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=GWsL8NYznYKfGFyy7oZvzI1yodnrrSjgy5sKrY+OZ3U=; b=IScDnp/ZXAg5paOhEaoE9liRq49FeofopHUcmY+cESXchXiY0DRzAFbHDFETcgAsGCG31X lnSwzHWcNrg3zUboo+jdlUYHIUC8/uhvbMiem3XVVWEkvRwkp3mH8lr6mvAc8dNDzG/U1T 0rNBLPUzPiP7h6s/UFwKCaTNmE36mv5QHKO6XHjmlwZv4tAv2uQyL19d/ZpzmUAwQsXCf1 h1JYFkk2gpF+MNOtr54EbfeIF853o9OEheHdYTgTUn8bP8sXWAQ3EbwBj/FQRWQd2MCEeE aAENNeqowxiU+hPUbVHnQd4eeDWHbx2tLhPDm8HLCcruX8UfXlc4bLr80lFNxQ== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=unistra.fr header.s=CF279DD4-6F58-4C59-BB33-73FDC6DFC1E3 header.b=GdwAyEPX; dmarc=none; 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" X-Migadu-Spam-Score: -3.70 X-Spam-Score: -3.70 X-Migadu-Queue-Id: D82E927F0 X-Migadu-Scanner: scn1.migadu.com X-TUID: ia1EZg8nvsHi Hello. The documentation (version 9.6) says: 2.2.3 Catching invisible edits ------------------------------ Sometimes you may inadvertently edit an invisible part of the buffer and be confused on what has been edited and how to undo the mistake. Setting =E2=80=98org-fold-catch-invisible-edits=E2=80=99 t= o non-=E2=80=98nil=E2=80=99 helps preventing this. I visit a new file. I type * foo then =20 then bar Then I move the cursor one line up and press So now the headline is folded and I see * foo... In my understanding, 'bar' is now in an invisible part of the buffer. But whether org-fold-catch-invisible-edits is set to 'nil, 'error', 'show', 'show-and-error' or nothing (i.e., 'smart' by default in 9.6), if then I do 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=3F Thank you. Tests performed with 'emacs -Q -l .emacs.git' with '.emacs.git' being=20= (add-to-list 'load-path "~/Org/Coch-git/org-mode/lisp") (custom-set-variables '(org-fold-catch-invisible-edits 'nil) ;; or 'error or 'show or 'show-and-error (or nothing) ) giving: Org mode version 9.6.1 (release=5F9.6.1-239-g739ccf @ /home/cochard/Org/Coch-git/org-mode/lisp/) 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. --=20 EOST (=C3=89cole et Observatoire des Sciences de la Terre)=20 ITE (Institut Terre & Environnement) | alain.cochard@unistra.fr 5 rue Ren=C3=A9 Descartes [bureau 110] | Phone: +33 (0)3 68 85 50 44= =20 F-67084 Strasbourg Cedex, France | [ slot available for rent ]