]> git.eshelyaron.com Git - emacs.git/commitdiff
Add support for Python mode in info-lookup-symbol
authorLars Ingebrigtsen <larsi@gnus.org>
Thu, 12 Aug 2021 14:10:57 +0000 (16:10 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 12 Aug 2021 14:10:57 +0000 (16:10 +0200)
* lisp/info-look.el (:mode): Add support for Python mode
(bug#31405).

lisp/info-look.el

index fd6f8f15082de44502ff29964eb70919becab66d..72de0a4acb73b442fe960cd0656ac8c41487738f 100644 (file)
@@ -900,6 +900,10 @@ Return nil if there is nothing appropriate in the buffer near point."
              "^" "\\b"))
  :parse-rule "[$@%]?\\([_a-zA-Z0-9]+\\|[^a-zA-Z]\\)")
 
+(info-lookup-maybe-add-help
+ :mode 'python-mode
+ :doc-spec '(("(python)Index")))
+
 (info-lookup-maybe-add-help
  :mode 'cperl-mode
  :regexp "[$@%][^a-zA-Z]\\|\\$\\^[A-Z]\\|[$@%]?[a-zA-Z][_a-zA-Z0-9]*"