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 CPopM85mu2H5VgEAgWs5BA (envelope-from ) for ; Thu, 16 Dec 2021 17:18:22 +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 ODH5Ls5mu2FvTAAA1q6Kng (envelope-from ) for ; Thu, 16 Dec 2021 16:18:22 +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 37DC9BE1D for ; Thu, 16 Dec 2021 17:18:22 +0100 (CET) Received: from localhost ([::1]:35818 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mxtSX-0007qD-DC for larch@yhetil.org; Thu, 16 Dec 2021 11:18:21 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55482) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxtRV-0007ow-TN for emacs-orgmode@gnu.org; Thu, 16 Dec 2021 11:17:17 -0500 Received: from [2a00:1450:4864:20::42c] (port=42605 helo=mail-wr1-x42c.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mxtRT-0002uu-E3 for emacs-orgmode@gnu.org; Thu, 16 Dec 2021 11:17:17 -0500 Received: by mail-wr1-x42c.google.com with SMTP id c4so45121911wrd.9 for ; Thu, 16 Dec 2021 08:17:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=AVc5hENOFRTvK4cVDhRlnwzPjW2wXOwXzVs96DKjilM=; b=Br9RRPWmLq7bm/SXvThRaXWc8gzFtNwG+vrFl+cVx3bO5XP5ZEuVNFRd0n3pDqMaT8 sEK3Do5Qi6+K5dANWlY3v7n1BHhap1PppxOpS2AMZm2O84pH1fZ1vWN9SS1eN6uA+NAg Qu35wcV43ORZG8sh0DpAe13gMTNUXSAQrpJXYa7S8A8dOqlIlQrMkwgj6Krsur1+sSg0 Pb/u/SVWRQNTkC4em/Wwdw508DnGMvk9JXG+AnvVUsYVlJs4l13HFLeOdgypACyCnom7 KqSD7i+nxapiwMXiK5rbX6YrXqRLjT1XpmhD+CGqCPWx6ogFy6IK2Bhd7UmZytQKHHmc 37iA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=AVc5hENOFRTvK4cVDhRlnwzPjW2wXOwXzVs96DKjilM=; b=SZRd2SVvWJ0TgO3hZOEWYLj8kX1Ovxt6IRA0WPXSfgl2R8XnRDAGVxu/gSeBJzy2BM yrEc0B24JPRPocee0ZKYRhYKX/WHzuXRtw12fwNgKjkJbW9DzGNrESZiUB7g9H5stY5p gUqPc4ZaeGVvMZqR/RoFi/1mY8r5wZgIlOv5fzsSMk+DhFqhhqXXVgpS+gEvPoZR/YSh e9fkyDfUsV4aZoZ5vM/JMiH9mVWUQgvvBbs9nYhywibic0QV6i+Oqfmv1FqHmdO/lk/A e0EtLJmS9wcNzQMw/8n2OJL+/hWdMGAZ5Bq26DeK1lg+w801AtLSKNx451W1U2gJoaBv 1ZDQ== X-Gm-Message-State: AOAM530EAGK0mw58+yxln6g9waPkyTLRWKW/Wq3v0mNKiItKKwaLCpMq rdApVN/IPJWEVwwE+n16BAGYAT29ByK4wKKIgmM= X-Google-Smtp-Source: ABdhPJzpVYptUxeUyPzWTm1ZwaKLgCJYb1AoSTQ7HAqC/r41KtjrOOg9/f9NmEoTYsjdQKUaWqAPcHtL06bWgY+MyLc= X-Received: by 2002:a5d:4b0a:: with SMTP id v10mr1923718wrq.294.1639671432647; Thu, 16 Dec 2021 08:17:12 -0800 (PST) MIME-Version: 1.0 References: <87y25ztcgr.fsf@localhost> <87bl1hdvuj.fsf@localhost> <87mtl037ez.fsf@localhost> In-Reply-To: <87mtl037ez.fsf@localhost> From: Kaushal Modi Date: Thu, 16 Dec 2021 11:16:36 -0500 Message-ID: Subject: Re: [BUG] org-element--cache gives "Unregistered buffer modifications" warning [9.5 (9.5-g859984 @ /home/john/.emacs.d/straight/build/org/)] To: Ihor Radchenko Content-Type: multipart/alternative; boundary="0000000000004a9a1b05d345c1e7" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::42c (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=kaushal.modi@gmail.com; helo=mail-wr1-x42c.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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_FROM=0.001, HTML_MESSAGE=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=1639671502; 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=AVc5hENOFRTvK4cVDhRlnwzPjW2wXOwXzVs96DKjilM=; b=cOtzFVrv39IBOWhAIg1bUDfzXbCteVc2Gir1yAU8ZC8rET/qHeAmPT1zElH4VsiAB1Zo2C hi8I7n49vP/xtYO0AZrYep35VFY2WIyPk1o+rjHfrjar6ir/kZNd8pde4FDSbTbyNvUD1B n6gH9ZikMp5AXvb2lYtEM6/SKj5adyMoI4g4XdphAjbV97HVxdy0S1vhfCZUAQJbV1GHx6 m7MZzbeyfK7HpG3gCNGlf6OUxtuNzKBjQ5BV3gUUeB1YvMNUGcerwYZVBk5mJZu6rdj2MA /EIUKJLzCcWFeFvYT/x8cNbARq/R7wQwb/ZkOd2ID7kdc23v4y1xlWEN5gQUbA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1639671502; a=rsa-sha256; cv=none; b=p4i0svj7dWnmYCBC4K8NvAi7Ap4b7M1hQJul68zT3nv+TgoLexDapc6wpS3rVcLSykTEdC pCDkePr94qD+fheVbGHMeOXK0WJNCTolvAJmnRqoQ2eJuEn9zXevZAZUtu0/VSLmAsy/tA LnTQtAniFCnDVG8PmhnRwE+8+BZQBR+mOOfcCsgToAJOM4l1zm42HDn9teQ3J+scBdn3Xb W6z5OGYKh0buVuXcQTWLigKZ5HVVlzMSvHvE5GsOtHJOaCE58J/QQZFHFeTiPc7MtaFDni sb7C8iMHlwlp6L0/NdKVBOVgEWz8DjaDM+pEZfVNiuLsQksJU8MIlN1PiJ5Rew== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=Br9RRPWm; 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.49 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=Br9RRPWm; 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: 37DC9BE1D X-Spam-Score: -2.49 X-Migadu-Scanner: scn0.migadu.com X-TUID: 0MQ8GYFZvv7k --0000000000004a9a1b05d345c1e7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Dec 16, 2021 at 10:16 AM Ihor Radchenko wrote: > > FYI, it is suspicious. You should be at 9.5.1. Maybe you forgot to make > clean; make autoloads. > I actually run a wrapper script to update Org and that has all that: =3D=3D=3D=3D=3D # cmds to update to latest commit on git main branch # Ensure that the prefix path is correct in local.mk for # emacs/home/$1 version. sed -i 's|^prefix.*=3D.*|prefix =3D /home/kmodi/usr_local/apps/7/emacs/'"$1"'/share|' local.mk # Update the infodir if needed. sed -i 's|^infodir.*=3D.*|infodir =3D $(prefix)/org/info|' local.mk echo -e "\\nBuilding for emacs version: $(emacs --version | grep -E 'Emacs [0-9]+\.[0-9]+')\\n" make cleanall make autoloads make compile make doc make install =3D=3D=3D=3D=3D I verified that at least the git hash was latest as of then: release_9.5-364-g*de022e* > > Steps to reproduce this issue (after setting those variables as suggest= ed > > above): > > > > 1. Install ox-hugo from MELPA and require it > > 2. Download the ox-hugo-manual.org[1] > > 3. Take point to anywhere inside a subtree with :EXPROT_FILE_NAME: > property > > (e.g. under the * Org Special Blocks subtree around line 3038) > > 4. C-c C-e H A (this will export all the valid subtrees in that file > using > > ox-hugo) > > I tried on my side and I am getting "Undefined Org macro: issue; > aborting" Does not look like Org's fault unless I miss something. > There's a setup included in there; I forgot about that. If you don't mind trying it again, this would download everything needed: =3D=3D=3D=3D=3D git clone https://github.com/kaushalmodi/ox-hugo cd ox-hugo/doc/ # open ox-hugo-manual.org from this dir =3D=3D=3D=3D=3D and then: =3D=3D=3D=3D=3D 1. Eval /ox-hugo/ox-hugo.el 2. Take point to anywhere inside a subtree with :EXPROT_FILE_NAME: property (e.g. under the * Org Special Blocks subtree around line 3038) 3. C-c C-e H A (this will export all the valid subtrees in that file using ox-hugo) =3D=3D=3D=3D=3D I am unable to reproduce but I know why it happened (and it is indeed > different from previous one). I just pushed a fix upstream. > Thanks. I see this version after the update: Org mode version 9.5 (release_9.5-366-g092e92 @ /home/kmodi/usr_local/apps/7/emacs/emacs-28/share/emacs/site-lisp/org/) The git hash is correct ( https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=3D092e92142= 3f02d48778a0c5d298a211388af8090). So not sure, why it's still saying version 9.5. Sorry, but I am getting similar backtrace in another function now: =3D=3D=3D=3D=3D Debugger entered--Lisp error: (error "Format specifier doesn=E2=80=99t matc= h argument type") format("org-element-cache diagnostics( *temp*-378635): Int..." 28172 #) org-element--cache-process-request([28170 28171 22333 1 (headline (:raw-value "Usage" :begin 17933 :end 22334 :pre-blank 0 :contents-begin 17942 :contents-end 22334 :robust-begin 17978 :robust-end 22332 :level 2 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 17933 :CUSTOM_ID "usage" :title "Usage" :mode nil :granularity element :cached t :parent (headline (:raw-value "Reused Sections" :begin 17054 :end 28172 :pre-blank 0 :contents-begin 17072 :contents-end 28172 :robust-begin 17074 :robust-end 28170 :level 1 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0 :footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 17054 :title "Reused Sections" :mode nil :granularity element :cached t :parent (org-data (:begin 1 :contents-begin 1 :contents-end 145098 :end 145098 :robust-begin 3 :robust-end 145096 :post-blank 0 :post-affiliated 1 :path nil :mode org-data :CATEGORY nil :cached t)) :org-element--cache-sync-key (69 . 17054))) :org-element--cache-sync-key (67 . 17933))) 1] 145000 # nil nil) org-element--cache-sync(# #) org-element-at-point(#) org-element-cache-map(#f(compiled-function (el) #) :next-re "^\\*+ " :fail-re "^\\*+ " :narrow t) org-scan-tags(#f(compiled-function () #) t nil nil) org-map-entries(#f(compiled-function () #)) =3D=3D=3D=3D=3D *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 --0000000000004a9a1b05d345c1e7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

On Thu, Dec 16, 2021 at 10:16 AM Ihor Rad= chenko <yantar92= @gmail.com> wrote:

FYI, it is suspicious. You should be at 9.5.1. Maybe you forgot to make
clean; make autoloads.

I actually run a= wrapper script to update Org and that has all that:

=3D=3D=3D=3D=3D
=C2=A0=C2=A0=C2=A0 # cmds to update to latest = commit on git main branch
=C2=A0 =C2=A0 # Ensure that the pre= fix path is correct in local.= mk for
=C2=A0 =C2=A0 # emacs/home/$1 version.
=C2=A0 =C2=A0 sed -= i 's|^prefix.*=3D.*|prefix =3D /home/kmodi/usr_local/apps/7/emacs/'= "$1"'/share|' local.mk
=C2=A0 =C2=A0 # Update the infodir if needed.
=C2=A0 = =C2=A0 sed -i 's|^infodir.*=3D.*|infodir =3D $(prefix)/org/info|' <= a href=3D"http://local.mk" target=3D"_blank">local.mk
=C2=A0 =C2=A0 = echo -e "\\nBuilding for emacs version: $(emacs --version | grep -E &#= 39;Emacs [0-9]+\.[0-9]+')\\n"
=C2=A0 =C2=A0 make cleanall
= =C2=A0 =C2=A0 make autoloads
=C2=A0 =C2=A0 make compile
=C2=A0 =C2=A0= make doc
=C2=A0 =C2=A0 make install
=3D=3D=3D=3D=3D

I verified that at least the git hash was latest as of then= :=20 release_9.5-364-gde022e

=C2=A0
> Steps to reproduce this issue (after setting those variables as sugges= ted
> above):
>
> 1. Install ox-hugo from MELPA and require it
> 2. Download the ox-hugo-manual.org[1]
> 3. Take point to anywhere inside a subtree with :EXPROT_FILE_NAME: pro= perty
> (e.g. under the * Org Special Blocks subtree around line 3038)
> 4. C-c C-e H A (this will export all the valid subtrees in that file u= sing
> ox-hugo)

I tried on my side and I am getting "Undefined Org macro: issue;
aborting" Does not look like Org's fault unless I miss something.<= br>

There's a setup included in there; = I forgot about that. If you don't mind trying it again, this would down= load everything needed:

=3D=3D=3D=3D=3D
cd ox-hugo/doc/
# open ox-h= ugo-manual.org from this dir
=3D=3D=3D=3D=3D

and then:

=3D=3D=3D=3D=3D
1. Eval <git root>/ox-hugo/ox-hugo.el
2. Take poin= t to anywhere inside a subtree with :EXPROT_FILE_NAME:=20 property (e.g. under the * Org Special Blocks subtree around line 3038)
3. C-c C-e H A (this will export all the valid subtrees in that file= using ox-hugo)
=3D=3D=3D=3D=3D

I am unable to reproduce but I know why it happened (and it is indeed
different from previous one). I just pushed a fix upstream.

Thanks. I see this version after the update:

Org mode version 9.5 (release_9.5-366-g092e92 @ /home/kmodi= /usr_local/apps/7/emacs/emacs-28/share/emacs/site-lisp/org/)
=
The git hash is correct (https://git.savannah.gnu.org/cgit/emacs/org-mode.git= /commit/?id=3D092e921423f02d48778a0c5d298a211388af8090). So not sure, w= hy it's still saying version 9.5.

Sorry, but I= am getting similar backtrace in another function now:

=
=3D=3D=3D=3D=3D
Debugger entered--Lisp error: (error &qu= ot;Format specifier doesn=E2=80=99t match argument type")
=C2=A0 fo= rmat("org-element-cache diagnostics( *temp*-378635): Int..." 2817= 2 #<marker at 22334 in =C2=A0*temp*-378635>)
=C2=A0 org-element--c= ache-process-request([28170 28171 22333 1 (headline (:raw-value "Usage= " :begin 17933 :end 22334 :pre-blank 0 :contents-begin 17942 :contents= -end 22334 :robust-begin 17978 :robust-end 22332 :level 2 :priority nil :ta= gs nil :todo-keyword nil :todo-type nil :post-blank 0 :footnote-section-p n= il :archivedp nil :commentedp nil :post-affiliated 17933 :CUSTOM_ID "u= sage" :title "Usage" :mode nil :granularity element :cached = t :parent (headline (:raw-value "Reused Sections" :begin 17054 :e= nd 28172 :pre-blank 0 :contents-begin 17072 :contents-end 28172 :robust-beg= in 17074 :robust-end 28170 :level 1 :priority nil :tags nil :todo-keyword n= il :todo-type nil :post-blank 0 :footnote-section-p nil :archivedp nil :com= mentedp nil :post-affiliated 17054 :title "Reused Sections" :mode= nil :granularity element :cached t :parent (org-data (:begin 1 :contents-b= egin 1 :contents-end 145098 :end 145098 :robust-begin 3 :robust-end 145096 = :post-blank 0 :post-affiliated 1 :path nil :mode org-data :CATEGORY nil :ca= ched t)) :org-element--cache-sync-key (69 . 17054))) :org-element--cache-sy= nc-key (67 . 17933))) 1] 145000 #<marker at 22334 in =C2=A0*temp*-378635= > nil nil)
=C2=A0 org-element--cache-sync(#<buffer =C2=A0*temp*-37= 8635> #<marker at 22334 in =C2=A0*temp*-378635>)
=C2=A0 org-ele= ment-at-point(#<marker at 22334 in =C2=A0*temp*-378635>)
=C2=A0 or= g-element-cache-map(#f(compiled-function (el) #<bytecode -0x1e6a8e662d16= 360>) :next-re "^\\*+ " :fail-re "^\\*+ " :narrow t)=
=C2=A0 org-scan-tags(#f(compiled-function () #<bytecode -0x16fb58560= 0906914>) t nil nil)
=C2=A0 org-map-entries(#f(compiled-function () #= <bytecode -0x16fb585600906914>))
=3D=3D=3D=3D=3D
<= div>
Another observation:

I see this warning when building from the latest main:

In org-element--cache-sync:
org-element.el:5935:19: Warning: assi= gnment to free variable
=C2=A0 =C2=A0 =E2=80=98org-element--cache-change= -warning=E2=80=99


--0000000000004a9a1b05d345c1e7--