]> git.eshelyaron.com Git - emacs.git/commitdiff
Update info-lookup's support for 'latex-mode'
authorEli Zaretskii <eliz@gnu.org>
Sat, 7 Dec 2024 09:04:44 +0000 (11:04 +0200)
committerEshel Yaron <me@eshelyaron.com>
Mon, 9 Dec 2024 12:46:39 +0000 (13:46 +0100)
* 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

index 29253506373a0a70a4f1ac5b759d6e2b4734b8f0..18f66d92592c8e8a66cc3349b91ff7435a1645b0 100644 (file)
@@ -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 "[`'‘]" "\\({[^}]*}|\\[[^]]*\\]\\)*['’]")))