diff options
| author | Fabián Ezequiel Gallina | 2014-11-14 02:29:40 -0300 |
|---|---|---|
| committer | Fabián Ezequiel Gallina | 2014-11-14 02:29:40 -0300 |
| commit | 5d977b968c5d55470daa337df52ca2689d434e3c (patch) | |
| tree | 19a7d34773a1c9b35095425769f139f389e5c1f5 | |
| parent | f48827adbaa65fe1ef778beb7814d557ced12017 (diff) | |
| download | emacs-5d977b968c5d55470daa337df52ca2689d434e3c.tar.gz emacs-5d977b968c5d55470daa337df52ca2689d434e3c.zip | |
* lisp/progmodes/python.el (python-shell-completion-get-completions):
Fix previous merge.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/progmodes/python.el | 8 |
2 files changed, 7 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7bec543fd4d..9c673c861d9 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-11-14 Fabián Ezequiel Gallina <fgallina@gnu.org> | ||
| 2 | |||
| 3 | * progmodes/python.el (python-shell-completion-get-completions): | ||
| 4 | Fix previous merge. | ||
| 5 | |||
| 1 | 2014-11-14 Lars Magne Ingebrigtsen <larsi@gnus.org> | 6 | 2014-11-14 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 2 | 7 | ||
| 3 | * net/eww.el (eww-render): Don't set the title to the URL. | 8 | * net/eww.el (eww-render): Don't set the title to the URL. |
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index b230992fc98..dfefe837569 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -2886,13 +2886,9 @@ When IMPORT is non-nil takes precedence over INPUT for | |||
| 2886 | completion." | 2886 | completion." |
| 2887 | (with-current-buffer (process-buffer process) | 2887 | (with-current-buffer (process-buffer process) |
| 2888 | (let* ((prompt | 2888 | (let* ((prompt |
| 2889 | ;; Get last prompt of the inferior process buffer (this | 2889 | (let ((prompt-boundaries (python-util-comint-last-prompt))) |
| 2890 | ;; intentionally avoids using `comint-last-prompt' because | ||
| 2891 | ;; of incompatibilities with Emacs 24.x). | ||
| 2892 | (save-excursion | ||
| 2893 | (buffer-substring-no-properties | 2890 | (buffer-substring-no-properties |
| 2894 | (line-beginning-position) ;End of prompt. | 2891 | (car prompt-boundaries) (cdr prompt-boundaries)))) |
| 2895 | (re-search-backward "^")))) | ||
| 2896 | (completion-code | 2892 | (completion-code |
| 2897 | ;; Check whether a prompt matches a pdb string, an import | 2893 | ;; Check whether a prompt matches a pdb string, an import |
| 2898 | ;; statement or just the standard prompt and use the | 2894 | ;; statement or just the standard prompt and use the |