When I save a particular file https://github.com/Accord-Project/bsdd/blob/main/README-bug.org, I get this warning (and request to post a bug): Warning (org-element-cache): org-element--cache: Org parser error in README.org::1092. Resetting. The error was: (error "Invalid search bound (wrong side of point)") Backtrace: nil In another case when I am at line:col 1578:93 and save, I get this warning: Warning (org-element-cache): org-element--cache: (save-buffer) Cached element is incorrect in README.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: "(paragraph (:begin 1 :end 14 :contents-begin 1 :contents-end 14 :post-blank 0 :post-affiliated 1 :mode top-comment :granularity element :cached t :parent (section (:begin 1 :end 14 :contents-begin 1 :contents-end 14 :robust-begin 1 :robust-end 12 :post-blank 0 :post-affiliated 1 :mode first-section :granularity element :cached t :parent (org-data ...)))))" The real element is: "(keyword (:key \"OPTIONS\" :value \"':nil *:t -:t ::t <:t H:5 \\\\n:nil ^:{} arch:headline author:t\" :begin 1 :end 73 :post-blank 0 :post-affiliated 1 :mode top-comment :granularity element :parent (section (:begin 1 :end 981 :contents-begin 1 :contents-end 980 :robust-begin 1 :robust-end 978 :post-blank 1 :post-affiliated 1 :mode first-section :granularity element :parent (org-data ...)))))" Cache around :begin: nil (paragraph (:begin 1 :end 14 :contents-begin 1 :contents-end 14 :post-blank 0 :post-affiliated 1 :mode top-comment :granularity element :cached t :parent (section (:begin 1 :end 14 :contents-begin 1 :contents-end 14 :robust-begin 1 :robust-end 12 :post-blank 0 :post-affiliated 1 :mode first-section :granularity element :cached t :parent (org-data (:begin 1 :contents-begin 1 :contents-end 14 :end 14 :robust-begin 3 :robust-end 12 :post-blank 0 :post-affiliated 1 :path nil :mode org-data :CATEGORY nil :cached t)))))) Emacs : GNU Emacs 28.1 (build 52, x86_64-w64-mingw32) of 2022-04-04 Package: Org mode version 9.6.1 ( @ d:/.emacs.d/elpa/org-9.6.1/) current state: (two hook values simplified rather than showing bytecode) ============== (setq org-html-with-latex nil org-link-elisp-confirm-function 'yes-or-no-p org-hierarchical-todo-statistics nil org-export-with-sub-superscripts '{} org-yank-adjusted-subtrees t org-agenda-custom-commands nil org-startup-folded "showeverything" org-babel-after-execute-hook '(va/org-babel-after-execute-hook) org-persist-after-read-hook '(org-element--cache-persist-after-read) org-export-before-parsing-hook '(org-attach-expand-links) org-cycle-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-archive-hook '(org-attach-archive-delete-maybe) org-html-postamble t org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-show-empty-lines org-cycle-optimize-window-after-visibility-change org-cycle-display-inline-images) org-latex-listings-options '(("basicstyle" "\\footnotesize\\ttfamily") ("frame" "single") ("showstringspaces" "false")) org-startup-numerated t org-persist-before-read-hook '(org-element--cache-persist-before-read) org-modules '(org-attach org-crypt org-entities org-id org-mouse org-protocol org-tempo) org-link-from-user-regexp "\\" org-image-actual-width '(500) org-export-use-babel nil org-mode-hook '(#f(compiled-function () #) org-tempo-setup #f(compiled-function () #) my-orgtbl-mode-hook #f(compiled-function () #) #f(compiled-function () #) org-babel-result-hide-spec org-babel-hide-all-hashes va/org-mode-hook) org-babel-load-languages '((emacs-lisp . t) (ditaa . t) (dot . t) (perl . t) (plantuml . t) (salt . t) (shell . t) (sparql . t)) org-export-headline-levels 5 org-highlight-links '(bracket angle plain radio footnote) org-latex-default-figure-position "!htpb" org-html-head "" org-export-allow-bind-keywords t org-reveal-extra-js "{src: '../../reveal.js-tagcloud-plugin/tagcloud/tagcloud.js', async: true, condition: function() {return !!document.body.classList}}" org-latex-format-drawer-function #[514 "\207" [] 3 "\n\n(fn _ CONTENTS)"] org-reveal-head-preamble "" org-latex-format-headline-function 'org-latex-format-headline-default-function org-reveal-root "../../reveal.js" org-confirm-shell-link-function 'yes-or-no-p org-reveal-start-hook '(org-decrypt-entry) org-present-mode-hook '(my-org-present-mode-hook) org-present-mode-quit-hook '(my-org-present-mode-quit-hook) org-html-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"] outline-isearch-open-invisible-function 'outline-isearch-open-invisible org-use-sub-superscripts '{} org-plain-list-ordered-item-terminator 46 org-export-time-stamp-file nil org-startup-indented t org-latex-classes '(("ldbc-part" "\\documentclass[11pt]{report}" ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) ("llncs" "\\documentclass[11pt]{llncs}" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}")) ("koma-article" "\\documentclass[11pt]{scrartcl}" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}")) ("article" "\\documentclass[11pt]{article}" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}")) ("report" "\\documentclass[11pt]{report}" ("\\part{%s}" . "\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) ("book" "\\documentclass[11pt]{book}" ("\\part{%s}" . "\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) ) org-plantuml-jar-path "/prog/plantuml/plantuml.jar" org-protocol-protocol-alist '(("org-store-link" :protocol "store-link" :function va/org-protocol-store-link :kill-client nil) ) org-html-table-default-attributes '(:border "1" :cellspacing "0" :cellpadding "2" :rules "all" :frame "box") org-agenda-mode-hook '(#f(compiled-function () #)) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-latex-packages-alist '(("" "listings")) org-entities-user '(("ok" nil nil "" "OK" "OK" "✔") ("nok" nil nil "" "NOK" "NOK" "✘") ("c" nil nil "©" "(C)" "©" "©") ("tm" nil nil "™" "TM" "™" "™")) org-babel-tangle-lang-exts '(("perl" . "pl") ("emacs-lisp" . "el") ("elisp" . "el")) org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-confirm-elisp-link-function 'yes-or-no-p org-latex-src-block-backend t org-cycle-separator-lines 1 org-special-ctrl-k t org-clock-idle-time 15 org-todo-keywords '((sequence "TODO" "|" "DONE" "CANCELED")) org-structure-template-alist '(("ee" . "export") ("ea" . "export ascii") ("eh" . "export html") ("el" . "export latex") ("s" . "src") ("4" . "src m4") ("d" . "src dot :file ./img/TODO.png") ("g" . "src graphql") ("j" . "src json") ("p" . "src perl") ("S" . "src sparql") ("t" . "src turtle") ("u" . "src plantuml :file ./img/TODO.png") ("x" . "src shexc") ("y" . "src yaml") ("a" . "abstract") ("c" . "center") ("C" . "comment") ("e" . "example") ("n" . "notes") ("q" . "quote") ("V" . "verbatim") ("v" . "verse")) org-pretty-entities t org-speed-command-hook '(org-speed-command-activate org-babel-speed-command-activate) org-html-format-inlinetask-function 'org-html-format-inlinetask-default-function org-html-postamble-format '(("en" "

Exported by %c

\n

%v

")) org-pretty-entities-include-sub-superscripts nil org-html-metadata-timestamp-format "%Y-%m-%d" org-export-backends '(html rst gfm latex reveal) org-confirm-babel-evaluate 'va/org-confirm-babel-evaluate org-fold-core-isearch-open-function 'org-fold-core--isearch-reveal org-html-preamble-format '(("en" "

Author: %a (%e)

\n

Date: %d

")) org-clock-persist t org-latex-format-inlinetask-function 'org-latex-format-inlinetask-default-function org-persist-before-write-hook '(org-element--cache-persist-before-write) org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-export-with-toc 5 org-link-shell-confirm-function 'yes-or-no-p org-babel-pre-tangle-hook '(save-buffer) org-use-tag-inheritance nil org-agenda-loop-over-headlines-in-active-region nil org-todo-keyword-faces '(("CANCELED" . "blue") ("MAYBE" . "blue") ("POSTPONED" . "blue") ("SAME" . "blue") ("APPLIED" . "orange") ("FOLLOW" . "orange") ("INPROGRESS" . "orange") ("NEXT" . "orange") ("IER" . "orange")) org-fold-reveal-start-hook '(org-decrypt-entry) org-occur-hook '(org-first-headline-recenter) org-latex-image-default-width "" org-metadown-hook '(org-babel-pop-to-session-maybe) outline-minor-mode-prefix " " org-link-parameters '(("attachment" :follow org-attach-follow :complete org-attach-complete-link) ("id" :follow org-id-open) ("file+sys") ("file+emacs") ("shell" :follow org-link--open-shell) ("news" :follow #[514 "\301\300\302 Q \"\207" ["news" browse-url ":"] 6 "\n\n(fn URL ARG)"]) ("mailto" :follow #[514 "\301\300\302 Q \"\207" ["mailto" browse-url ":"] 6 "\n\n(fn URL ARG)"]) ("https" :follow #[514 "\301\300\302 Q \"\207" ["https" browse-url ":"] 6 "\n\n(fn URL ARG)"]) ("http" :follow #[514 "\301\300\302 Q \"\207" ["http" browse-url ":"] 6 "\n\n(fn URL ARG)"]) ("ftp" :follow #[514 "\301\300\302 Q \"\207" ["ftp" browse-url ":"] 6 "\n\n(fn URL ARG)"]) ("help" :follow org-link--open-help :store org-link--store-help) ("file" :complete org-link-complete-file) ("elisp" :follow org-link--open-elisp)) org-html-format-headline-function 'org-html-format-headline-default-function org-metaup-hook '(org-babel-load-in-session-maybe) org-open-non-existing-files t org-export-date-timestamp-format "%d %Mmm %y" org-num-format-function 'org-num-default-format org-imenu-depth 200 org-footnote-define-inline t org-reveal-theme "solarized" org-special-ctrl-a/e t org-fast-tag-selection-single-key t org-src-lang-modes '(("elisp" . emacs-lisp) ("ditaa" . artist) ("perl" . cperl) ("dot" . graphviz-dot) ("sqlite" . sql) ("shell" . sh) ("bash" . sh) ("turtle" . Turtle) ("sparql" . sparql) ("shex" . shex) ("shacl" . Turtle) ("shaclc" . SHACLC)) org-tab-before-tab-emulation-hook '(org-tempo-complete-tag) org-babel-results-keyword "results" org-cycle-global-at-bob t org-mouse-features '(context-menu move-tree yank-link activate-stars activate-bullets activate-checkboxes) )