diff options
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 4 |
1 files changed, 1 insertions, 3 deletions
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." | |||
| 2063 | For this to work the best as possible you should call | 2062 | For 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 |
| 2065 | inferior python process is updated properly." | 2064 | inferior 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") |