Please find attached a patch which fixes bug80430.
Jim
>From c2559f0bc00acfabec3dedcf28a74652ae237cb2 Mon Sep 17 00:00:00 2001
From: Jim Diamond <[email protected]>
Date: Tue, 24 Feb 2026 19:51:39 -0400
Subject: [PATCH] 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 | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/tex.el b/tex.el
index 513c527b..e83a9640 100644
--- a/tex.el
+++ b/tex.el
@@ -8572,7 +8572,13 @@ 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."
--
2.46.4
_______________________________________________
bug-auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-auctex