Ihor Radchenko <[email protected]> writes:
> Alejandro Pérez Carballo <[email protected]> writes:
>
>> I received the following message after trying to follow a search result
>> obtained via grep.
>>
>> ⛔ Warning (org-element): org-element--cache: Org parser error in
>> gpd.org::14519. Resetting.
>> The error was: (error "Invalid search bound (wrong side of point)")
>> ...
>> Package: Org mode version 9.7-pre (release_9.6.11-935-g6d7c79 @
>> /Users/apc/.emacs.d/straight/build/org/)
>
> Thanks for reporting!
> It looks like you are not using the latest main.
> Does the warning disappear if you upgrade Org mode?
I'm not sure if this is at all related but here is a snippet from my
config that helps me with jumping to org files. I belive `M-x grep' run
the `next-error-hook'. This just makes sure that the point you are
jumping too is not hidden by folding.
#+begin_src elisp
(defun my-org-fold-maybe-show-context ()
"If we are in `org-mode' then show context."
(when (derived-mode-p 'org-mode)
(org-fold-show-context 'org-goto)))
(add-hook 'xref-after-jump-hook
#'my-org-fold-maybe-show-context)
(add-hook 'next-error-hook
#'my-org-fold-maybe-show-context)
(add-hook 'ispell-update-post-hook #'my-org-fold-maybe-show-context)
#+end_src
Last response from reporter: <2024-01-24 Wed>
Canceled, due to the lack of a follow up. If you're still experiencing the
issue please do reply to let us know!
This message is being sent to update our issue tracker at
https://tracker.orgmode.org