emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 4e4b76b: Make info-look try to use more recent Python manual


From: Lars Ingebrigtsen
Subject: master 4e4b76b: Make info-look try to use more recent Python manual
Date: Thu, 12 Aug 2021 11:20:43 -0400 (EDT)

branch: master
commit 4e4b76b094105d704933a94c95c2d4c0af6549b9
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    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 72de0a4..72db4f0 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]