Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

org-element-cache warnings when displaying text with ANSI colours #522

Open
MasonProtter opened this issue Feb 9, 2024 · 0 comments
Open

Comments

@MasonProtter
Copy link

MasonProtter commented Feb 9, 2024

MWE on my system:

#+begin_src jupyter-julia :session foo
@info "hi"
#+end_src

#+RESULTS:
: [ Info: hi

After doing this, the *Warnings* buffer pops open and says:

⛔ Warning (org-element-cache): org-element--cache: Unregistered buffer modifications detected (20051 != 19994). Resetting.
If this warning appears regularly, please report the warning text to Org mode mailing list (M-x org-submit-bug-report).
The buffer is: myinit.org
 Current command: nil
 Backtrace:
nil

This only happens if the output has colour codes in it (so far as I can tell at least). I was able to reproduce by restarting my system with emacs -Q and just installing jupyter, not including any special hooks or whatever.

For now, I'm supressing these warnings with

(setq warning-suppress-types (append warning-suppress-types '((org-element-cache))))

This seems to be related to, but slightly(?) distinct from #522

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant