Vadim Zaliva <l...@crocodile.org> writes:

> Arash, thanks for response. I do have auctex 14.0.6 installed via
> ELPA. I tried to reproce the problem starting from `emacs -Q` and it
> did not reproduce.

You're welcome.  The above essentially says that AUCTeX isn't the
culprit per se since it works with the standard setup.

> With my default setup it's still happening with the following debug
> trace:
>
> Debugger entered--Lisp error: (wrong-type-argument stringp nil)
>   LaTeX-indent-level-count()
>   LaTeX-indent-calculate-last(outer)
>   LaTeX-indent-calculate(outer)
>   LaTeX-indent-line()
>   indent-according-to-mode()
>   LaTeX-fill-region-as-para-do(3960 #<marker at 4117 in paper.tex> nil)
>   LaTeX-fill-region-as-paragraph(3960 4117 nil)
>   LaTeX-fill-paragraph(nil)
>   fill-paragraph(nil t)
>   funcall-interactively(fill-paragraph nil t)
>   command-execute(fill-paragraph)
>
> LaTeX-indent-level-count is defined `latex.el` from acutex
> package. Any thoughts what could be causing it and what I can try to
> diagnose it further?

Thanks for the debug info, I have no idea why this happens in your
setup, so you have to dig further.  Some general ideas are:

• With your setup and your .tex file opened, do 'M-x
  list-load-path-shadows RET' and see if you have a stale AUCTeX
  installation on your HD; maybe you search also your HD yourself
• With your setup, load your .tex file, instrument[1] the function
  `LaTeX-indent-level-count' and trigger the issue.  Watch the function
  running[2] and where it chokes, maybe that helps
• Bisect your packages you load with AUCTeX and see which one breaks
  with your .tex file
• Just be on the safe side, uninstall AUCTeX via package manager
  interface, restart Emacs, and install AUCTeX again via the package
  manager interface.

HTH.  Best, Arash

Footnotes:
[1]  
https://www.gnu.org/software/emacs/manual/html_node/elisp/Instrumenting.html
[2]  
https://www.gnu.org/software/emacs/manual/html_node/elisp/Edebug-Execution-Modes.html



Reply via email to