When using an indirect buffer I get the warning

Warning (org-element-cache): org-element--cache: Org parser error in PIBBSS.org<2>::488418. Resetting.
 The error was: (error "Invalid search bound (wrong side of point)")
 Backtrace:
"  backtrace-to-string(nil)
  org-element-at-point(488418)
  org-element-cache-map(#f(compiled-function (el) #<bytecode 0x84291860d42dfa5>))
  org-get-buffer-tags()
  org-set-tags-command(nil)
  funcall-interactively(org-set-tags-command nil)
  command-execute(org-set-tags-command)
"

I am also experiencing, in indirect buffers, the inability to unfold
org-headings, and problems where rearranging them leaves sub-headings
behind, which may be related

Best wishes,

Matthew Clarke


Emacs  : GNU Emacs 30.0.50 (build 1, x86_64-w64-mingw32)
Package: Org mode version 9.6.15 (release_9.6.15 @ c:/Users/User/Downloads/emacs-master-x86_64-full/share/emacs/30.0.50/lisp/org/)

current state:
==============
(setq
 org-refile-target-verify-function 'my/verify-refile-target
 org-persist-before-write-hook '(org-element--cache-persist-before-write)
 org-habit-show-habits-only-for-today nil
 org-html-format-headline-function 'org-html-format-headline-default-function
 org-reveal-start-hook '(org-decrypt-entry)
 org-html-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"]
 org-deadline-warning-days 30
 org-refile-allow-creating-parent-nodes 'confirm
 org-latex-format-inlinetask-function 'org-latex-format-inlinetask-default-function
 org-agenda-custom-commands '(("c" "Super Agenda" agenda (org-super-agenda-mode)
      ((org-super-agenda-groups
'((:name "Meetings" :time-grid t) (:name "Due today" :deadline today) (:name "Overdue" :deadline past)
  (:name "Due soon" :deadline future) (:name "Next Items" :todo ("NEXT"))
  (:name "Done" :todo "DONE" :order 9) (:name "Today" :tag "today")
  (:name "In progress" :todo "IN-PROGRESS") (:name "Project" :tag "project")
  (:name "Important" :priority "A") (:name "Scheduled earlier" :scheduled past) (:name "Habits" :habit t)
  (:name "Low priority" :priority "C" :face (:foreground "gray"))
  (:name "Other TODO" :todo "TODO" :order 8))
)
)
      (org-agenda nil "a"))
     )
 org-speed-command-hook '(org-speed-command-activate org-babel-speed-command-activate)
 org-persist-after-read-hook '(org-element--cache-persist-after-read)
 org-fold-catch-invisible-edits 'error
 org-confirm-elisp-link-function 'yes-or-no-p
 org-journal-mode-hook '(turn-on-visual-line-mode org-journal-default-enable-encryption)
 org-log-done t
 org-latex-format-headline-function 'org-latex-format-headline-default-function
 org-latex-format-drawer-function #[514 "\207" [] 3 "\n\n(fn _ CONTENTS)"]
 org-mode-hook '(er/add-org-mode-expansions remove-electric-indent-mode
#[0 "\301\211 \207" [imenu-create-index-function org-imenu-get-tree] 2] my-org-mode-hook visual-line-mode
#[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-fold-show-all append local] 5]
#[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-babel-show-result-all append local] 5]
org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-hierarchical-todo-statistics nil
 org-capture-templates '(("t" "TODO" entry (file "c:/Users/User/Documents/Github/Log/Refile.org") "* TODO %? \n" :empty-lines 1)
("s" "Scheduled TODO" entry (file "c:/Users/User//Documents/Github/Log/Refile.org")
 "* TODO %? \nSCHEDULED: %^t\n" :empty-lines 1)
("d" "Deadline" entry (file "c:/Users/User//Documents/Github/Log/Refile.org") "* TODO %? \n  DEADLINE: %^t"
 :empty-lines 1)
("p" "Priority" entry (file "c:/Users/User//Documents/Github/Log/Refile.org") "* TODO [#A] %? \n  SCHEDULED: %^t")
("a" "Appointment" entry (file "c:/Users/User//Documents/Github/Log/Refile.org") "* %? \n  %^t")
("l" "Link" entry (file "c:/Users/User//Documents/Github/Log/Refile.org")
 "* TODO %a %?\nSCHEDULED: %(org-insert-time-stamp (org-read-date nil t \"+0d\"))\n")
("n" "Note" entry (file "c:/Users/User//Documents/Github/Log/Refile.org") "* %?\n" :empty-lines 1)
("r" "Repeating Meeting" entry (file "c:/Users/User//Documents/Github/Log/Refile.org")
 "* [/] %^{Name of Job} %^{Date of meeting}t \n** TODO Actual \n** TODO [/] Prep \nSCHEDULED: %^{Date of prep}t\n*** TODO Get old and next qs \n** TODO [/] Qs \n** TODO [/] Tasks - %\\1 :triage: \nSCHEDULED: %^{Date of tasks}t\n" :empty-lines 1)
("j" "Job application" entry (file "c:/Users/User//Documents/Github/Log/Refile.org")
 "* TODO [/] %^{Name of Job} :project: \nSCHEDULED: %^{Schedule}t DEADLINE: %^{Deadline}t\n** Website: %^{Website} \n** TODO [/] Prep \n*** TODO What docs needed" :empty-lines 1)
)
 org-refile-targets '((org-agenda-files :maxlevel . 12))
 org-confirm-shell-link-function 'yes-or-no-p
 org-odt-format-headline-function 'org-odt-format-headline-default-function
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-blocker-hook '(org-block-todo-from-children-or-siblings-or-parent)
 org-super-agenda-mode t
 org-journal-encrypt-journal t
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-refile-use-cache t
 org-occur-hook '(org-first-headline-recenter)
 org-enforce-todo-dependencies t
 org-babel-R-command "C:/Progra~1/R/R-4.0.5/bin/R --slave --no-save"
 org-html-format-inlinetask-function 'org-html-format-inlinetask-default-function
 org-table-convert-region-max-lines 2999
 org-ascii-format-drawer-function #[771 " \207" [] 4 "\n\n(fn NAME CONTENTS WIDTH)"]
 org-fold-reveal-start-hook '(org-decrypt-entry)
 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-refile-use-outline-path t
 org-cycle-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand)
 org-export-backends '(ascii html odt latex md)
 org-startup-folded t
 org-babel-pre-tangle-hook '(save-buffer)
 org-export-before-parsing-hook '(org-attach-expand-links)
 org-link-shell-confirm-function 'yes-or-no-p
 org-fold-core-isearch-open-function 'org-fold-core--isearch-reveal
 org-tags-exclude-from-inheritance '("project")
 outline-isearch-open-invisible-function 'outline-isearch-open-invisible
 org-latex-classes '(("beamer" "\\documentclass[presentation]{beamer}" ("\\section{%s}" . "\\section*{%s}")
     ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%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-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer)
 org-agenda-span 1
 org-fold-core-style 'overlays
 org-babel-load-languages '((R . t))
 org-modules '(org-habit)
 org-agenda-loop-over-headlines-in-active-region nil
 org-agenda-files '("c:/Users/User/Documents/GitHub/Log/LabMeet&Jclub.org" "c:/Users/User/Documents/GitHub/Log/ALPHACLOCK.org"
   "c:/Users/User/Documents/GitHub/Log/PaperstoFile.org" "c:/Users/User/Documents/GitHub/Log/Refile.org"
   "c:/Users/User/Documents/GitHub/Log/ProjectIdeas.org" "c:/Users/User/Documents/GitHub/Log/PeerReviews.org"
   "c:/Users/User/Documents/GitHub/Log/Moving.org" "c:/Users/User/Documents/GitHub/Log/postdoc.org"
   "c:/Users/User/Documents/GitHub/Log/Conferences.org"
   "c:/Users/User/Documents/GitHub/Log/Contingencies.org"
    "c:/Users/User/Documents/GitHub/Log/BATCH.org"
   "c:/Users/User/Documents/GitHub/Log/Viva.org" "c:/Users/User/Documents/GitHub/Log/Lung.org"
   "c:/Users/User/Documents/GitHub/Log/Order.org" "c:/Users/User/Documents/GitHub/Log/Thesis.org"
   "c:/Users/User/Documents/GitHub/Log/Work.org")
 org-link-elisp-confirm-function 'yes-or-no-p
 org-outline-path-complete-in-steps nil
 org-startup-indented t
 org-odt-format-inlinetask-function 'org-odt-format-inlinetask-default-function
 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-journal-dir "c:/Users/User/Documents/Github/journal/"
 org-persist-before-read-hook '(org-element--cache-persist-before-read)
 org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
 org-odt-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"]
 org-agenda-dim-blocked-tasks nil
 )

--

Research Fellow

Jasmin Fisher Laboratory

UCL Cancer Institute

University College London, 72 Huntley Street, London, WC1E 6BT 


Lab website    Personal website    Linkedin