mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user