From e45481fad468fb332caed4bc5c2176e5de50ce87 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 7 Dec 2024 11:04:44 +0200 Subject: [PATCH] Update info-lookup's support for 'latex-mode' * lisp/info-look.el (latex-mode): Update URLs of LaTeX manuals and the corresponding names of the index nodes. (cherry picked from commit d185d901905e11cf9120f5cea680ae04eae2809f) --- lisp/info-look.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lisp/info-look.el b/lisp/info-look.el index 29253506373..18f66d92592 100644 --- a/lisp/info-look.el +++ b/lisp/info-look.el @@ -994,9 +994,11 @@ Return nil if there is nothing appropriate in the buffer near point." :mode 'latex-mode :regexp "\\\\\\([a-zA-Z]+\\|[^a-zA-Z]\\)" :doc-spec `((,(if (Info-find-file "latex2e" t) - ;; From http://home.gna.org/latexrefman - "(latex2e)Command Index" - "(latex)Command Index") + ;; From CTAN's https://ctan.org/pkg/latex2e-help-texinfo + ;; and https://puszcza.gnu.org.ua/projects/latexrefman/ + "(latex2e)Index" + ;; From https://savannah.nongnu.org/projects/latex-manual/ + "(latex-manual)Command Index") ;; \frac{NUM}{DEN} etc can have more than one {xx} argument. ;; \sqrt[ROOT]{num} and others can have square brackets. nil "[`'‘]" "\\({[^}]*}|\\[[^]]*\\]\\)*['’]"))) -- 2.39.5