aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Steingold2016-05-18 09:56:17 -0400
committerSam Steingold2016-05-18 09:56:17 -0400
commitde45d9145db9983c27e0a0c44540c28ebeab5946 (patch)
treefc3f55a116b504d59c018a11b2dfb4bdfd83d6aa
parent07ebcf1bd964ae64446c52fb5481e919ed577358 (diff)
downloademacs-de45d9145db9983c27e0a0c44540c28ebeab5946.tar.gz
emacs-de45d9145db9983c27e0a0c44540c28ebeab5946.zip
python-describe-at-point: add and bind
-rw-r--r--lisp/progmodes/python.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 1e7a15d382a..343023f7a09 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -330,6 +330,7 @@
330 ;; Some util commands 330 ;; Some util commands
331 (define-key map "\C-c\C-v" 'python-check) 331 (define-key map "\C-c\C-v" 'python-check)
332 (define-key map "\C-c\C-f" 'python-eldoc-at-point) 332 (define-key map "\C-c\C-f" 'python-eldoc-at-point)
333 (define-key map "\C-c\C-d" 'python-describe-at-point)
333 ;; Utilities 334 ;; Utilities
334 (substitute-key-definition 'complete-symbol 'completion-at-point 335 (substitute-key-definition 'complete-symbol 'completion-at-point
335 map global-map) 336 map global-map)
@@ -4331,6 +4332,11 @@ Interactively, prompt for symbol."
4331 nil nil symbol)))) 4332 nil nil symbol))))
4332 (message (python-eldoc--get-doc-at-point symbol))) 4333 (message (python-eldoc--get-doc-at-point symbol)))
4333 4334
4335(defun python-describe-at-point (symbol process)
4336 (interactive (list (python-info-current-symbol)
4337 (python-shell-get-process)))
4338 (comint-send-string process (concat "help('" symbol "')\n")))
4339
4334 4340
4335;;; Hideshow 4341;;; Hideshow
4336 4342