diff options
| author | Stefan Kangas | 2024-10-05 00:43:06 +0200 |
|---|---|---|
| committer | Stefan Kangas | 2024-10-05 00:43:06 +0200 |
| commit | e2b8e9d940d1bddff9c1d201f8ca6ea85f2af104 (patch) | |
| tree | 8c52cb29199644bacdbd5e8a61f2b79b1c91330e /lisp | |
| parent | 0cca6146dc8dc2dff648dfeb7b68b56c423d90ec (diff) | |
| download | emacs-e2b8e9d940d1bddff9c1d201f8ca6ea85f2af104.tar.gz emacs-e2b8e9d940d1bddff9c1d201f8ca6ea85f2af104.zip | |
Also use "Python Module Index" for info lookup
* lisp/info-look.el (:mode): Also search Python module index.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/info-look.el | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lisp/info-look.el b/lisp/info-look.el index 12c017fa4fd..3066bc1d75d 100644 --- a/lisp/info-look.el +++ b/lisp/info-look.el | |||
| @@ -976,14 +976,14 @@ Return nil if there is nothing appropriate in the buffer near point." | |||
| 976 | :doc-spec-function | 976 | :doc-spec-function |
| 977 | (lambda () | 977 | (lambda () |
| 978 | ;; Python is released annually (PEP 602). | 978 | ;; Python is released annually (PEP 602). |
| 979 | (let ((yy (- (decoded-time-year (decode-time (current-time))) 2000))) | 979 | (let* ((yy (- (decoded-time-year (decode-time (current-time))) 2000)) |
| 980 | (list | 980 | (manual (cl-loop for version from yy downto 7 |
| 981 | (list | 981 | for name = (format "python3.%d" version) |
| 982 | (cl-loop for version from yy downto 7 | 982 | if (Info-find-file name t) |
| 983 | for name = (format "python3.%d" version) | 983 | return name |
| 984 | if (Info-find-file name t) | 984 | finally return "python"))) |
| 985 | return (format "(%s)Index" name) | 985 | `((,(format "(%s)Index" manual)) |
| 986 | finally return "(python)Index")))))) | 986 | (,(format "(%s)Python Module Index" manual)))))) |
| 987 | 987 | ||
| 988 | (info-lookup-maybe-add-help | 988 | (info-lookup-maybe-add-help |
| 989 | :mode 'perl-mode | 989 | :mode 'perl-mode |