From: Eli Zaretskii Date: Sat, 7 Dec 2024 09:04:44 +0000 (+0200) Subject: Update info-lookup's support for 'latex-mode' X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e45481fad468fb332caed4bc5c2176e5de50ce87;p=emacs.git 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) --- 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 "[`'‘]" "\\({[^}]*}|\\[[^]]*\\]\\)*['’]")))