]> git.eshelyaron.com Git - emacs.git/commitdiff
Make info-look try to use more recent Python manual
authorLars Ingebrigtsen <larsi@gnus.org>
Thu, 12 Aug 2021 15:20:35 +0000 (17:20 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 12 Aug 2021 15:20:35 +0000 (17:20 +0200)
* lisp/info-look.el: Use the Debian-installed python3.9 manual if
it exists (bug#31405).

lisp/info-look.el

index 72de0a4acb73b442fe960cd0656ac8c41487738f..72db4f0c4afe78ce69e4451da9545698e1125451 100644 (file)
@@ -902,7 +902,9 @@ Return nil if there is nothing appropriate in the buffer near point."
 
 (info-lookup-maybe-add-help
  :mode 'python-mode
- :doc-spec '(("(python)Index")))
+ :doc-spec `((,(if (Info-find-file "(python3.9)Index" t)
+                   "(python3.9)Index"
+                 "(python)Index"))))
 
 (info-lookup-maybe-add-help
  :mode 'cperl-mode