From: Fabián Ezequiel Gallina Date: Thu, 17 May 2012 03:02:58 +0000 (-0300) Subject: Make shell use completion-at-point for autocompletion. X-Git-Tag: emacs-24.2.90~1199^2~615 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ed0eb594649dbdfbf130c2b0d4e6297226258f87;p=emacs.git Make shell use completion-at-point for autocompletion. --- diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 78b541d8a0e..af441460562 100644 --- 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)