emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master de45d91: python-describe-at-point: add and bind


From: Sam Steingold
Subject: [Emacs-diffs] master de45d91: python-describe-at-point: add and bind
Date: Wed, 18 May 2016 13:56:43 +0000 (UTC)

branch: master
commit de45d9145db9983c27e0a0c44540c28ebeab5946
Author: Sam Steingold <address@hidden>
Commit: Sam Steingold <address@hidden>

    python-describe-at-point: add and bind
---
 lisp/progmodes/python.el |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 1e7a15d..343023f 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -330,6 +330,7 @@
     ;; Some util commands
     (define-key map "\C-c\C-v" 'python-check)
     (define-key map "\C-c\C-f" 'python-eldoc-at-point)
+    (define-key map "\C-c\C-d" 'python-describe-at-point)
     ;; Utilities
     (substitute-key-definition 'complete-symbol 'completion-at-point
                                map global-map)
@@ -4331,6 +4332,11 @@ Interactively, prompt for symbol."
                         nil nil symbol))))
   (message (python-eldoc--get-doc-at-point symbol)))
 
+(defun python-describe-at-point (symbol process)
+  (interactive (list (python-info-current-symbol)
+                     (python-shell-get-process)))
+  (comint-send-string process (concat "help('" symbol "')\n")))
+
 
 ;;; Hideshow
 



reply via email to

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