From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id cDJhOC5lvWGiQQAAgWs5BA (envelope-from ) for ; Sat, 18 Dec 2021 05:35:58 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id +GIMNC5lvWEdIAAAbx9fmQ (envelope-from ) for ; Sat, 18 Dec 2021 04:35:58 +0000 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 7053E36779 for ; Sat, 18 Dec 2021 05:35:57 +0100 (CET) Received: from localhost ([::1]:47022 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1myRRs-0006gK-Bs for larch@yhetil.org; Fri, 17 Dec 2021 23:35:56 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34082) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myRQV-0006gC-Mx for emacs-orgmode@gnu.org; Fri, 17 Dec 2021 23:34:31 -0500 Received: from [2a00:1450:4864:20::12d] (port=34544 helo=mail-lf1-x12d.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1myRQU-0006Pz-77 for emacs-orgmode@gnu.org; Fri, 17 Dec 2021 23:34:31 -0500 Received: by mail-lf1-x12d.google.com with SMTP id br40so6302572lfb.1 for ; Fri, 17 Dec 2021 20:34:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=AIhXGk8pMULf5gFbDP51AFswMS8OheFSxCxJMTFHvc4=; b=k6dUFdrbv9HeT5lyclAsaXL6dEOFvasDpYNCtewbo6ncxI/wrDdzDGvyB+O5YJLStg KzDtIyBIPG8FQ3By4FyDjDuZo0PGpC7TxbG29syKbjDviTckmfC3qRYl8ef8jwyFEv5/ fIcRmGoB7/8NczhzvTaudQugnr3eJX8UhUEqF9GFIFUCpTbpqZrukIGLq2YxUOpZi27T G/GXqBidQxw8S+TMsclygy3eBHddvhYonvyMS836uc2+lfeqvy3H541nxLHYygyhXzQR NAkZVAd1KyP6XNM3KHJ1tXf1xxiPf91I9GvHThswXlyX+k/F2sTNyp85PCI5SOQNqoNW NNgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=AIhXGk8pMULf5gFbDP51AFswMS8OheFSxCxJMTFHvc4=; b=u1Pc/5cSnDJxPUcJLl+vkcTdT4u8gGCCD/32z7Kan7suIyEEZ3B256tv5XRZ2nspyY eHmnt0j+5oGIAbHkT+RUr9+/UU47AYanOtqRzbtITo3N0CwjMx2GU6VtSoAhbVS6SV+p slJZOTfnCz2JErleilOOH+5shAiMPNX5/YaX8WtIKmZfQDyr+xIx462+J/JWjFEBRZUX gWmwYef49FOlQv9tuPSL1h5PA1lS/jdqID3RjIS4GoUCLA+TTK65uGcN1smJklgtGQB1 LbOBqR+mabSJPic+dFIzb1bUkr7n0fE2gCrBb2B4vYQ64eK+/xgCkSwxavUh+ShCwJ8e H9uA== X-Gm-Message-State: AOAM5332JU0GthakdSgH7go/GObGynkfHj9WmFb5khMtQ5PfbV8qmCEq ea0W5th8wZ7lhETiQWraw5A= X-Google-Smtp-Source: ABdhPJyJ/i21ZSX507zMgW5SREvR3id90hNJyp34jqqaVrPlUHEz6BWUsdqrKMGvCYJ/iQ9hJMLifg== X-Received: by 2002:ac2:5dcd:: with SMTP id x13mr5614862lfq.602.1639802068210; Fri, 17 Dec 2021 20:34:28 -0800 (PST) Received: from localhost ([158.255.2.9]) by smtp.gmail.com with ESMTPSA id e10sm1598781lfr.213.2021.12.17.20.34.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Dec 2021 20:34:27 -0800 (PST) From: Ihor Radchenko To: Kaushal Modi Subject: Re: [BUG] org-element--cache gives "Unregistered buffer modifications" warning [9.5 (9.5-g859984 @ /home/john/.emacs.d/straight/build/org/)] In-Reply-To: References: <87y25ztcgr.fsf@localhost> <87bl1hdvuj.fsf@localhost> <87mtl037ez.fsf@localhost> Date: Sat, 18 Dec 2021 12:35:51 +0800 Message-ID: <878rwiil7c.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::12d (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::12d; envelope-from=yantar92@gmail.com; helo=mail-lf1-x12d.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, 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: , Cc: emacs-org list , John Mathena Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" 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=1639802157; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=AIhXGk8pMULf5gFbDP51AFswMS8OheFSxCxJMTFHvc4=; b=Bot4DjYUbSF0A9CzyR3AEytZXiXJE5QO05I0QRxkEHzR44+yA4QEA9KcUxRHeCLZSGCuzR 0zRi1o1rCXxB56zFNZapx5P3YSBnPd6rEAuX17eEOgF5FcnuBFprnOlY80KqDrae+atAnw 2M9M5W7MzMv/CWR/PQ89bzMFZy7cpbqJKCOWIcXAuKUgkuh34iE8uatHUPTMIfZaP5UxRc x3hIa0WuSSUAFSupnPbJd7jC8ft6PxlPybwhvisqjyDN/PWVPhpA+vZ9BnvNw4wgaYKzXf C2QCm9WHqej5EeQEpQvDB1+IObIMFr7DErX5d3o37Q5ZvGNh+zA2qmgYkOXDoQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1639802157; a=rsa-sha256; cv=none; b=Oe9cQPqLs2J7zM5b5vh00XBugKSxK+4kZfZuQCpLlOrhMaBKvAExe7m/s0Ju8FSth63Fay +RPPEuOyWRH9ifPYcaA4P1px7Q87UnWKnDfc6TVoxzofvlbnWcxw4GGQsaNghChX+etZb1 e8VzIoODJ7yXwu5kIpQhLKCR67wD85tR2bg8satsDubkfuO+wMykUIEY5pxBFHKcriGCY5 BgQRQRXn/KciHqeoAmJU77emzQuiasuNcA/VoerxcTZPnRa1LrVENcrNMryNIl/jP4j0al o4TdbwB7mJlltle1ZdTG7ZrpahgLNT+qy2y5ixjJQVdUtRXVTbq9DRKXjktylw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=k6dUFdrb; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: -2.20 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=k6dUFdrb; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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-Queue-Id: 7053E36779 X-Spam-Score: -2.20 X-Migadu-Scanner: scn0.migadu.com X-TUID: LGQMYMsqfXtc Kaushal Modi writes: > I actually run a wrapper script to update Org and that has all that: > ... > I verified that at least the git hash was latest as of then: > release_9.5-364-g*de022e* Odd. Though the commit number is indeed correct. > There's a setup included in there; I forgot about that. If you don't mind > trying it again, this would download everything needed: Thanks! I was able to follow your steps this time. > Sorry, but I am getting similar backtrace in another function now: Sigh... Should be fixed now. I did not expect that arguments to cache functions could ever be markers. After the fix, I was able to see the warning you were talking about in the earlier email. Your test case revealed an important omission in the cache logic when a huge number of edits are stacked together into asynchronous cache queue. Thanks you for providing the excellent reproducer! On latest main, your example file is exported without any warnings. Also, I noticed that the large number of edits makes the cache use a lot of memory adding load onto the Emacs garbage collector. May I know what exactly ox-hugo does that triggers that many edits? Exporting your example files took approximately 30sec on my system (both with and without cache). I believe that the speed can be improved if cache is used more optimally. > *Another observation: * > > I see this warning when building from the latest main: > > In org-element--cache-sync: > org-element.el:5935:19: Warning: assignment to free variable > =E2=80=98org-element--cache-change-warning=E2=80=99 Thanks! Fixed. Best, Ihor