From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id wOzkGPVIo2G66gAAgWs5BA (envelope-from ) for ; Sun, 28 Nov 2021 10:16:37 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id eFCbFPVIo2FFcgAAB5/wlQ (envelope-from ) for ; Sun, 28 Nov 2021 09:16:37 +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 D3777FC24 for ; Sun, 28 Nov 2021 10:16:36 +0100 (CET) Received: from localhost ([::1]:35724 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mrGIT-0000X8-D1 for larch@yhetil.org; Sun, 28 Nov 2021 04:16:33 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54054) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mr6nC-00049h-QJ for emacs-orgmode@gnu.org; Sat, 27 Nov 2021 18:07:38 -0500 Received: from [2607:f8b0:4864:20::1034] (port=39571 helo=mail-pj1-x1034.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mr6nA-0007dd-8n for emacs-orgmode@gnu.org; Sat, 27 Nov 2021 18:07:38 -0500 Received: by mail-pj1-x1034.google.com with SMTP id y14-20020a17090a2b4e00b001a5824f4918so12333921pjc.4 for ; Sat, 27 Nov 2021 15:07:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=UknS6tQzn8dlC6Z8HZ2hk3LXc5ZMVMOm9JcjOZIy9DY=; b=fp9xrH2hahF3BCOfmxWkj7kp6LCedtaLxZ7764x8SqWWreGRtWx4eaj87PoesRD3dC Boo4DPodY2FIqU38FNp4tG0jxFgHHB5AMXc2SOL/pHx/2L1GVewxWLQ/EQQrZiW+1tkQ RU8BQ7TGVIDiL+fB4W0KYlseZruCHq5XXwtetNwdM/eSDc/RE0rfPPL9AW5Bd02cFE3A 4mXPqUMibYNVsFoJleaOHvqtszT+kMcfmpSjKpWFjuAWgEhnVoCEFInXin5c/POeE7iz CQWiL82p/xvrsEB3lKSzThaB/phKvOQmJ+OC4gVjihKB/l8+KilkQJIQH6XgXUDiD6li iu8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=UknS6tQzn8dlC6Z8HZ2hk3LXc5ZMVMOm9JcjOZIy9DY=; b=63lnXuDooV5/lNAwpR/xujcDoikRH3kfuLOMxlMfQ9BC/o3Sbv3Yo8rvB0Lr/uIWGO 3mJxxV7sWn0zM3RZvmFJicB82Co49OunTGXyllbw7g7B8nK0QnoIPHfwh0GlzMdnaYMy rMCWWG9m9GhDo3abVXm9IzSvh4kZXGl23Oe0QCCpMkAbWe7moYPR8DRPw6u7Qtj4Fsyl oI9kCbbnnQCzGm8ILPnRaqhyAtXEI288e6jd8D2Rpz806atx/FdT5MXwWm+bNC/mBs4I Ep8jad/4oX7HGTuC8JfTyNw2Tm1E4sbTRUNveE6D2c9E4wj4fIthtjEut1+i4vG+wgZV +8DA== X-Gm-Message-State: AOAM531M/9Pxg6YuBnYmivEZG8tV9V4lqZcwvspFIgDqqJQ+OjaW7sMN QtFlfvbLcciIK5NLt0zmBfN5K3UV7KDNB2k5pTKM9Y+hqNw= X-Google-Smtp-Source: ABdhPJxHN3mgtO6IZSor6fH3+O6xvuMQ1hiAKapdr9AY6lLD5TWJfadF5Xt29tnw5NGDn4jTJxjc6mlFLkeMWuszn58= X-Received: by 2002:a05:6122:1306:: with SMTP id e6mr28704118vkp.13.1638054078654; Sat, 27 Nov 2021 15:01:18 -0800 (PST) MIME-Version: 1.0 From: Peter Williams Date: Sat, 27 Nov 2021 16:00:42 -0700 Message-ID: Subject: [BUG] org-element--cache: unregistered buffer modifications warning when using org-toggle-heading and org-toggle-item on lines beginning with capital letters [9.6 (9.6-??-d4e1925 @ /home/pete/.emacs.d/.local/straight/build-27.1/org/)] To: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="0000000000007b2e5f05d1cd2f42" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::1034 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::1034; envelope-from=williamspete001@gmail.com; helo=mail-pj1-x1034.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, HTML_MESSAGE=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-Mailman-Approved-At: Sun, 28 Nov 2021 04:15:28 -0500 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1638090997; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=UknS6tQzn8dlC6Z8HZ2hk3LXc5ZMVMOm9JcjOZIy9DY=; b=C4MJ4Cr7SHDs50JhT+bKauNAZL48QaThTTwzwEYO+T4zmZPitZwQ8RRCT43QKhsg5Lfcd4 fd0yU9x51a9HXNyZ4DtRp3Hx1QsdTrmC2cswe/TmMV6SIEKhpTS7u2oQv/m3/kwzHiUF2O KQ1/UuZR8RTrbxjXY4/DGB5n9c9jlPPvM0HKMjjKUSKPwlXB/bNvaMHZrBf8AfwFo3ZbcL UcDAYYoXTxPaw/sDPOyqwOV1H9ffANEdBUwScma3PtBwEMPXAFmeWRYD4e1aP27ARzF77r F73grlN9uSfckbWFAA61vS2AhMYtY7zOM0HWA2o7Ty4Fw+CUyKRk6P31Lz2AGw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638090997; a=rsa-sha256; cv=none; b=Oi5mwrcbXHxZKQ/9V6oaEN4BDrQHn2OVvawzMJn93dcxrM2fkImLQ6Y108RrgaLm0UL4JB LAP5V8hC/oeymnt6+2xhRY2SOEsQ/7jNWa5NabVKDckYxVIJlRzZqOvnQCjl8TLW9GAA4E DaJoDulKOifyl22piojFswXxUZVRMa28FUmntvl9MCAXt35qHEop1hhB+czT9PATIpDpUZ kyNwuo+U3d/dKnEWhvGd5c8Ia40UYeg/5Wa/CcRmSw3Xjb24E2F635sjjq7xA72tzCGjvA 7iJ692B3xe9Z8P98ZE5Jad30k5gfxXLd/RLzi2tKuc+i8Awt1U6uVkTPE/ni1g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=fp9xrH2h; 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: -2.35 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=fp9xrH2h; 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: D3777FC24 X-Spam-Score: -2.35 X-Migadu-Scanner: scn1.migadu.com X-TUID: aeDhpaxwOGTz --0000000000007b2e5f05d1cd2f42 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable This is my first time sending mail to the list so let me know if I breach any convention. I seem to be one of many people who have been having issues with org-element--cache recently. I have been getting the messages quite regularly in many different cases, but I finally pinpointed one of the apparent causes: running org-toggle-heading, org-toggle-item, and probably other org functions that modify the structure of the org document on a line beginning with a capital letter from a language (not special font/mathematical characters, but not limited to the Latin alphabet). I expected to run org-toggle-heading, the line to be converted into a heading, and no error messages to be thrown. While the line was properly toggled into a heading, there was a cache warning that said the following: Warning (emacs): org-element--cache: Unregistered buffer modifications detected. Resetting. If this warning appears regularly, please report it to Org mode mailing list (M-x org-submit-bug-report). The buffer is: cachebug.org Current command: nil Backtrace: " backtrace-to-string(nil) org-element--cache-sync(#) apply(org-element--cache-sync #) timer-event-handler([t 0 0 599999 nil org-element--cache-sync (#) idle 999999]) " Here are the contents of the buffer showing the things I tested. ------------------------------------------------------------------------ # Cause the Warning S R =CE=9E A S2 X =E3=81=93 T =E6=BC=A2=E5=AD=97 =D0=94 =D4=8A =F0=90=B2=B1 =D1=B6 # No Problems (=3D R=3D is single use) =F0=9D=9E=A1 =E2=84=A4 / s S R nA =E6=BC=A2=E5=AD=97 2S _W /W s =E3=81=93 2 @ _ ------------------------------------------------------------------------ Emacs : GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, cairo version 1.16.0) of 2020-09-19 Package: Org mode version 9.6 (9.6-??-d4e1925 @ /home/pete/.emacs.d/.local/straight/build-27.1/org/) current state: I deleted all settings with no mention of 'cache' because my email client seemed to be having issues with the length of my message. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (setq org-persist-before-write-hook '(org-element--cache-persist-before-write) org-persist-before-read-hook '(org-element--cache-persist-before-read) org-persist-after-read-hook '(org-element--cache-persist-after-read) ) --0000000000007b2e5f05d1cd2f42 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
This is my first time sending mail to the list so let me k= now if I
breach any convention.

I seem to be one of many people w= ho have been having issues with
org-element--cache recently. I have been= getting the messages quite
regularly in many different cases, but I fin= ally pinpointed one of the
apparent causes: running org-toggle-head= ing, org-toggle-item, and
probably other org functions that = modify the structure of the org document
on a line beginning= with a capital letter from a language (not special
font/mathemati= cal characters, but not limited to the Latin alphabet).

I expected t= o run org-toggle-heading, the line to be converted into a
heading, and n= o error messages to be thrown.

While the line was properly toggled i= nto a heading, there was a cache
warning that said the following:
Warning (emacs): org-element--cache: Unregistered buffer modifications det= ected. Resetting.
If this warning appears regularly, please report it to= Org mode mailing list (M-x org-submit-bug-report).
The buffer is: cachebug.org
=C2=A0Current command: nil=C2=A0Backtrace:
" =C2=A0backtrace-to-string(nil)
=C2=A0 org-e= lement--cache-sync(#<buffer cachebug.org= >)
=C2=A0 apply(org-element--cache-sync #<buffer cachebug.org>)
=C2=A0 timer-event-handler([t 0= 0 599999 nil org-element--cache-sync (#<buffer cachebug.org>) idle 999999])
"
Here are the conte= nts of the buffer showing the things I tested.

---------------------= ---------------------------------------------------
# Cause the Warning<= br>S
R
=CE=9E
A
S2
X =E3=81=93
T =E6=BC=A2=E5=AD=97
= =D0=94
=D4=8A
=F0=90=B2=B1
=D1=B6
# No Problems (=3D R=3D is si= ngle use)
=F0=9D=9E=A1
=E2=84=A4
/
s S
=C2=A0R
nA
=E6= =BC=A2=E5=AD=97
2S
_W
/W
s
=E3=81=93
2
@
_

-= -----------------------------------------------------------------------
=


Emacs =C2=A0: GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK= + Version 3.24.20, cairo version 1.16.0)
=C2=A0of 2020-09-19
Package:= Org mode version 9.6 (9.6-??-d4e1925 @ /home/pete/.emacs.d/.local/straight= /build-27.1/org/)

current state:
I deleted all settings with no m= ention of 'cache' because my email client
seemed to be having is= sues with the length of my message.
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D
(setq
=C2=A0org-persist-before-write-hook '(org-element--c= ache-persist-before-write)
=C2=A0org-persist-before-read-hook '(org-= element--cache-persist-before-read)
=C2=A0org-persist-after-read-hook &#= 39;(org-element--cache-persist-after-read)
=C2=A0)
--0000000000007b2e5f05d1cd2f42--