From 746e6074bfef851615d803805af1e3b2f2d4e7d2 Mon Sep 17 00:00:00 2001 From: Arash Esbati Date: Wed, 5 Jun 2024 21:37:43 +0200 Subject: [PATCH] Recognize new mode names provided by AUCTeX * lisp/ffap.el (ffap-alist, ffap-string-at-point-mode-alist): Add entries for mode names introduced in AUCTeX v14. (bug#71376). --- lisp/ffap.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lisp/ffap.el b/lisp/ffap.el index b2b681b7c44..f6d663a778b 100644 --- a/lisp/ffap.el +++ b/lisp/ffap.el @@ -753,6 +753,8 @@ ffap-alist ("\\.[fF]\\'" . ffap-fortran-mode) (tex-mode . ffap-tex-mode) ; search ffap-tex-path (latex-mode . ffap-latex-mode) ; similar + (TeX-mode . ffap-tex-mode) ; AUCTeX v14 counterpart + (LaTeX-mode . ffap-latex-mode) ; ditto ("\\.\\(tex\\|sty\\|doc\\|cls\\)\\'" . ffap-tex) ("\\.bib\\'" . ffap-bib) ; search ffap-bib-path ("\\`\\." . ffap-home) ; .emacs, .bashrc, .profile @@ -1065,6 +1067,9 @@ ffap-string-at-point-mode-alist ;; (La)TeX: don't allow braces (latex-mode "--:\\\\$+<>@-Z_[:alpha:]~*?" "<@" "@>;.,!:") (tex-mode "--:\\\\$+<>@-Z_[:alpha:]~*?" "<@" "@>;.,!:") + ;; AUCTeX v14 counterparts: + (LaTeX-mode "--:\\\\$+<>@-Z_[:alpha:]~*?" "<@" "@>;.,!:") + (TeX-mode "--:\\\\$+<>@-Z_[:alpha:]~*?" "<@" "@>;.,!:") ;; XML: don't allow angle brackets (xml-mode "--:\\\\${}+@-Z_[:alpha:]~*?#" "{<@" "@>;.,!:}") (nxml-mode "--:\\\\${}+@-Z_[:alpha:]~*?#" "{<@" "@>;.,!:}") -- 2.45.2