Please keep the bug tracker in Cc when responding by using the Reply to
All function, thanks.

Alexander Prähauser <[email protected]> writes:

> "Arash Esbati" <[email protected]> writes:
>
> I can reproduce it without an init, but not with -Q. I've attached a
> tex-file I use for testing, which just contains a tikz-cd diagram, and
> an elisp-file that when I eval it opens the buffer in a way where the
> syntax-highlighting does not set in, so I'm taking it the mode-loading
> fails, although I don't get an error message. You'll have to adjust the
> load path if you try running it though.

You do this in your code:

  (add-hook 'LaTeX-mode-hook #'TeX-fold-buffer -90)

The function `TeX-fold-buffer' isn't defined until you actually load the
library.  This is done once the command `TeX-fold-mode' is called, so
you have to do:

  (add-hook 'LaTeX-mode-hook #'TeX-fold-mode -90)

That said, the following works for me with the .tex file you sent:

(progn
  (require 'org-compat)
  (add-hook 'LaTeX-mode-hook #'TeX-fold-mode -90)
  (add-hook 'LaTeX-mode-hook (lambda ()
                               (outline-minor-mode)
                               (outline-hide-sublevels 1))
            98))

Do you want to give a roll?

I'm also attaching the files you sent in case others want to have a look.

Best, Arash

Attachment: bug-test.el
Description: application/emacs-lisp

Attachment: test.tex
Description: TeX document

_______________________________________________
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