projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc87f75
)
Make shell use completion-at-point for autocompletion.
author
Fabián Ezequiel Gallina
<fgallina@cuca>
Thu, 17 May 2012 03:02:58 +0000
(
00:02
-0300)
committer
Fabián Ezequiel Gallina
<fgallina@gnu.org>
Thu, 17 May 2012 03:02:58 +0000
(
00:02
-0300)
lisp/progmodes/python.el
patch
|
blob
|
history
diff --git
a/lisp/progmodes/python.el
b/lisp/progmodes/python.el
index 78b541d8a0e76f0168b35a2cad4a4aae7daefe4b..af441460562683c2ddaab6e13ba6578be1f8fb5f 100644
(file)
--- a/
lisp/progmodes/python.el
+++ b/
lisp/progmodes/python.el
@@
-946,6
+946,10
@@
OUTPUT is a string with the contents of the buffer."
'python-pdbtrack-comint-output-filter-function)
(set (make-local-variable 'compilation-error-regexp-alist)
python-shell-compilation-regexp-alist)
+ (define-key inferior-python-mode-map [remap complete-symbol]
+ 'completion-at-point)
+ (add-hook 'completion-at-point-functions
+ 'python-shell-completion-complete-at-point nil 'local)
(compilation-shell-minor-mode 1))
(defun run-python (dedicated cmd)