From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id gCm+FWm6D2fZEQAAqHPOHw:P1 (envelope-from ) for ; Wed, 16 Oct 2024 13:06:49 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id gCm+FWm6D2fZEQAAqHPOHw (envelope-from ) for ; Wed, 16 Oct 2024 15:06:49 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=smtpservice.net header.s=a1-4 header.b=mPmLkQqv; dkim=pass header.d=khan.ovh header.s=s844466 header.b="Chz6y/HN"; dmarc=permerror reason="p tag has invalid value: non" header.from=khan.ovh (policy=permerror); 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-Seal: i=1; s=key1; d=yhetil.org; t=1729084009; a=rsa-sha256; cv=none; b=TTGHGur279Hu5HEwksEEbbC/x8cZEiVrLn5OExzNFbIZjK53HZtjAS/NSuG9tarungPlJl dZC9P/kWDys7Oo/PHNXZ6VYCWEnl6X1iqUP5XX0Vl4kahhk2olLAJxnabeICb9DAWAdRnq ROA4ls/PwHOalANTgHaBEFB2bXWzEuTpjSQAZT2TtxgW38ZzkG9jqr/YupoQcQrCQ6ilX5 5z2pSVyHwuY9d+8oSOmL+AIpk5pb/xPNwclAPDtk2TTxZw8DjbhFeG/55kNXUjzU7O12uj FUhsiODsU8BLDt2Ol7dj7TUk1s/PHwT4mTTlfzPsAM4zNHpW4CQTUBJb/rHhTg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=smtpservice.net header.s=a1-4 header.b=mPmLkQqv; dkim=pass header.d=khan.ovh header.s=s844466 header.b="Chz6y/HN"; dmarc=permerror reason="p tag has invalid value: non" header.from=khan.ovh (policy=permerror); 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=1729084009; 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=W6e6NU6HMyDI6yKenMoSjBY6WIgv4GxGKaieXxCBmgY=; b=bVeP+5Uzb9gIQZvC3pMmlDpLNNdIh5ivfNLqgqF+77Npx9i8g9AmKJNYyBk0pYYnyafGe6 n1IQf8IcehhYXhR0orTIDZTQTQYNVhjFxZIrp2GBRF3j/85I9sZk18bGGpHnwKalod9p/P 9XKECBXt6bcosSvdV22lAKRYgfhX6BpQQbylJXWTEHZSr/Gt+fNtSQDmSAmGBtGno5niBT AfV3ixwzrrbpng2VyQK2Hk3sSaOWsL1kVsZfstlLpPDGnbuPstQKuOTCGfcv+ALxoaz+w2 VyblD3BjuUe33s0IUecI6hZVy57gYmQhBiVWQ97DOHthOxYUfiWBTfFIhxaI8A== 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 BFE61769D5 for ; Wed, 16 Oct 2024 15:06:47 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t13j2-0005C0-PG; Wed, 16 Oct 2024 09:06:04 -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 1t13j0-00054L-2y for emacs-orgmode@gnu.org; Wed, 16 Oct 2024 09:06:02 -0400 Received: from a1i517.smtp2go.com ([43.228.186.5]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t13iy-0000Sw-2z for emacs-orgmode@gnu.org; Wed, 16 Oct 2024 09:06:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=smtpservice.net; s=a1-4; h=X-Smtpcorp-Track:Feedback-ID:Date:Subject:To: From:Message-ID:Reply-To:Sender:List-Unsubscribe:List-Unsubscribe-Post; bh=W6e6NU6HMyDI6yKenMoSjBY6WIgv4GxGKaieXxCBmgY=; b=mPmLkQqvclBKdc7rJOslIs91ZY 38cRX4utXuejU8S6CnjVynHfXcuj1WaRcB4q0CIalxVL2H/KByagmq4xOTak1a2Y2Vr2UyjwR6c6e HlGwYKGapqbKcydtY6jItvGodHmKWnhIVITlCjg9OcWqGw6swGlZAV5bWQ0tuVRSVP/fJpEih3cgn h/6TjWX/25qdpfpWNXhVtvJhUdFr8K+lrJM5E+S02SKPHA7L8oeRapfvc301woUKhFT19+Y8t9M6f g3mj4rnbCSOsVRmPBqmPXGPljSFbD6nzdhLsPGFU8X3lZltR+4FXNxy/A6nT3Bsp1+QBWCjeNEkUZ gWzJEspw==; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=khan.ovh; i=@khan.ovh; q=dns/txt; s=s844466; t=1729083956; h=from : subject : to : message-id : date; bh=W6e6NU6HMyDI6yKenMoSjBY6WIgv4GxGKaieXxCBmgY=; b=Chz6y/HN/W2DjIQdyGdPshdtFRO0SMt5ogxaeShfqEsaGTiFg2vx9y0XUwDwpExNdQe4e jyTWKtZH8cWzpr7AfRHVRTUJbgltzbMvb/VK2MnEGXpFXS4sYNWtDOk82N1WtOtVlZrXuJ2 Yaf05JX9yJ/35e5urto6DKvEIf7pWfYHqKGvW8BTL65lG8W7TfYGh/PmmAO4I4ruD/ppOym 6chSXzQB5kIgyoqEeiJewYJ1Yn/JbqB16ZXOLDux2XCc1uXs0sY6ppb8HS5yIoozSXXo55y ++XudQvgskw8b2dIXHVU9Nta8bLXWfIQdtEMhRb/06OOnuZN9H9DKuJLy3iA== Received: from [10.45.33.53] (helo=SmtpCorp) by smtpcorp.com with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94.2-S2G) (envelope-from ) id 1t13ii-SH4g7X-MM; Wed, 16 Oct 2024 13:05:44 +0000 Received: from [10.57.244.36] (helo=localhost) by smtpcorp.com with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97.1-S2G) (envelope-from ) id 1t13ih-4o5NDgrrcNy-e4Hl; Wed, 16 Oct 2024 13:05:44 +0000 Message-ID: From: Imran Khan To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] Writing table to a folded drawer unfolds it. [9.7.12 (release_9.7.12 @ /home/natrys/.emacs.d/elpa/org-mode/lisp/)] In-Reply-To: <8734kxfdap.fsf@localhost> References: <285d8923e769bbaadb990286c5b966f5@khan.ovh> <8734kxfdap.fsf@localhost> Date: Wed, 16 Oct 2024 19:05:39 +0600 MIME-Version: 1.0 Content-Type: text/plain X-Smtpcorp-Track: UnrLpC7uuot5.bX4Okv7IF0yB.OiA78A3sRgL Feedback-ID: 844466m:844466a-vIpdb:844466sLAeeRdFQ3 X-Report-Abuse: Please forward a copy of this message, including all headers, to X-Smtpcorp-Track: UnrLpC7uuot5.bX4Okv7IF0yB.OiA78A3sRgL Received-SPF: pass client-ip=43.228.186.5; envelope-from=bT.h3a9boscdgshff4=q7kyn28gz8sg=ybxht50s69v2e7@em844466.khan.ovh; helo=a1i517.smtp2go.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-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 X-Migadu-Spam-Score: -3.80 X-Spam-Score: -3.80 X-Migadu-Queue-Id: BFE61769D5 X-Migadu-Scanner: mx10.migadu.com X-TUID: ABMaaB3W6tPq Ihor Radchenko writes: > Imran Khan writes: > >> ... Writing table to a folded drawer unfolds it >> ... >> (insert "| " (format "%f" (time-to-seconds)) " |\n") > > This is expected. > In the middle of the editing, you are breaking the drawer structure, > transiently having something like > > :DRAWER: > ... > | :END: > > So, Org mode unfolds the drawer to avoid having a fold that cannot be > unfolded by normal means. Oh, not only does it make complete sense, but turns out that I had been operating under the misassumption all this while that one `insert' call amounts to one atomic change to the buffer (after concatenation of arguments). I had to do a double take now when I tested that `(insert a b)' is in fact two changes, oof. Shows the danger of such implicit assumptions. I can now also construct the table in a way that doesn't leave the drawer structure broken at any point. Regardless, thanks for also telling me about `org-fold-core-ignore-fragility-checks'.