emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Peter Williams <williamspete001@gmail.com>
To: emacs-orgmode@gnu.org
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/)]
Date: Sat, 27 Nov 2021 16:00:42 -0700	[thread overview]
Message-ID: <CAJVJZGTUvY8TUL7DNwVKjcuyXO4fDEvjqOGWHh44tvyOmafHUQ@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2342 bytes --]

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(#<buffer cachebug.org>)
  apply(org-element--cache-sync #<buffer cachebug.org>)
  timer-event-handler([t 0 0 599999 nil org-element--cache-sync (#<buffer
cachebug.org>) idle 999999])
"
Here are the contents of the buffer showing the things I tested.

------------------------------------------------------------------------
# Cause the Warning
S
R
Ξ
A
S2
X こ
T 漢字
Д
Ԋ
𐲱
Ѷ
# No Problems (= R= is single use)
𝞡
ℤ
/
s S
 R
nA
漢字
2S
_W
/W
s
こ
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.
==============
(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)
 )

[-- Attachment #2: Type: text/html, Size: 2744 bytes --]

             reply	other threads:[~2021-11-28  9:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-27 23:00 Peter Williams [this message]
2021-11-28 10:27 ` [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/)] Ihor Radchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJVJZGTUvY8TUL7DNwVKjcuyXO4fDEvjqOGWHh44tvyOmafHUQ@mail.gmail.com \
    --to=williamspete001@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).