From: Lars Ingebrigtsen Date: Thu, 12 Aug 2021 14:10:57 +0000 (+0200) Subject: Add support for Python mode in info-lookup-symbol X-Git-Tag: emacs-28.0.90~1539 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0a611a5d7fa4e1186f98a2f98da2d000a87c8b9b;p=emacs.git Add support for Python mode in info-lookup-symbol * lisp/info-look.el (:mode): Add support for Python mode (bug#31405). --- diff --git a/lisp/info-look.el b/lisp/info-look.el index fd6f8f15082..72de0a4acb7 100644 --- a/lisp/info-look.el +++ b/lisp/info-look.el @@ -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]*"