revert: fix(latex): run after-compilation-finished hook after Tex-Tex-sentinel

This hack is no longer necessary; it was addressed upstream.

Revert: 79684ade71
Ref: emacsmirror/auctex@650d0f3297
Ref: #8051
This commit is contained in:
Henrik Lissner
2025-04-06 18:34:23 -04:00
parent 3a8e9a165f
commit b840f90252

View File

@ -126,18 +126,7 @@ okular and pdf-tools.")
:desc "View" "v" #'TeX-view
:desc "Compile" "c" #'+latex/compile
:desc "Run all" "a" #'TeX-command-run-all
:desc "Run a command" "m" #'TeX-command-master)
;; HACK: The standard LaTeXMk command uses `TeX-run-format', which doesn't
;; trigger `TeX-after-compilation-finished-functions', so swap it out for
;; `TeX-run-TeX', which does.
(defadvice! +latex--run-after-compilation-finished-functions-a (&rest args)
:after #'TeX-TeX-sentinel
(unless (TeX-error-report-has-errors-p)
(run-hook-with-args 'TeX-after-compilation-finished-functions
(with-current-buffer TeX-command-buffer
(expand-file-name
(TeX-active-master (TeX-output-extension))))))))
:desc "Run a command" "m" #'TeX-command-master))
(use-package! tex-fold