branch: externals/auctex commit 16ef09b18ca2d652e38cbdeb717c737394bf7ce7 Author: Ikumi Keita <ik...@ikumi.que.jp> Commit: Ikumi Keita <ik...@ikumi.que.jp>
Override built-in tex-mode * tex-site.el.in (TeX-modes-set): Specify `depth' to override the :around advice given to `tex-mode' in tex-mode.el. --- tex-site.el.in | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tex-site.el.in b/tex-site.el.in index e088251efd..b9a73bd9a2 100644 --- a/tex-site.el.in +++ b/tex-site.el.in @@ -107,7 +107,12 @@ functions into the respective function cell of the mode." (setq elt (car (pop list))) (let ((dst (intern (concat "TeX-" (symbol-name elt))))) (if (memq elt value) - (advice-add elt :override dst) + (advice-add elt :override dst + ;; COMPATIBILITY for Emacs 28.[12] + ;; Give it higher precedence than the :around + ;; advice given to `tex-mode' in tex-mode.el. + ;; <URL:https://lists.gnu.org/r/auctex-devel/2022-09/msg00050.html> + '((depth . -10))) (advice-remove elt dst)))))) (defcustom TeX-modes