Re: [BUG] Warning when creating preview

2023-10-11 Thread Ihor Radchenko
Edgar Lux  writes:

> Emacs  : GNU Emacs 28.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.36, 
> cairo version 1.17.6)
>  of 2023-01-03

Hopefully, fixed now.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=37d6bde27

(the reproducer was found in a private email thread, and is not public)

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: [BUG] Warning when creating preview

2023-10-09 Thread Edgar Lux
On Oct 9, 2023 at 3:59 PM

if I comment out the (add-hook 'org-mode-hook #'org-indent-mode), the error is 
gone

-- 
Sent with https://mailfence.com  
Secure and private email

-- 
Sent with https://mailfence.com  
Secure and private email



Re: [BUG] Warning when creating preview

2023-10-09 Thread Edgar Lux
On Oct 9, 2023 
> #--- bug.org
> \(a = 1\)
> #---

further, if you stay "inside" the equation and do C-u C-c C-x C-l (to remove 
the preview) and try to show it again with C-c C-x C-l, the preview is not 
regenerated, but the minibuffer shows =Creating LaTeX previews in section... 
done.=

-- 
Sent with https://mailfence.com  
Secure and private email


init.el.gz
Description: File Attachment: init.el.gz


Re: [BUG] Warning when creating preview

2023-10-05 Thread Ihor Radchenko
Edgar Lux  writes:

> Nope, there is still something wrong with my config (see attachment). Haven't 
> been able to reproduce consistently.

Ok. We can try another way.

May you add the following to your config:

(setq debug-on-error t)

Then, next time you will see a more detailed backtrace.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: [BUG] Warning when creating preview

2023-10-02 Thread Edgar Lux
Nope, there is still something wrong with my config (see attachment). Haven't 
been able to reproduce consistently.

-- 
Sent with https://mailfence.com  
Secure and private email


log.gz
Description: File Attachment: log.gz


Re: [BUG] Warning when creating preview

2023-09-28 Thread Edgar Lux
I forgot to say that now:

"9.7-pre"
GNU Emacs 29.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo 
version 1.17.8)

-- 
Sent with https://mailfence.com  
Secure and private email

-- 
Sent with https://mailfence.com  
Secure and private email



Re: [BUG] Warning when creating preview

2023-09-28 Thread Edgar Lux
On Aug 28, 2023 at 11:00 AM, Ihor Radchenko  wrote:Edgar 
Lux  writes:

> On Aug 27, 2023 at 7:29 PM, Ihor Radchenko  wrote:
>> I recommend https://github.com/Malabarba/elisp-bug-hunter to narrow down
>> which part of the config is the culprit.
>
> We have a winner:

Another winner? I am not getting the bug anymore

  ;; THIS SUCKS!
  ;; ;; Set soft line wrapping (only on screen, not adding
  ;; ;; newlines to files)
  ;; (remove-hook 'org-mode-hook #'turn-on-auto-fill)
  ;; (add-hook 'org-mode-hook
  ;;   (lambda ()
  ;; (turn-on-visual-line-mode)
  ;; ;; Visual indent
  ;; (org-indent-mode)
  ;; ;; Turn off hard wrapping
  ;; ;; (adding newlines to text)
  ;; (auto-fill-mode -1)
  ;; ;; Align tags from right to
  ;; ;; left to the width of the column
  ;; ;; (setq org-tags-column -60)
  ;; (setq org-tags-column
  ;;   (- 3 fill-column

  ;; No more error
  ;; Set soft line wrapping (only on screen, not adding
  ;; newlines to files)
  (remove-hook 'org-mode-hook #'turn-on-auto-fill)
  (add-hook 'org-mode-hook #'turn-on-visual-line-mode)
  ;; Visual indent
  (add-hook 'org-mode-hook #'org-indent-mode)
  ;; Turn off hard wrapping
  ;; (adding newlines to text)
  (add-hook 'org-mode-hook (lambda () (auto-fill-mode -1)))
  ;; Align tags from right to
  ;; left to the width of the column
  ;; (setq org-tags-column -60)
  (add-hook 'org-mode-hook (lambda () (setq org-tags-column
(- 3 fill-column


-- 
Sent with https://mailfence.com  
Secure and private email



Re: [BUG] Warning when creating preview

2023-08-28 Thread Ihor Radchenko
Edgar Lux  writes:

> On Aug 27, 2023 at 7:29 PM, Ihor Radchenko  wrote:
>> I recommend https://github.com/Malabarba/elisp-bug-hunter to narrow down
>> which part of the config is the culprit.
>
> We have a winner:
>
> ;; Bug hunter error ---
> ;; https://github.com/nicolaisingh/saveplace-pdf-view.git
> (if (file-directory-p "/path/to/packages/saveplace-pdf-view")
> (progn
>   (push "/path/to/packages/saveplace-pdf-view" load-path)
>   (require 'saveplace-pdf-view)
>   (save-place-mode 1)))
> ;; --- end bug hunter error
>
> The error is gone when I comment this out. I know it's not magic, but OMP! 
> (oh, my penguin).

Even with this, I am unable to reproduce.
So, it may only be a part of the problem. Some part of the configuration
before this snippet may be the extra required trigger (in combination
with saveplace-pdf-view).

What happens if you put the save-place-pdf-view snippet near the
beginning of your config and try to bisect again?

> The authors of the package are in Bcc. I like the functionality that it 
> provides and will just ignore the message. If you need more info, let me know.

I do not see any extra BCC.
Also, do note that parser errors might lead to Org file corruption. There
is a reason why we throw this kind of warning into users.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: [BUG] Warning when creating preview

2023-08-27 Thread Ihor Radchenko
Edgar Lux  writes:

> On Aug 27, 2023 at 1:28 PM, Ihor Radchenko  wrote:
>
 9. M-& make repro REPRO_ARGS="-l /tmp/bug.el /tmp/bug.org"
>
>> Please run this command from terminal.
>> It should spawn a clean Emacs instance with Org version from the repository.
>
> No warning after   C-c C-x C-l(2x)

So, it looks like something with your config.
I recommend https://github.com/Malabarba/elisp-bug-hunter to narrow down
which part of the config is the culprit.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: [BUG] Warning when creating preview

2023-08-27 Thread Edgar Lux



On Aug 27, 2023 at 1:28 PM, Ihor Radchenko  wrote:

>>> 9. M-& make repro REPRO_ARGS="-l /tmp/bug.el /tmp/bug.org"

> Please run this command from terminal.
> It should spawn a clean Emacs instance with Org version from the repository.

No warning after   C-c C-x C-l(2x)

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 

-- 
Sent with https://mailfence.com  
Secure and private email



Re: [BUG] Warning when creating preview

2023-08-27 Thread Ihor Radchenko
Edgar Lux  writes:

> On Aug 26, 2023 at 6:28 PM, Ihor Radchenko  wrote:
>
>> Did you see a new Emacs instance at this point?
>
> Nope. I just launched Emacs again (there is another instance running) and 
> copied the command
>
>>> 9. M-& make repro REPRO_ARGS="-l /tmp/bug.el /tmp/bug.org"

Please run this command from terminal.
It should spawn a clean Emacs instance with Org version from the repository.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: [BUG] Warning when creating preview

2023-08-27 Thread Edgar Lux
On Aug 26, 2023 at 6:28 PM, Ihor Radchenko  wrote:

> Did you see a new Emacs instance at this point?

Nope. I just launched Emacs again (there is another instance running) and 
copied the command

>> 9. M-& make repro REPRO_ARGS="-l /tmp/bug.el /tmp/bug.org"

Shell buffer shows
#+begin_example
  make -C doc cleanall;  make -C etc cleanall;  make -C lisp cleanall;
  make[1]: Entering directory '/path/to/org/repo/doc'
  rm -f *.pdf *.html *.info *_letter.tex org-version.inc org-version.tex \
*.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.kys *.pg *.pgs *.toc \
*.tp *.tps *.vr *.vrs *.log *.ps
  rm -f org.texi orgguide.texi
  rm -fr guide manual
  make[1]: Leaving directory '/path/to/org/repo/doc'
  make[1]: Entering directory '/path/to/org/repo/etc'
  make[1]: Nothing to be done for 'cleanall'.
  make[1]: Leaving directory '/path/to/org/repo/etc'
  make[1]: Entering directory '/path/to/org/repo/lisp'
  rm -f org-version.el org-loaddefs.el org-version.elc org-loaddefs.elc 
org-install.elc
  rm -f *.elc
  make[1]: Leaving directory '/path/to/org/repo/lisp'
  rm -fr /tmp/tmp-orgtest || { \
find /tmp/tmp-orgtest -type d -exec chmod u+w {} + && \
rm -fr /tmp/tmp-orgtest ; \
  }
  find . \( -name \*~ -o -name \*# -o -name .#\* \) -exec rm -f {} +
  find testing mk \( -name \*~ -o -name \*.elc \) -exec rm -f {} +
  make -C lisp autoloads
  make[1]: Entering directory '/path/to/org/repo/lisp'
  rm -f org-version.el org-loaddefs.el org-version.elc org-loaddefs.elc 
org-install.elc
  org-version: 9.7-pre (release_9.6.7-698-g3cbd9f)
  Loading /path/to/org/repo/lisp/org-compat.el (source)...
  Loading /path/to/org/repo/mk/org-fixup.el (source)...
  org-loaddefs: 9.7-pre (release_9.6.7-698-g3cbd9f)
  Loading /path/to/org/repo/lisp/org-compat.el (source)...
  Loading /path/to/org/repo/mk/org-fixup.el (source)...
  make[1]: Leaving directory '/path/to/org/repo/lisp'
#+end_example

-- 
Sent with https://mailfence.com  
Secure and private email



Re: [BUG] Warning when creating preview

2023-08-26 Thread Ihor Radchenko
Edgar Lux  writes:

> 9. M-& make repro REPRO_ARGS="-l /tmp/bug.el /tmp/bug.org"

Did you see a new Emacs instance at this point?

> 10. M-x switch-to-buffer RET /tmp/bug.org RET
> 11. Move point to "t = 0" line
> 12. C-c C-x C-l (2x)
>
> I see the warning.
>
> After step 10, I removed the files in ltximg, ran =emacs -q=, find file 
> /tmp/bug.org, step 11 & 12, and I see no warning. There must be something 
> else in my configuration which triggers the error (if you want to follow the 
> rabbit, let me know).

Sure, I do want to go into this rabbit hole. This kind of problem is
runtime and very hard to catch unless we get help from users with
unusual configs.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: [BUG] Warning when creating preview

2023-08-26 Thread Edgar Lux
On Aug 23, 2023 at 9:56 AM, Ihor Radchenko 
> 1. Save the equation to file /tmp/bug.org
> 2. Save your `setq' snippet to /tmp/bug.el
> 3. cd /path/to/org/repo
> 4. make repro REPRO_ARGS="-l /tmp/bug.el /tmp/bug.org"
> 5. Move point to "t = 0" line
> 6. C-c C-x C-l (2x)
> 7. The preview appears and then disappears, as expected.
>
> May you please repeat my steps and let me know if your are seeing the warning?

1. emacs (loading my full configuration)
2. find the file of my previous bug report: t.org
3. dedent and mark the equation (without the =_quote=)
4. M-x copy-to-buffer RET bug.org RET
5. Save to /tmp/bug.org
6. add :tangle /tmp/bug.el to the emacs-lisp source block
7. C-u C-c C-v t to tangle (save) the file
8. find /path/to/org/repo (with dired)
9. M-& make repro REPRO_ARGS="-l /tmp/bug.el /tmp/bug.org"
10. M-x switch-to-buffer RET /tmp/bug.org RET
11. Move point to "t = 0" line
12. C-c C-x C-l (2x)

I see the warning.

After step 10, I removed the files in ltximg, ran =emacs -q=, find file 
/tmp/bug.org, step 11 & 12, and I see no warning. There must be something else 
in my configuration which triggers the error (if you want to follow the rabbit, 
let me know).

In this case, the warning was:

#+begin_example
  Warning (org-element-cache): org-element--cache: Org parser error in 
bug.org::22. Resetting.
   The error was: (error "Invalid search bound (wrong side of point)")
   Backtrace:
  "  backtrace-to-string(nil)
org-element-at-point()
org-element-context()
org-latex-preview(nil)
funcall-interactively(org-latex-preview nil)
call-interactively(org-latex-preview nil nil)
command-execute(org-latex-preview)
  "
   Please report this to Org mode mailing list (M-x org-submit-bug-report). 
Disable showing Disable logging
#+end_example

-- 
Sent with https://mailfence.com  
Secure and private email



Re: [BUG] Warning when creating preview

2023-08-23 Thread Ihor Radchenko
Edgar Lux  writes:

> * Steps to reproduce
>
> 1. Type this equation
>
>#+begin_quote
>\begin{gather}
>t = 0
>\end{gather}
>#+end_quote
>
> 2. Ask for preview =C-c C-x C-l= with point on the equation
>
> 3. Ask to remove preview (without moving point) =C-c C-x C-l=
>
> 4. You get the message (below)

I cannot get the message on my side.

I did (using Emacs 28 and also Emacs master):

1. Save the equation to file /tmp/bug.org
2. Save your `setq' snippet to /tmp/bug.el
3. cd /path/to/org/repo
4. make repro REPRO_ARGS="-l /tmp/bug.el /tmp/bug.org"
5. Move point to "t = 0" line
6. C-c C-x C-l (2x)
7. The preview appears and then disappears, as expected.

May you please repeat my steps and let me know if your are seeing the warning?

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: [BUG] Warning when creating preview

2023-08-22 Thread Edgar Lux
On Aug 18, 2023 at 6:04 PM, Ihor Radchenko  wrote:

> May you try to install the latest stable Org first, following
> https://orgmode.org/manual/Installation.html? You should get M-x
> org-version printing Org 9.6.7.

> Then, let us know if the warning keeps appearing.

* What happens

When I type some equations and get the preview, I get this warning

* Steps to reproduce

1. Type this equation

   #+begin_quote
   \begin{gather}
   t = 0
   \end{gather}
   #+end_quote

2. Ask for preview =C-c C-x C-l= with point on the equation

3. Ask to remove preview (without moving point) =C-c C-x C-l=

4. You get the message (below)

If you repeat 1--3, the message is gone. It comes back if you remove the 
=./ltximg/.svg=

* My "system"

#+begin_src emacs-lisp
  (setq org-latex-pdf-process
'("xelatex -file-line-error -no-pdf -interaction nonstopmode 
-shell-escape -output-directory %o %f"
  ;; Check this too: https://tex.stackexchange.com/a/455164
  "[[ -f %o/%b.idx ]] && texindy %o/%b.idx"
  ;; https://stackoverflow.com/a/57734531
  ;; "latexmk -pdfxe -bibtex %F") ; gives issues with silly errors
  "latexmk -shell-escape -f -pdfxe -bibtex %F")

;; https://emacs.stackexchange.com/a/33172
org-preview-latex-process-alist
(quote ((dvisvgm :programs ("xelatex" "dvisvgm")
:description "dvi > svg"
:message ((concat
  "you need to install the programs: "
  "xelatex and dvisvgm."))
:use-xcolor t
:image-input-type "xdv"
:image-output-type "svg"
:image-size-adjust (1.3 . 1.5)
:latex-compiler ("xelatex -no-pdf -interaction nonstopmode 
-output-directory %o %f")
:image-converter ("dvisvgm %o%b.xdv -n -b min -c %S -o %O"))
))

org-preview-latex-default-process 'dvisvgm)
#+end_src

#+begin_src emacs-lisp
  (format "%s\n%s"
  (org-version)
  (emacs-version))
#+end_src

#+RESULTS:
: 9.7-pre
: GNU Emacs 28.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.36, cairo 
version 1.17.6)
:  of 2023-01-03

Org commit: 3cbd9f423385bf725dc964a5cff573bba17db3ff

* The message

#+begin_example
  Warning (org-element-cache): org-element--cache: Org parser error in 
t.org::189. Resetting.
   The error was: (error "Invalid search bound (wrong side of point)")
   Backtrace:
  "  backtrace-to-string(nil)
org-element-at-point()
org-element-context()
org-latex-preview(nil)
funcall-interactively(org-latex-preview nil)
call-interactively(org-latex-preview nil nil)
command-execute(org-latex-preview)
  "
   Please report this to Org mode mailing list (M-x org-submit-bug-report). 
Disable showing Disable logging
#+end_example


-- 
Sent with https://mailfence.com  
Secure and private email



Re: [BUG] Warning when creating preview

2023-08-18 Thread Edgar Lux
On Aug 18, 2023 at 6:04 PM, Ihor Radchenko  wrote:Edgar 
Lux  writes:

> The Org version is very strange. Emacs 28 ships with Org 9.5.5 and the
> latest stable version of Org available on ELPA is Org 9.6.7. The warning
> comes from Org >9.6.

Super weird. I don't know why I ended up in some 9.4 branch (a246a1318), and 
when I did checkout master, I would still be there. Now in 9.7-pre

> Then, let us know if the warning keeps appearing.

I saw you holding your breath :P .

THAAANKS

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 

-- 
Sent with https://mailfence.com  
Secure and private email



Re: [BUG] Warning when creating preview

2023-08-18 Thread Ihor Radchenko
Edgar Lux  writes:

> I don't really need help with this. Org has been telling me for days
> that I should report this, but I don't really want to share my
> configuration publicly, and I thought that it was only for a file on
> which I was working. It seems to be general for my configuration. I
> hope that it helps. If you have an encrypted personal account to which
> I can send my config file, let me know.

You do not have to. If you wish, you can disable the warning by clicking
on Disable showing or Disable logging.

However, the warning indicates a problem with Org parser cache. Org
recovers from it, but not necessarily immediately. You may get certain
edits bugging out if the parser cache is not correct. For example,
certain edits may "lose" first star of a heading behind. That's why we
are so into the face of users with this warning you are seeing.

> * What happens
>
> When I type some equations and get the preview, I get this warning
>
> #+begin_quote
> \begin{gather}
> t = 0
> \end{gather}
> #+end_quote
>
> * My "system"
>
> Emacs  : GNU Emacs 28.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.36, 
> cairo version 1.17.6)
>  of 2023-01-03
> Package: Org mode version 9.4.6 (release_9.4.6-13-g4be129)
>
> * The message
>
> Warning (org-element-cache): org-element--cache: Org parser error in 
> t.org::35. Resetting.
>  The error was: (error "Invalid search bound (wrong side of point)")

The Org version is very strange. Emacs 28 ships with Org 9.5.5 and the
latest stable version of Org available on ELPA is Org 9.6.7. The warning
comes from Org >9.6.

It appears to me that you have some problem with Org installation.

May you try to install the latest stable Org first, following
https://orgmode.org/manual/Installation.html? You should get M-x
org-version printing Org 9.6.7.

Then, let us know if the warning keeps appearing.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



[BUG] Warning when creating preview

2023-08-18 Thread Edgar Lux
Hi,

I don't really need help with this. Org has been telling me for days that I 
should report this, but I don't really want to share my configuration publicly, 
and I thought that it was only for a file on which I was working. It seems to 
be general for my configuration. I hope that it helps. If you have an encrypted 
personal account to which I can send my config file, let me know.

* What happens

When I type some equations and get the preview, I get this warning

#+begin_quote
\begin{gather}
t = 0
\end{gather}
#+end_quote

* My "system"

Emacs  : GNU Emacs 28.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.36, 
cairo version 1.17.6)
 of 2023-01-03
Package: Org mode version 9.4.6 (release_9.4.6-13-g4be129)

* The message

Warning (org-element-cache): org-element--cache: Org parser error in t.org::35. 
Resetting.
 The error was: (error "Invalid search bound (wrong side of point)")
 Backtrace:
"  backtrace-to-string(nil)
  (progn (backtrace-to-string (backtrace-get-frames 'backtrace)))
  (if (and (fboundp 'backtrace-get-frames) (fboundp 'backtrace-to-string)) 
(progn (backtrace-to-string (backtrace-get-frames 'backtrace
  (format \"Org parser error in %s::%S. Resetting.\\n The error ...\" 
(buffer-name (current-buffer)) epom err (if (and (fboundp 
'backtrace-get-frames) (fboundp 'backtrace-to-string)) (progn 
(backtrace-to-string (backtrace-get-frames 'backtrace)
  (let* ((format-string (format \"Org parser error in %s::%S. Resetting.\\n The 
error ...\" (buffer-name (current-buffer)) epom err (if (and (fboundp 
'backtrace-get-frames) (fboundp 'backtrace-to-string)) (progn 
(backtrace-to-string (backtrace-get-frames ...)) (format-string (if (or 
(not org-element--cache-diagnostics-ring) (not (eq 'backtrace 
org-element--cache-self-verify))) format-string (prog1 (concat (format 
\"Warning(%s): \" (buffer-name ...)) format-string \"\\nBacktrace:\\n  \" 
(mapconcat #'identity (ring-elements org-element--cache-diagnostics-ring) \"\\n 
 \")) (setq org-element--cache-diagnostics-ring nil) (if (and (boundp 
'org-batch-test) org-batch-test) (error \"%s\" (concat \"org-element--cache: \" 
format-string)) (display-warning 'org-element-cache (concat 
\"org-element--cache: \" format-string
  (condition-case err (org-element--parse-to epom) ((debug error) (let* 
((format-string (format \"Org parser error in %s::%S. Resetting.\\n The error 
...\" (buffer-name (current-buffer)) epom err (if (and ... ...) (progn ... 
(format-string (if (or (not org-element--cache-diagnostics-ring) (not ...)) 
format-string (prog1 (concat ... format-string \"\\nBacktrace:\\n  \" ...) 
(setq org-element--cache-diagnostics-ring nil) (if (and (boundp 
'org-batch-test) org-batch-test) (error \"%s\" (concat \"org-element--cache: \" 
format-string)) (display-warning 'org-element-cache (concat 
\"org-element--cache: \" format-string (org-element-cache-reset) 
(org-element--parse-to epom)))
  (if cached-only (if (and (org-element--cache-active-p) (or (not 
org-element--cache-sync-requests) (< epom (aref (car 
org-element--cache-sync-requests) 1 (progn (org-element--cache-find epom))) 
(condition-case err (org-element--parse-to epom) ((debug error) (let* 
((format-string (format \"Org parser error in %s::%S. Resetting.\\n The error 
...\" (buffer-name ...) epom err (if ... ...))) (format-string (if (or ... ...) 
format-string (prog1 ... ... (if (and (boundp 'org-batch-test) 
org-batch-test) (error \"%s\" (concat \"org-element--cache: \" format-string)) 
(display-warning 'org-element-cache (concat \"org-element--cache: \" 
format-string (org-element-cache-reset) (org-element--parse-to epom
  (setq element (if cached-only (if (and (org-element--cache-active-p) (or (not 
org-element--cache-sync-requests) (< epom (aref (car 
org-element--cache-sync-requests) 1 (progn (org-element--cache-find epom))) 
(condition-case err (org-element--parse-to epom) ((debug error) (let* 
((format-string (format \"Org parser error in %s::%S. Resetting.\\n The error 
...\" ... epom err ...)) (format-string (if ... format-string ...))) (if (and 
(boundp ...) org-batch-test) (error \"%s\" (concat \"org-element--cache: \" 
format-string)) (display-warning 'org-element-cache (concat 
\"org-element--cache: \" format-string (org-element-cache-reset) 
(org-element--parse-to epom)
  (let (element) (if (org-element--cache-active-p) (progn (if (not 
org-element--cache) (org-element-cache-reset) (if cached-only nil 
(org-element--cache-sync (current-buffer) epom) (setq element (if 
cached-only (if (and (org-element--cache-active-p) (or (not 
org-element--cache-sync-requests) (< epom (aref ... 1 (progn 
(org-element--cache-find epom))) (condition-case err (org-element--parse-to 
epom) ((debug error) (let* ((format-string ...) (format-string ...)) (if (and 
... org-batch-test) (error \"%s\" ...) (display-warning ... ...))) 
(org-element-cache-reset) (org-element--parse-to epom) (if (and