From: mousebot <mousebot@riseup.net>
To: Ihor Radchenko <yantar92@posteo.net>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-element--cache: Added org-data parent to non-headline element
Date: Wed, 17 Jul 2024 18:36:20 +0200 [thread overview]
Message-ID: <784368c8-379a-445b-af15-8cb28bfd89a8@riseup.net> (raw)
In-Reply-To: <87wmlk57s3.fsf@localhost>
On 7/17/24 17:59, Ihor Radchenko wrote:
> martyhiatt@riseup.net writes:
>
>>> (setq org-element--cache-self-verify 'backtrace)
>>>
>>
>> i have a backtrace from my file, but it contains information i don't
>> want to post to a public mailing list (my essay/notes). i tried again
>> in a partly lorem ipsum-ified file and received the backtrace below
>> when moving todo items around.
>>
>> is that of any help?
>
> It does not look like a complete backtrace. Was there anything else in
> the warning buffer?
i copied the whole warning buffer after an error was triggered.
>
>> when playing around i noticed that the error only occurs when
>> narrowing is in effect: i narrow in the main window then can cause the
>> error in the secondary/cloned one.
>
> This is useful information.
>
> Also, since you are able to reproduce quickly with a constructed file,
> any chance that you can also create a reproducer starting from clean
> Emacs config?
>
i had another go:
- i made a purely lorem ipsum org file (can share if needed)
- loaded a minimal emacs config (the one i use for testing/debugging mastodon.el, can share)
- loaded a really minimal org config (can share if needed)
- loaded the org file
- repeated the already mentioned steps, triggering the error.
with this test file, when the error is triggered, the way the file breaks is that a second-level TODO heading is split after the first star, becoming a top-level heading with a single star on a previous line (often, not sure if always, i think other breakages happen also, with my original file other breakages happened).
a backtrace is below.
sometimes the warnings buffer gets subsequent information added to it, but i gather that's because we continue operating with a borked file. the backtrace below is a copy of the whole warnings buffer after only one error was triggered.
marty
⛔ Warning (org-element): org-element--cache: (org-metadown) Cached element is incorrect in org-bug-no-footnotes.org<2>. (Cache tic up to date: "no") Resetting.
If this warning appears regularly, please report the warning text to Org mode mailing list (M-x org-submit-bug-report).
The element is: "(headline (:standard-properties [342 342 nil nil 449 0 (:title) nil element t nil nil nil 2 #<buffer org-bug-no-footnotes.org> [org-element-deferred org-element--headline-deferred nil t] nil (headline (:standard-properties [3 3 20 2159 2159 0 ... first-section element t nil 22 2159 1 #<buffer org-bug-no-footnotes.org> [org-element-deferred org-element--headline-deferred nil t] nil ...] :pre-blank 1 :raw-value [org-element-deferred org-element--headline-raw-value ... t] :title [org-element-deferred org-element-property-2 ... nil] :level 1 :priority nil :tags nil :todo-keyword nil :todo-type nil :footnote-section-p [org-element-deferred org-element--headline-footnote-section-p nil nil] :archivedp [org-element-deferred org-element--headline-archivedp nil nil] :commentedp nil :fragile-cache nil))] :pre-blank 0 :raw-value [org-element-deferred org-element--headline-parse-title (t) t] :title [org-element-deferred org-element--headline-parse-title (t) t] :level [org-element-deferred org-element--headline-parse-title (t) t] :priority [org-element-deferred org-element--headline-parse-title (t) t] :tags [org-element-deferred org-element--headline-parse-title (t) t] :todo-keyword [org-element-deferred org-element--headline-parse-title (t) t] :todo-type [org-element-deferred org-element--headline-parse-title (t) t] :footnote-section-p [org-element-deferred org-element--headline-parse-title (t) t] :archivedp [org-element-deferred org-element--headline-parse-title (t) t] :commentedp [org-element-deferred org-element--headline-parse-title (t) t]))"
The real element is: "(headline (:standard-properties [339 339 nil nil 343 0 (:title) nil nil nil nil nil nil 2 #<buffer org-bug-no-footnotes.org> [org-element-deferred org-element--headline-deferred nil t] nil [org-element-deferred org-element--headline-parent-deferred nil t]] :pre-blank 0 :raw-value [org-element-deferred org-element--headline-parse-title (t) t] :title [org-element-deferred org-element--headline-parse-title (t) t] :level [org-element-deferred org-element--headline-parse-title (t) t] :priority [org-element-deferred org-element--headline-parse-title (t) t] :tags [org-element-deferred org-element--headline-parse-title (t) t] :todo-keyword [org-element-deferred org-element--headline-parse-title (t) t] :todo-type [org-element-deferred org-element--headline-parse-title (t) t] :footnote-section-p [org-element-deferred org-element--headline-parse-title (t) t] :archivedp [org-element-deferred org-element--headline-parse-title (t) t] :commentedp [org-element-deferred org-element--headline-parse-title (t) t]))"
Cache around :begin:
"(headline (:standard-properties [235 235 nil nil 342 0 (:title) nil element t nil nil nil 2 #<buffer org-bug-no-footnotes.org> [org-element-deferred org-element--headline-deferred nil t] nil (headline (:standard-properties [3 3 20 2159 2159 0 ... first-section element t nil 22 2159 1 #<buffer org-bug-no-footnotes.org> [org-element-deferred org-element--headline-deferred nil t] nil ...] :pre-blank 1 :raw-value [org-element-deferred org-element--headline-raw-value ... t] :title [org-element-deferred org-element-property-2 ... nil] :level 1 :priority nil :tags nil :todo-keyword nil :todo-type nil :footnote-section-p [org-element-deferred org-element--headline-footnote-section-p nil nil] :archivedp [org-element-deferred org-element--headline-archivedp nil nil] :commentedp nil :fragile-cache nil))] :pre-blank 0 :raw-value [org-element-deferred org-element--headline-parse-title (t) t] :title [org-element-deferred org-element--headline-parse-title (t) t] :level [org-element-deferred org-element--headline-parse-title (t) t] :priority [org-element-deferred org-element--headline-parse-title (t) t] :tags [org-element-deferred org-element--headline-parse-title (t) t] :todo-keyword [org-element-deferred org-element--headline-parse-title (t) t] :todo-type [org-element-deferred org-element--headline-parse-title (t) t] :footnote-section-p [org-element-deferred org-element--headline-parse-title (t) t] :archivedp [org-element-deferred org-element--headline-parse-title (t) t] :commentedp [org-element-deferred org-element--headline-parse-title (t) t]))"
"(headline (:standard-properties [235 235 nil nil 342 0 (:title) nil element t nil nil nil 2 #<buffer org-bug-no-footnotes.org> [org-element-deferred org-element--headline-deferred nil t] nil (headline (:standard-properties [3 3 20 2159 2159 0 ... first-section element t nil 22 2159 1 #<buffer org-bug-no-footnotes.org> [org-element-deferred org-element--headline-deferred nil t] nil ...] :pre-blank 1 :raw-value [org-element-deferred org-element--headline-raw-value ... t] :title [org-element-deferred org-element-property-2 ... nil] :level 1 :priority nil :tags nil :todo-keyword nil :todo-type nil :footnote-section-p [org-element-deferred org-element--headline-footnote-section-p nil nil] :archivedp [org-element-deferred org-element--headline-archivedp nil nil] :commentedp nil :fragile-cache nil))] :pre-blank 0 :raw-value [org-element-deferred org-element--headline-parse-title (t) t] :title [org-element-deferred org-element--headline-parse-title (t) t] :level [org-element-deferred org-element--headline-parse-title (t) t] :priority [org-element-deferred org-element--headline-parse-title (t) t] :tags [org-element-deferred org-element--headline-parse-title (t) t] :todo-keyword [org-element-deferred org-element--headline-parse-title (t) t] :todo-type [org-element-deferred org-element--headline-parse-title (t) t] :footnote-section-p [org-element-deferred org-element--headline-parse-title (t) t] :archivedp [org-element-deferred org-element--headline-parse-title (t) t] :commentedp [org-element-deferred org-element--headline-parse-title (t) t]))"
"(headline (:standard-properties [342 342 nil nil 449 0 (:title) nil element t nil nil nil 2 #<buffer org-bug-no-footnotes.org> [org-element-deferred org-element--headline-deferred nil t] nil (headline (:standard-properties [3 3 20 2159 2159 0 ... first-section element t nil 22 2159 1 #<buffer org-bug-no-footnotes.org> [org-element-deferred org-element--headline-deferred nil t] nil ...] :pre-blank 1 :raw-value [org-element-deferred org-element--headline-raw-value ... t] :title [org-element-deferred org-element-property-2 ... nil] :level 1 :priority nil :tags nil :todo-keyword nil :todo-type nil :footnote-section-p [org-element-deferred org-element--headline-footnote-section-p nil nil] :archivedp [org-element-deferred org-element--headline-archivedp nil nil] :commentedp nil :fragile-cache nil))] :pre-blank 0 :raw-value [org-element-deferred org-element--headline-parse-title (t) t] :title [org-element-deferred org-element--headline-parse-title (t) t] :level [org-element-deferred org-element--headline-parse-title (t) t] :priority [org-element-deferred org-element--headline-parse-title (t) t] :tags [org-element-deferred org-element--headline-parse-title (t) t] :todo-keyword [org-element-deferred org-element--headline-parse-title (t) t] :todo-type [org-element-deferred org-element--headline-parse-title (t) t] :footnote-section-p [org-element-deferred org-element--headline-parse-title (t) t] :archivedp [org-element-deferred org-element--headline-parse-title (t) t] :commentedp [org-element-deferred org-element--headline-parse-title (t) t]))"
next prev parent reply other threads:[~2024-07-18 6:52 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-13 15:18 org-element--cache: Added org-data parent to non-headline element martyhiatt
2024-06-14 10:34 ` Ihor Radchenko
[not found] ` <700d853d-ad47-4fd7-ac5e-954c2b278e71@riseup.net>
[not found] ` <87frsca2bo.fsf@localhost>
[not found] ` <add57553-0444-433e-85a3-ce34059512f2@riseup.net>
2024-07-17 14:56 ` Ihor Radchenko
2024-07-17 15:53 ` martyhiatt
2024-07-17 15:59 ` Ihor Radchenko
2024-07-17 16:36 ` mousebot [this message]
2024-07-17 16:52 ` Ihor Radchenko
2024-08-17 6:12 ` Ihor Radchenko
2024-08-17 11:42 ` martyhiatt
2024-08-18 10:20 ` Ihor Radchenko
2024-08-17 11:42 ` martyhiatt
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=784368c8-379a-445b-af15-8cb28bfd89a8@riseup.net \
--to=mousebot@riseup.net \
--cc=emacs-orgmode@gnu.org \
--cc=yantar92@posteo.net \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.