* lisp/progmodes/python.el (python-shell-completion-get-completions):
Fix previous merge.
This commit is contained in:
parent
f48827adba
commit
5d977b968c
2 changed files with 7 additions and 6 deletions
|
@ -2886,13 +2886,9 @@ When IMPORT is non-nil takes precedence over INPUT for
|
|||
completion."
|
||||
(with-current-buffer (process-buffer process)
|
||||
(let* ((prompt
|
||||
;; Get last prompt of the inferior process buffer (this
|
||||
;; intentionally avoids using `comint-last-prompt' because
|
||||
;; of incompatibilities with Emacs 24.x).
|
||||
(save-excursion
|
||||
(let ((prompt-boundaries (python-util-comint-last-prompt)))
|
||||
(buffer-substring-no-properties
|
||||
(line-beginning-position) ;End of prompt.
|
||||
(re-search-backward "^"))))
|
||||
(car prompt-boundaries) (cdr prompt-boundaries))))
|
||||
(completion-code
|
||||
;; Check whether a prompt matches a pdb string, an import
|
||||
;; statement or just the standard prompt and use the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue