Dear org-mode developers, Ihor, I cought an org-element-cache warning with a rather up-to-date emacs and org-mode while calling via a key binding this simple function:
(defun my/org-goto-agenda-heading () (interactive) (org-refile '(4))) GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, cairo version 1.16.0) of 2023-08-20 Org mode version 9.7-pre (release_9.6.7-709-gdd2f05 @ /home/grfz/src/org-mode/lisp/) I hope this helps somehow. Ciao; Gregor ■ Warning (org-element-cache): org-element--cache: Warning(grfz.org): (my/org-goto-agenda-heading) Cached element is incorrect in grfz.org. (Cache tic up to date: "yes") 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 [159509 160713 159557 160712 1 159509 (:title) t nil 159559 160710 nil element 3 (headline (:standard-properties [2550 183136 2561 183133 3 2550 ... t nil 2669 183131 nil element 1 ... nil nil #<buffer grfz.org>] :pre-blank 0 :raw-value [org-element-deferred org-element--headline-raw-value ... nil] :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 :ARCHIVE [org-element-deferred org-element--substring ... nil] :ID [org-element-deferred org-element--substring ... nil])) nil nil #<buffer grfz.org>] :pre-blank 0 :raw-value [org-element-deferred org-element--headline-raw-value (4 47) nil] :title [org-element-deferred org-element-property-2 (:raw-value) nil] :level 2 :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))" The real element is: "(headline (:standard-properties [159509 160713 159557 160713 0 159509 (:title) nil nil 159559 160713 nil nil 3 [org-element-deferred org-element--headline-parent-deferred nil t] [org-element-deferred org-element--headline-deferred nil t] nil #<buffer grfz.org>] :pre-blank 0 :raw-value [org-element-deferred org-element--headline-parse-title (t) nil] :title [org-element-deferred org-element--headline-parse-title (t) nil] :level [org-element-deferred org-element--headline-parse-title (t) nil] :priority [org-element-deferred org-element--headline-parse-title (t) nil] :tags [org-element-deferred org-element--headline-parse-title (t) nil] :todo-keyword [org-element-deferred org-element--headline-parse-title (t) nil] :todo-type [org-element-deferred org-element--headline-parse-title (t) nil] :footnote-section-p [org-element-deferred org-element--headline-parse-title (t) nil] :archivedp [org-element-deferred org-element--headline-parse-title (t) nil] :commentedp [org-element-deferred org-element--headline-parse-title (t) nil]))" Cache around :begin: "(headline (:standard-properties [158019 159509 158064 159509 0 158019 (:title) t nil 158066 159507 nil element 3 (headline (:standard-properties [2550 183136 2561 183133 3 2550 ... t nil 2669 183131 nil element 1 ... nil nil #<buffer grfz.org>] :pre-blank 0 :raw-value [org-element-deferred org-element--headline-raw-value ... nil] :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 :ARCHIVE [org-element-deferred org-element--substring ... nil] :ID [org-element-deferred org-element--substring ... nil])) nil nil #<buffer grfz.org>] :pre-blank 0 :raw-value [org-element-deferred org-element--headline-raw-value (4 44) nil] :title [org-element-deferred org-element-property-2 (:raw-value) nil] :level 2 :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))" "(headline (:standard-properties [159509 160713 159557 160712 1 159509 (:title) t nil 159559 160710 nil element 3 (headline (:standard-properties [2550 183136 2561 183133 3 2550 ... t nil 2669 183131 nil element 1 ... nil nil #<buffer grfz.org>] :pre-blank 0 :raw-value [org-element-deferred org-element--headline-raw-value ... nil] :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 :ARCHIVE [org-element-deferred org-element--substring ... nil] :ID [org-element-deferred org-element--substring ... nil])) nil nil #<buffer grfz.org>] :pre-blank 0 :raw-value [org-element-deferred org-element--headline-raw-value (4 47) nil] :title [org-element-deferred org-element-property-2 (:raw-value) nil] :level 2 :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))" "(headline (:standard-properties [160713 166380 160738 166379 1 160713 (:title) t nil 160740 166377 nil element 3 (headline (:standard-properties [2550 183136 2561 183133 3 2550 ... t nil 2669 183131 nil element 1 ... nil nil #<buffer grfz.org>] :pre-blank 0 :raw-value [org-element-deferred org-element--headline-raw-value ... nil] :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 :ARCHIVE [org-element-deferred org-element--substring ... nil] :ID [org-element-deferred org-element--substring ... nil])) nil nil #<buffer grfz.org>] :pre-blank 0 :raw-value [org-element-deferred org-element--headline-raw-value (4 24) nil] :title [org-element-deferred org-element-property-2 (:raw-value) nil] :level 2 :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))" Backtrace: org-element-cache diagnostics(grfz.org): Added new element with nil key: "(keyword (:standard-properties [385 526 nil nil 3 385 nil nil nil nil nil nil element nil nil nil nil #<buffer grfz.org>] :key \"SEQ_TODO\" :value \"TODO(t) INPROGRESS(i@/@) WAITING(w@/@) VERIFY(v@/@) | DONE(d@/@) DELEGATED(D@/@) CANCELLED(c@/@) PUTOFF(p@/@) IDEA(I) SEEN(S)\"))" org-element-cache diagnostics(grfz.org): Added new element with nil key: "(keyword (:standard-properties [354 385 nil nil 0 354 nil nil nil nil nil nil element nil nil nil nil #<buffer grfz.org>] :key \"COLUMNS\" :value \"%45ITEM %18DEADLINE\"))" org-element-cache diagnostics(grfz.org): Added new element with nil key: "(keyword (:standard-properties [326 354 nil nil 0 326 nil nil nil nil nil nil element nil nil nil nil #<buffer grfz.org>] :key \"STARTUP\" :value \"lognoteclock-out\"))" org-element-cache diagnostics(grfz.org): Added new element with nil key: "(keyword (:standard-properties [301 326 nil nil 0 301 nil nil nil nil nil nil element nil nil nil nil #<buffer grfz.org>] :key \"STARTUP\" :value \"lognoterepeat\"))" org-element-cache diagnostics(grfz.org): Added new element with nil key: "(keyword (:standard-properties [278 301 nil nil 0 278 nil nil nil nil nil nil element nil nil nil nil #<buffer grfz.org>] :key \"STARTUP\" :value \"lognotedone\"))" org-element-cache diagnostics(grfz.org): Added new element with nil key: "(paragraph (:standard-properties [257 278 257 278 0 257 nil nil nil nil nil nil element nil nil nil nil #<buffer grfz.org>]))" org-element-cache diagnostics(grfz.org): Added new element with nil key: "(keyword (:standard-properties [231 257 nil nil 0 231 nil nil nil nil nil nil element nil nil nil nil #<buffer grfz.org>] :key \"STARTUP\" :value \"showeverything\"))" org-element-cache diagnostics(grfz.org): Added new element with nil key: "(paragraph (:standard-properties [212 231 212 231 0 212 nil nil nil nil nil nil element nil nil nil nil #<buffer grfz.org>]))" org-element-cache diagnostics(grfz.org): Added new element with nil key: "(keyword (:standard-properties [197 212 nil nil 0 197 nil nil nil nil nil nil element nil nil nil nil #<buffer grfz.org>] :key \"STARTUP\" :value \"odd\"))" org-element-cache diagnostics(grfz.org): Added new element with nil key: "(keyword (:standard-properties [125 197 nil nil 0 125 nil nil nil nil nil nil element nil nil nil nil #<buffer grfz.org>] :key \"HTML_HEAD\" :value \"<link rel=\\\"stylesheet\\\" type=\\\"text/css\\\" href=\\\"style.css\\\" />\"))" org-element-cache diagnostics(grfz.org): Added new element with nil key: "(keyword (:standard-properties [104 125 nil nil 0 104 nil nil nil nil nil nil element nil nil nil nil #<buffer grfz.org>] :key \"STARTUP\" :value \"hidestars\"))" org-element-cache diagnostics(grfz.org): Added new element with nil key: "(paragraph (:standard-properties [1 104 1 104 0 1 nil nil nil nil nil top-comment element nil nil nil nil #<buffer grfz.org>]))" org-element-cache diagnostics(grfz.org): Added new element with nil key: "(section (:standard-properties [1 1986 1 1986 0 1 nil nil nil 1 1986 first-section element nil nil nil nil #<buffer grfz.org>]))" org-element-cache diagnostics(grfz.org): Added new element with nil key: "(org-data (:standard-properties [1 753211 1 753211 0 1 nil nil nil 3 753211 org-data nil nil nil [org-element-deferred org-element--get-global-node-properties nil t] nil #<buffer grfz.org>] :path \"/home/grfz/org/grfz.org\"))" org-element-cache diagnostics(grfz.org): Nothing in cache. Adding org-data: "(org-data (:standard-properties [1 753211 1 753211 0 1 nil nil nil 3 753211 org-data nil nil nil [org-element-deferred org-element--get-global-node-properties nil t] nil #<buffer grfz.org>] :path \"/home/grfz/org/grfz.org\"))"