Alexander Prähauser via bug-auctex via Bug reporting list for AUCTeX 
<[email protected]> writes:

> I like to have outline reduce LaTeX-buffer visibility to its headlines
> as a mode hook but this does not work.  Below is the backtrace, I
> think that the problem is that outline calls TeX-run-style-hooks early
> when the mode-hook is run and this results in the print-level not
> being set to nil somehow.

I can't reproduce this, I eval'ed this:

  (add-hook 'LaTeX-mode-hook (lambda ()
                               (outline-minor-mode)
                               (outline-hide-sublevels 1)))

and opened a random file, worked as expected.  Can you please show the
code you're using?  And possibly assemble a small .tex file to reproduce?

> Emacs version is GNU Emacs 30.2 (build 1, x86_64-unknown-linux-gnu,
> cairo version 1.18.4),

Which AUCTeX version are you using, and how did you install it?

And looking at the backtrace, there is:

> Debugger entered--Lisp error: (wrong-type-argument listp \...)
>   car(\...)
>   TeX-add-to-alist(LaTeX-provided-package-options (("fontsetup" "")
> ("babel" "russian" "english") ("geometry" "") ("cancel" "") ("accents"
> "") ("parskip" "") ("appendix" "toc") ("float" "") ("scalerel" "")
> ("relsize" "") \...))
>   #f(compiled-function () #<bytecode 0xd6247b829cebeed>)()
>   #f(compiled-function (hook) #<bytecode
> 0x17e2be3e5bfd2ebb>)([TeX-style-hook #f(compiled-function ()
> #<bytecode 0xd6247b829cebeed>) 1])
>   mapcar(#f(compiled-function (hook) #<bytecode 0x17e2be3e5bfd2ebb>)
> ([TeX-style-hook #f(compiled-function () #<bytecode
> 0xd6247b829cebeed>) 1]))
>   #f(compiled-function (style) #<bytecode 0xd248496b1b04b20>)("main")
>   mapcar(#f(compiled-function (style) #<bytecode 0xd248496b1b04b20>) ("main"))
>   TeX-run-style-hooks("main")
>   TeX-update-style()
>   LaTeX-largest-level()
>   LaTeX-outline-offset()
>   LaTeX-outline-level()
>   #f(compiled-function () #<bytecode -0x16db13a987085b2d>)()
>   outline-map-region(#f(compiled-function () #<bytecode -0x16db13a987085b2d>) 
> 1 252693)
>   #<subr outline-hide-sublevels>(1)
>   outline-hide-sublevels@fix-for-org-fold(#<subr outline-hide-sublevels> 1)
>   apply(outline-hide-sublevels@fix-for-org-fold #<subr 
> outline-hide-sublevels> 1)

Where is `outline-hide-sublevels@fix-for-org-fold' is coming from?  Can
you trigger the issue when you start Emacs as 'emacs -Q' and activate
AUCTeX in a clean state?

Best, Arash



_______________________________________________
bug-auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-auctex
  • bug#... Alexander Prähauser via bug-auctex via Bug reporting list for AUCTeX
    • ... Arash Esbati
      • ... Arash Esbati
        • ... Alexander Prähauser via bug-auctex via Bug reporting list for AUCTeX
          • ... Arash Esbati

Reply via email to