From: Lars Ingebrigtsen Date: Thu, 12 Aug 2021 15:20:35 +0000 (+0200) Subject: Make info-look try to use more recent Python manual X-Git-Tag: emacs-28.0.90~1534 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4e4b76b094105d704933a94c95c2d4c0af6549b9;p=emacs.git Make info-look try to use more recent Python manual * lisp/info-look.el: Use the Debian-installed python3.9 manual if it exists (bug#31405). --- diff --git a/lisp/info-look.el b/lisp/info-look.el index 72de0a4acb7..72db4f0c4af 100644 --- a/lisp/info-look.el +++ b/lisp/info-look.el @@ -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