Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
de45d914
Commit
de45d914
authored
May 18, 2016
by
Sam Steingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
python-describe-at-point: add and bind
parent
07ebcf1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
lisp/progmodes/python.el
lisp/progmodes/python.el
+6
-0
No files found.
lisp/progmodes/python.el
View file @
de45d914
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment