bug-auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#21188: Preview installed from the package manager changes LaTeX-mode


From: Joseph Mingrone
Subject: bug#21188: Preview installed from the package manager changes LaTeX-mode-hook
Date: Wed, 05 Aug 2015 14:12:13 -0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (berkeley-unix)

Tassilo Horn <address@hidden> writes:
> This "wiping" is strange.  `LaTeX-preview-setup' removes itself from
> `LaTeX-mode-hook' and adds `preview-mode-setup' instead.  However, this
> should not affect other functions which also happen to be added to
> `LaTeX-mode-hook'.

If LaTeX-mode-hook is customized so that the customizations aren't
applied immediately, then the value of LaTeX-mode-hook is not set before
the line (add-hook 'LaTeX-mode-hook #'LaTeX-preview-setup) in
auctex-autoloads.el and after that call, regardless of the contents of
LaTeX-preview-setup, the customizations are not applied.  However, if I
comment out the line (add-hook 'LaTeX-mode-hook #'LaTeX-preview-setup)
inside auctex-autoloads.el then the value customizations are applied.

> I just tried with emacs 24.5 and ELPA AUCTeX 11.88.6.

I should have mentioned that I'm running 24.5.1 with the same AUCTeX.

Joseph

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]