branch: externals/auctex
commit 9779fa472e50891666e23dde541e01c3cfc852ec
Author: Jim Diamond <[email protected]>
Commit: Arash Esbati <[email protected]>
Run `TeX-after-compilation-finished-functions' for plain TeX
* tex.el (TeX-TeX-sentinel): Run T-a-c-f-f hooks so that plain TeX
mode runs these functions, just like LaTeX-mode and ConTeXT-mode.
(Bug#80430)
---
tex.el | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/tex.el b/tex.el
index 513c527be1..b3db863c0c 100644
--- a/tex.el
+++ b/tex.el
@@ -8572,7 +8572,12 @@ errors or warnings to show."
(if (with-current-buffer TeX-command-buffer
(and TeX-PDF-mode (setq dvi2pdf (TeX-PDF-from-DVI))))
(setq TeX-command-next dvi2pdf)
- (setq TeX-command-next TeX-command-Show)))))
+ (setq TeX-command-next TeX-command-Show))))
+ (unless TeX-error-list
+ (run-hook-with-args 'TeX-after-compilation-finished-functions
+ (with-current-buffer TeX-command-buffer
+ (expand-file-name
+ (TeX-active-master (TeX-output-extension)))))))
(defun TeX-current-pages ()
"Return string indicating the number of pages formatted."