From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 8B7zG8Zqm2NWhQAAbAwnHQ (envelope-from ) for ; Thu, 15 Dec 2022 19:43: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 mp11.migadu.com with LMTPS id cJL/G8Zqm2MWtQAA9RJhRA (envelope-from ) for ; Thu, 15 Dec 2022 19:43: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 5F3FD2D333 for ; Thu, 15 Dec 2022 19:43:17 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p5tBg-0004W5-8c; Thu, 15 Dec 2022 13:42:32 -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 1p5tBe-0004UG-HN for emacs-orgmode@gnu.org; Thu, 15 Dec 2022 13:42:30 -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 1p5tBc-0008CY-Br for emacs-orgmode@gnu.org; Thu, 15 Dec 2022 13:42:30 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id A8376240027 for ; Thu, 15 Dec 2022 19:42:25 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1671129745; bh=yemxNdZhOnb0LX5xFxCrfyEPPjI2tSncItMsZBXQEeo=; h=From:To:Cc:Subject:Date:From; b=o0sR2/u0lMQOHKezVU67+bwRGDT7WsGsm/i0uBy/WRFdlbEZ6AzV7tVEFx/G1QnuO yo0INxZs+pAlODhkrNEYhKLUUBa18esZwBL4GtS8x4SHNMvo6TcTthUk5/UYFPXD4J h05zLWAOG/yVLkAu7cuGx/p8BSueXcdTtnmw0JijuW4O1ixcSBU/3i8G93oRCmkSC6 UmqMmLQqKs+cnaKfzpoMnbrK4e5iRS6OQu4W99yb5Kbo4sUPJmshCk0XZkP384QywG 9VjsbU8FK2OynEDwVjNfkFaJ+s5QJbvZCGKS7HDsK0bh5uS1Rj3Vyh3n7kS5xCbUlo BlO4sxNZAdtpQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NY1LS70Gkz6tmK; Thu, 15 Dec 2022 19:42:24 +0100 (CET) From: Ihor Radchenko To: Stefan , Bastien Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] org-element--cache: (org-agenda) Cached element is incorrect [9.6 (release_9.6-90-gf49ee9 @ /home/stefan/.emacs.d/contrib/org-mode/lisp/)] In-Reply-To: References: <0818f914-1c9d-48d7-bb32-18909f9564a1@app.fastmail.com> <87359hw0bo.fsf@localhost> <52739b43-b836-44db-a250-7323ff8d294c@app.fastmail.com> <87len8uajb.fsf@localhost> Date: Thu, 15 Dec 2022 18:42:18 +0000 Message-ID: <87tu1wse45.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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1671129797; 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=GQ4wiwzOngK62AFRbP5OOMzaRIpC5YJUWOlVALDwd1M=; b=pMdTQI59Qe9nLkaW0+evrKeY9BdwbL23ef+hTD4wN+V2liPuNgHJnhNoxdWhECz6q/JHFd aaSF3T2nDKzbRN8WpOc07Po8JqZl8uqpPIVe4WkHRlbPXygVMnXF1kRtLpME9gyP5OB+vf Rr9tn5uozZcWH3RvJov5I494DlqPj7uiIitdORvcmih99vFQEEmARv8lawtUuwgvg4pgSV qoXHRhCshC1UK37EbvPqrmS3Tln9eCZuf43Ad3nGbU8N5I0DwG11VipS2eiZYWXMtcieGj qrH1FFTLDSZhcyU/GauDcDMvjeS/NK+oAKSf2cgpUrRkQs+eWG+JfoZOxtrXUA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="o0sR2/u0"; dmarc=pass (policy=none) header.from=posteo.net; 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=1671129797; a=rsa-sha256; cv=none; b=jqjDoFcKYmhwjAN73K4q+xEP/AE4/JjZmtYiT63/2KF6vlC+1mTRVL0vJB0NqcQHBZSCMU nljGPM9N/qoBudLBS4GNqdkW0UVQQvwxLyL1MnWUJHfJ4+3KKWlDDb6gRd78uHS453eezk RgNlBB1Rym26XiRTw/jQF+Q7NaXCxOno50PWMv3ajglXLY7YuDSKD2Ex5tBf5ez/H0NB8b p1xlXPCoanrCmiVCFDEKPW5h76YDZJTCRX4Ax5QikSL36lmxewZ47o6toQkJb3/bsWkGGQ pXAj1FEMbVtFVo58sFAg5a8Va8KsePPoGYBBctM3BJnWgPPL65kV0XY/WmMmKQ== X-Spam-Score: -4.38 X-Migadu-Queue-Id: 5F3FD2D333 X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="o0sR2/u0"; dmarc=pass (policy=none) header.from=posteo.net; 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: -4.38 X-TUID: TzJFYCI4l87Q Bastien, I need your comment on the old commit of yours. Stefan writes: >> 2. If you can, try to load Emacs with minimal Org-related settings. >> Then, try to load agenda and let me know if you see the warning. > > I did some manual bisecting of my config, and I noticed that the warnings in "Media.org" go away when I remove `(org-startup-align-all-tables t)` from my config. > > So I did some more digging, reduced > my config to just contain `org-startup-align-all-tables` set to t, > my agendas limited to Media.org, > and removed most headings from Media.org. Thanks! It looks like you found the culprit. `org-startup-align-all-tables' triggers a function that changes buffer contents (tables) during Org loading. For same reason, this function is executed with modification hooks being suppressed and cache missing the edits as a result. The problematic commit is https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=9c4d403ada376dca771d9c2dadd7e9eebf4d5f7f The commit seems to be applied around the time when we did some aggressive optimizations for agenda views. However, I do not see any email thread relevant to this particular commit. Bastien, do you remember the rationale behind the linked commit? The commit message is not particularly informative. It appears to me that removing `org-unmodified' around table alignment should be safe, but I may be missing something. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at