branch: elpa
commit 15ebec9659d45623098a168410d271cd39550a96
Author: Tassilo Horn <[email protected]>
Commit: Tassilo Horn <[email protected]>
Rename TeX-after-compilation-finished-hook to -functions
* tex-buf.el (TeX-after-compilation-finished-functions): Rename from
-hook to -functions.
(TeX-LaTeX-sentinel): Adapt.
* context.el (TeX-ConTeXt-sentinel): Adapt.
---
context.el | 2 +-
tex-buf.el | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/context.el b/context.el
index 8d892f8..42d1594 100644
--- a/context.el
+++ b/context.el
@@ -602,7 +602,7 @@ inserted after the sectioning command."
(TeX-current-pages)))
(setq TeX-command-next TeX-command-default)))))
(unless TeX-error-list
- (run-hook-with-args 'TeX-after-compilation-finished-hook
+ (run-hook-with-args 'TeX-after-compilation-finished-functions
(with-current-buffer TeX-command-buffer
(expand-file-name
(TeX-active-master (TeX-output-extension)))))))
diff --git a/tex-buf.el b/tex-buf.el
index 2f6da70..2859b40 100644
--- a/tex-buf.el
+++ b/tex-buf.el
@@ -889,7 +889,7 @@ the current style options."
;;; Command Hooks
-(defvar TeX-after-compilation-finished-hook nil
+(defvar TeX-after-compilation-finished-functions nil
"Hook being run after TeX/LaTeX/ConTeXt finished successfully.
The functions in this hook are run with the DVI/PDF output file
given as argument. Using this hook can be useful for updating
@@ -899,13 +899,13 @@ If you use an emacs-internal viewer such as
`doc-view-mode' or
`pdf-view-mode', add `TeX-revert-document-buffer' to this hook.")
(make-obsolete-variable 'TeX-after-TeX-LaTeX-command-finished-hook
- 'TeX-after-compilation-finished-hook
+ 'TeX-after-compilation-finished-functions
"11.89")
(defun TeX-revert-document-buffer (file)
"Revert the buffer visiting FILE.
This function is intended to be used in
-`TeX-after-compilation-finished-hook' for users that view
+`TeX-after-compilation-finished-functions' for users that view
their compiled document with an emacs viewer such as
`doc-view-mode' or `pdf-view-mode'. (Note that this function
just calls `revert-buffer' in the respective buffer and thus
@@ -1534,7 +1534,7 @@ Rerun to get mark in right position\\." nil t)
(push (cons idx-file t) LaTeX-idx-changed-alist)))
(unless TeX-error-list
- (run-hook-with-args 'TeX-after-compilation-finished-hook
+ (run-hook-with-args 'TeX-after-compilation-finished-functions
(with-current-buffer TeX-command-buffer
(expand-file-name
(TeX-active-master (TeX-output-extension)))))))