From 4e4b76b094105d704933a94c95c2d4c0af6549b9 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Thu, 12 Aug 2021 17:20:35 +0200 Subject: [PATCH] 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). --- lisp/info-look.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.5