>From 5a428872af00984b9ecd0aed4b99d17141311126 Mon Sep 17 00:00:00 2001 From: Arash Esbati Date: Sat, 13 Feb 2016 19:48:01 +0100 Subject: [PATCH 2/3] Fix wrong usage of `TeX-auto-prepare-hook' * style/theorem.el (TeX-auto-cleanup-hook): * style/ntheorem.el (TeX-auto-cleanup-hook): * style/newfloat.el (TeX-auto-cleanup-hook): * style/amsthm.el (TeX-auto-cleanup-hook): Use `TeX-auto-cleanup-hook' instead of mistakenly used `TeX-auto-prepare-hook'. --- style/amsthm.el | 2 +- style/newfloat.el | 2 +- style/ntheorem.el | 2 +- style/theorem.el | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/style/amsthm.el b/style/amsthm.el index 5c83724..5deb9e3 100644 --- a/style/amsthm.el +++ b/style/amsthm.el @@ -119,7 +119,7 @@ make them available as new environments. Update newthmstyle))) (add-hook 'TeX-auto-prepare-hook #'LaTeX-amsthm-auto-prepare t) -(add-hook 'TeX-auto-prepare-hook #'LaTeX-amsthm-auto-cleanup t) +(add-hook 'TeX-auto-cleanup-hook #'LaTeX-amsthm-auto-cleanup t) (add-hook 'TeX-update-style-hook #'TeX-auto-parse t) (TeX-add-style-hook diff --git a/style/newfloat.el b/style/newfloat.el index 4cde32e..e84fad7 100644 --- a/style/newfloat.el +++ b/style/newfloat.el @@ -134,7 +134,7 @@ If `caption.el' is loaded, add the new floating environment to (concat "listof" flt "es")))))) (add-hook 'TeX-auto-prepare-hook #'LaTeX-newfloat-auto-prepare t) -(add-hook 'TeX-auto-prepare-hook #'LaTeX-newfloat-auto-cleanup t) +(add-hook 'TeX-auto-cleanup-hook #'LaTeX-newfloat-auto-cleanup t) (add-hook 'TeX-update-style-hook #'TeX-auto-parse t) (TeX-add-style-hook diff --git a/style/ntheorem.el b/style/ntheorem.el index 630c09b..068f40d 100644 --- a/style/ntheorem.el +++ b/style/ntheorem.el @@ -142,7 +142,7 @@ make them available as new environments. Update (TeX-add-symbols (concat nthm "name")))) (add-hook 'TeX-auto-prepare-hook #'LaTeX-ntheorem-auto-prepare t) -(add-hook 'TeX-auto-prepare-hook #'LaTeX-ntheorem-auto-cleanup t) +(add-hook 'TeX-auto-cleanup-hook #'LaTeX-ntheorem-auto-cleanup t) (add-hook 'TeX-update-style-hook #'TeX-auto-parse t) (TeX-add-style-hook diff --git a/style/theorem.el b/style/theorem.el index d8466f1..8b4101e 100644 --- a/style/theorem.el +++ b/style/theorem.el @@ -111,7 +111,7 @@ make them available as new environments." (LaTeX-add-environments (list newthm 'LaTeX-theorem-env-label)))) (add-hook 'TeX-auto-prepare-hook #'LaTeX-theorem-auto-prepare t) -(add-hook 'TeX-auto-prepare-hook #'LaTeX-theorem-auto-cleanup t) +(add-hook 'TeX-auto-cleanup-hook #'LaTeX-theorem-auto-cleanup t) (add-hook 'TeX-update-style-hook #'TeX-auto-parse t) (TeX-add-style-hook -- 2.7.0