Hello,

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.

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

Best,
Alex

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)
  outline-hide-sublevels(1)
  outline-cycle-buffer()
  #f(lambda () [bootstrap-version t] (outline-cycle-buffer) 
(outline-cycle-buffer))()
  run-hooks(change-major-mode-after-body-hook text-mode-hook TeX-mode-hook 
LaTeX-mode-hook)
  apply(run-hooks change-major-mode-after-body-hook (text-mode-hook 
TeX-mode-hook LaTeX-mode-hook))
  run-mode-hooks(LaTeX-mode-hook)
  LaTeX-mode()
  TeX-tex-mode()
  set-auto-mode-0(tex-mode nil)
  set-auto-mode--apply-alist((("\\.de\\'" . org-german-mode) ("\\.keymap\\'" . 
c-mode) ("\\.yml\\'" . yaml-mode) ("dbf\\'" . daselt-dirs-bindforms-mode) 
("daf\\'" . daselt-dirs-adviceforms-mode) ("dcl\\'" . 
daselt-dirs-constantlists-mode) ("dbl\\'" . daselt-dirs-bindlists-mode) 
("dal\\'" . daselt-dirs-advicelists-mode) ("del\\'" . 
daselt-dirs-lispcode-mode) ("\\.epub\\'" . nov-mode) 
("/home/alex/.password-store/.*\\.gpg\\'" . pass-view-mode) ("\\.pdf\\'" . 
pdf-view-mode) ("\\.\\(?:md\\|markdown\\|mkd\\|mdown\\|mkdn\\|mdwn\\)\\'" . 
markdown-mode) ("\\.djvu\\'" . djvu-init-mode) ("\\.asy$" . asy-mode) 
("/\\.ai\\.code\\.files/.*\\.org\\'" . ai-code-prompt-mode) 
("/guix/drvs/[[:alnum:]]\\{2\\}/[[:alnum:]]\\{30\\}-\\(?:[+._[:alnum:]-]+\\)\\.drv\\'"
 . guix-build-log-mode) ("/gnu/store/\\(?:[+._[:alnum:]-]+\\)\\.drv\\'" . 
guix-derivation-mode) ("/etc/profile\\'" . guix-env-var-mode) 
("/tmp/guix-build-\\(?:[+._[:alnum:]-]+\\)\\.drv-[[:digit:]]+/environment-variables\\'"
 . guix-env-var-mode) 
("/guix/profiles/system\\(?:[+._[:alnum:]-]+\\)*/\\(?:boot\\|parameters\\)\\'" 
. guix-scheme-mode) 
("/gnu/store/\\(?:[0-9a-df-np-sv-z]\\{7\\}\\([0-9a-df-np-sv-z]\\{25\\}\\)\\)-\\(?:activate\\|activate-service\\|boot\\|parameters\\|shepherd\\.conf\\|shepherd\\(?:[+._[:alnum:]-]+\\)\\.scm\\|\\(?:[+._[:alnum:]-]+\\)-builder\\)\\'"
 . guix-scheme-mode) ("\\.jl\\'" . julia-mode) ("\\.hva\\'" . LaTeX-mode) 
("/git-rebase-todo\\'" . git-rebase-mode) ("\\.nu\\'" . nushell-mode) 
("\\.\\(?:md\\|markdown\\|mkd\\|mdown\\|mkdn\\|mdwn\\|mdx\\)\\'" . 
markdown-mode) ("\\.\\(e?ya?\\|ra\\)ml\\'" . yaml-mode) 
("\\.gpg\\(~\\|\\.~[0-9]+~\\)?\\'" nil epa-file) ("\\.elc\\'" . 
elisp-byte-code-mode) ("\\.zst\\'" nil jka-compr) ("\\.dz\\'" nil jka-compr) 
("\\.xz\\'" nil jka-compr) ("\\.lzma\\'" nil jka-compr) ("\\.lz\\'" nil 
jka-compr) ("\\.g?z\\'" nil jka-compr) ("\\.bz2\\'" nil jka-compr) ("\\.Z\\'" 
nil jka-compr) ("\\.vr[hi]?\\'" . vera-mode) 
("\\(?:\\.\\(?:rbw?\\|ru\\|rake\\|thor\\|axlsx\\|jbuilder\\|rabl\\|gemspec\\|podspec\\)\\|/\\(?:Gem\\|Rake\\|Cap\\|Thor\\|Puppet\\|Berks\\|Brew\\|Fast\\|Vagrant\\|Guard\\|Pod\\)file\\)\\'"
 . ruby-mode) ("\\.re?st\\'" . rst-mode) ("/\\(?:Pipfile\\|\\.?flake8\\)\\'" . 
conf-mode) ("\\.py[iw]?\\'" . python-mode) ("\\.m\\'" . octave-maybe-mode) 
("\\.less\\'" . less-css-mode) ("\\.editorconfig\\'" . editorconfig-conf-mode) 
("\\.scss\\'" . scss-mode) ("\\.cs\\'" . csharp-mode) ("\\.awk\\'" . awk-mode) 
("\\.\\(u?lpc\\|pike\\|pmod\\(\\.in\\)?\\)\\'" . pike-mode) ...) nil nil)
  set-auto-mode()
  normal-mode(t)
  after-find-file(nil t)
  find-file-noselect-1(#<buffer main.tex<Closed geometric logic>> 
"~/proj/Closed geometric logic/main.tex" nil nil "~/proj/Closed geometric 
logic/main.tex" (3012108 35))
  find-file-noselect("/home/alex/proj/Closed geometric logic/main.tex" nil nil 
nil)
  find-file("/home/alex/proj/Closed geometric logic/main.tex")
  dired--find-file(find-file "/home/alex/proj/Closed geometric logic/main.tex")
  dired--find-possibly-alternative-file("/home/alex/proj/Closed geometric 
logic/main.tex")
  dired-find-file()
  eval((dired-find-file))
  icicle-pp-eval-expression((dired-find-file) nil)
  funcall-interactively(icicle-pp-eval-expression (dired-find-file) nil)
  command-execute(icicle-pp-eval-expression)




_______________________________________________
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