From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id GS1GOPK9iGFJawEAgWs5BA (envelope-from ) for ; Mon, 08 Nov 2021 07:04:34 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id kP1/M/K9iGEzWAAA1q6Kng (envelope-from ) for ; Mon, 08 Nov 2021 06:04:34 +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 C697FE0B9 for ; Mon, 8 Nov 2021 07:04:33 +0100 (CET) Received: from localhost ([::1]:50528 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mjxlg-0007lS-3U for larch@yhetil.org; Mon, 08 Nov 2021 01:04:32 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41288) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mjxkD-0007lB-EI for emacs-orgmode@gnu.org; Mon, 08 Nov 2021 01:03:01 -0500 Received: from [2a00:1450:4864:20::52d] (port=43662 helo=mail-ed1-x52d.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mjxkB-0004ie-RU for emacs-orgmode@gnu.org; Mon, 08 Nov 2021 01:03:01 -0500 Received: by mail-ed1-x52d.google.com with SMTP id w1so58219447edd.10 for ; Sun, 07 Nov 2021 22:02:58 -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; bh=QcIdIFUnJxRDXIU0Vi2UejWgI5mQbKVzhqupkuP29CI=; b=FWOIbtoRsa+G34hMl4/ngHpB0yop6b/RDZu8r/r60dzv1iYfVO9N86HejuJhBbAO8o 2e67g+xB+SEyDVrjijN8CLBhBnz+bvx4+rNTBYtur8exhsLccBS/ypLru/KOvlKYFnVn Qya8jcOuxPsj10+2GtngKJ12J3sa99iUbXrEYew75ZieK5kQXXzr3bGwcZtHyTtIz508 V2rKX9pQ5CsXGZ7j2oTxODjmwKaq5PL7rmBJjoFvD7d32NV0bN5nvOCHD6wiiXd3cali 4WcgqOiz/v87MwO/3XqfYCuxApvPF7UIU93+DvGLecQcCrJKufkWe5y/GjbGDrqVcFya aqFQ== 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; bh=QcIdIFUnJxRDXIU0Vi2UejWgI5mQbKVzhqupkuP29CI=; b=35zF4B765iZx7PmR36xhHxxpwr/UX8bhsmVH6Fw+Q2iHmbGtSwYgOAk9YIsIfRPUKD DMd8f2hl1ZbvAI7ISqx6w4MTk96p0Y6kZw8AXesp3t/IW6QY0hc/1HCjm9Ek037P6o4p KpcOjQMZ+98PPUWeNyfbYvDNn3JaLpA2Qlj1VV6z6T3PdYYkizxmlYGRGfWoBQdBnfhI zRGzudDhXzFyIH1NQBBwa3SM5p8lIVaItoqkiPKmi+90Xht3InKVoV15TJM9Ceyw/hmT Pn+GxMIElTlnOJVpcTnjRUKfWHeqhtqCSz5+ubDz+caAkvAUnXw6wx5pkNCBBsgZT3l4 C8ow== X-Gm-Message-State: AOAM530+bDqShvJcgqdrvS1a3cu46U5nemBbqWA/LCASn9PBuaWd6caF J19O/SJjZ8MKDMfiZ8IBAiH0lW+onHS4q45J X-Google-Smtp-Source: ABdhPJylLuTIgn6IBHV516DIvV5aSdQ1hjl/6L4DoXkEpVgD7Gji77PDxFCP+Fj/d0wptFzFpmSvlw== X-Received: by 2002:a19:670c:: with SMTP id b12mr61043887lfc.652.1636351054687; Sun, 07 Nov 2021 21:57:34 -0800 (PST) Received: from localhost ([91.210.107.150]) by smtp.gmail.com with ESMTPSA id i9sm1699117lfr.146.2021.11.07.21.57.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Nov 2021 21:57:34 -0800 (PST) From: Ihor Radchenko To: John Mathena 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: Date: Mon, 08 Nov 2021 13:59:00 +0800 Message-ID: <87y25ztcgr.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::52d (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::52d; envelope-from=yantar92@gmail.com; helo=mail-ed1-x52d.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, PDS_HP_HELO_NORDNS=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-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1636351474; 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=QcIdIFUnJxRDXIU0Vi2UejWgI5mQbKVzhqupkuP29CI=; b=W9KWKUiC2X28I1ZFxgCIq31ld/DI9ryj4NefHzg14zEUTYmeWQnMCx76BypJqSNZdow0Je r97QkEQMqWonaLqq0kbNFP0XCIDFhg20Duuvj2zrkqPulfHoUwDAuZ7maHHvBYUQN3l2al x2m4+PTXP042+KAwPxGWT3Atxs/DHMr+t6bI+ct/5F975wwkNl4MFzPC9mAk4438H+ikV+ sLtZV603A7GTSa+vUE4NujIGryENudDp90YzoYlKMOCdUcV98cafYhPDx95mHkhZ78J/Z9 jjGkKoZdQR6w4nIsZse3nW51rHNMGPbSSn9d0G9vqYdoXvp0Jnfab6ljlvtX9A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1636351474; a=rsa-sha256; cv=none; b=qBPjZNxpAaMJodrV1E1ee13rm4j7hjVIK6yLkOIBbbcQZdIdN20q1FZ/k8qdyxdecu4o5C XL2heSNRvwIrhKC+EFtc63tc2K4j7dyda2xCi11OSKOnO04N+j/q1e7eJcoNbFFABEBC1J 7gxXUrWbR3NitBovIwuy2P3OhTLf8LEBYM519L2Qs8d5y+KY8byO76aUCbv3z5dTgpZcL4 K1veOsZUk+YQOCVJxO1687RETw6LUFdpwuNuumzXQd225rYHlc0YblCzINK+DH3oRiw+gy 8bAVPnHciBryt9gWJLq84DAQDkuS4b9xc4MuSHcJk699RMHcNN0djJbo/ojyPg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=FWOIbtoR; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -1.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=FWOIbtoR; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: C697FE0B9 X-Spam-Score: -1.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: bVilQcXANhLW John Mathena writes: > First time sending mail to the list; please let me know if I commit any > breaches of etiquette or convention (e.g. on attaching backtraces as a file > vs sending in message body). Your email is perfectly fine. Thanks for reporting and welcome to the Org mailing list! > I'll add a data point to the people that have been having trouble with > org-element--cache recently; I get the warning shown below semi-frequently > while I'm editing org files, seemingly at random, although I'll continue > looking into what circumstances provoke it. At present, I can reproduce the > error consistently using ox-hugo. I do: > > $ emacs -Q -l ~/.emacs.d/straight/repos/straight.el/bootstrap.el > > Then `M-x eval buffer` on the following buffer: > > (straight-use-package 'org) > (straight-use-package 'ox-hugo) > (with-eval-after-load 'ox > (require 'backtrace) ;;org-hugo-export-wim-to-md calls > org-element--cache-sync, which uses backtrace-get-frames, which isn't > autoloaded > (require 'ox-hugo)) > > I then navigate to the following org-mode buffer, do `C-u M-x org-reload`, > and do `C-c C-e H A` to try and export it using ox-hugo. I was able to reproduce the issue. This is a bug on ox-hugo side. `org-hugo--get-pre-processed-buffer' inserts text with inhibit-modification-hooks bound to non-nil, which breaks org-element-cache. The cache is enabled by default in latest Org, which is why the issue revealed itself. The fix on ox-hugo side can be made similarly to the new implementation of `org-export--generate-copy-script' - ox-hugo needs to manually reset the cache after silent changes in temporary Org buffer. Could you kindly forward this message to ox-hugo devs? If you are seeing some other packages (not ox-hugo) in the warning backtraces, feel free to report them as well. Best, Ihor