aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabián Ezequiel Gallina2012-07-27 13:42:19 -0300
committerFabián Ezequiel Gallina2012-07-27 13:42:19 -0300
commitaa81af715cbca7c85ffe38dd7eebef179be369d7 (patch)
tree8a4a0095ea0e32c044d3fef95fa9870b7f092e8f
parente827b1eb40c21fc9b3f1398cd413c8d0c3daa903 (diff)
downloademacs-aa81af715cbca7c85ffe38dd7eebef179be369d7.tar.gz
emacs-aa81af715cbca7c85ffe38dd7eebef179be369d7.zip
Consistent completion in inferior python with emacs -nw.
* progmodes/python.el (inferior-python-mode): replace "<tab>" binding in inferior-python-mode-map with "\t". (python-shell-completion-complete-at-point) (python-completion-complete-at-point): Remove interactive spec.
-rw-r--r--lisp/ChangeLog8
-rw-r--r--lisp/progmodes/python.el4
2 files changed, 9 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 5bd1056f560..33d59c200c1 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,11 @@
12012-07-27 Fabián Ezequiel Gallina <fgallina@cuca>
2
3 Consistent completion in inferior python with emacs -nw.
4 * progmodes/python.el (inferior-python-mode): replace "<tab>"
5 binding in inferior-python-mode-map with "\t".
6 (python-shell-completion-complete-at-point)
7 (python-completion-complete-at-point): Remove interactive spec.
8
12012-07-27 Jay Belanger <jay.p.belanger@gmail.com> 92012-07-27 Jay Belanger <jay.p.belanger@gmail.com>
2 10
3 * calc/calccomp.el (math-compose-expr): Undo previous change. 11 * calc/calccomp.el (math-compose-expr): Undo previous change.
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index ab364a5318a..4617ecc420d 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -1545,7 +1545,7 @@ variable.
1545 'python-shell-completion-complete-at-point nil 'local) 1545 'python-shell-completion-complete-at-point nil 'local)
1546 (add-to-list (make-local-variable 'comint-dynamic-complete-functions) 1546 (add-to-list (make-local-variable 'comint-dynamic-complete-functions)
1547 'python-shell-completion-complete-at-point) 1547 'python-shell-completion-complete-at-point)
1548 (define-key inferior-python-mode-map (kbd "<tab>") 1548 (define-key inferior-python-mode-map "\t"
1549 'python-shell-completion-complete-or-indent) 1549 'python-shell-completion-complete-or-indent)
1550 (when python-shell-enable-font-lock 1550 (when python-shell-enable-font-lock
1551 (set (make-local-variable 'font-lock-defaults) 1551 (set (make-local-variable 'font-lock-defaults)
@@ -1948,7 +1948,6 @@ completions on the current context."
1948 1948
1949(defun python-shell-completion-complete-at-point () 1949(defun python-shell-completion-complete-at-point ()
1950 "Perform completion at point in inferior Python process." 1950 "Perform completion at point in inferior Python process."
1951 (interactive)
1952 (and comint-last-prompt-overlay 1951 (and comint-last-prompt-overlay
1953 (> (point-marker) (overlay-end comint-last-prompt-overlay)) 1952 (> (point-marker) (overlay-end comint-last-prompt-overlay))
1954 (python-shell-completion--do-completion-at-point 1953 (python-shell-completion--do-completion-at-point
@@ -2063,7 +2062,6 @@ Argument OUTPUT is a string with the output from the comint process."
2063For this to work the best as possible you should call 2062For this to work the best as possible you should call
2064`python-shell-send-buffer' from time to time so context in 2063`python-shell-send-buffer' from time to time so context in
2065inferior python process is updated properly." 2064inferior python process is updated properly."
2066 (interactive)
2067 (let ((process (python-shell-get-process))) 2065 (let ((process (python-shell-get-process)))
2068 (if (not process) 2066 (if (not process)
2069 (error "Completion needs an inferior Python process running") 2067 (error "Completion needs an inferior Python process running")