Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
cd16c5f1
Commit
cd16c5f1
authored
Sep 02, 2013
by
Fabián Ezequiel Gallina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* progmodes/python.el (python-shell-completion-get-completions):
Drop use of deleted `comint-last-prompt-overlay'.
parent
a892a94c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
6 deletions
+15
-6
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/progmodes/python.el
lisp/progmodes/python.el
+10
-6
No files found.
lisp/ChangeLog
View file @
cd16c5f1
2013-09-02 Fabián Ezequiel Gallina <fgallina@gnu.org>
* progmodes/python.el (python-shell-completion-get-completions):
Drop use of deleted `comint-last-prompt-overlay'.
2013-09-01 Glenn Morris <rgm@gnu.org>
* Makefile.in (setwins, setwins_almost, setwins_for_subdirs):
...
...
lisp/progmodes/python.el
View file @
cd16c5f1
...
...
@@ -2266,13 +2266,17 @@ and use the following as the value of this variable:
LINE is used to detect the context on how to complete given
INPUT."
(
let*
((
prompt
;; Get
the
last prompt f
or
the inferior process
;;
buffer. This is used for the completion code selection
;;
heuristic
.
;; Get last prompt
o
f the inferior process
buffer (this
;;
intentionally avoids using `comint-last-prompt' because
;;
of incompatibilities with Emacs 24.x)
.
(
with-current-buffer
(
process-buffer
process
)
(
buffer-substring-no-properties
(
overlay-start
comint-last-prompt-overlay
)
(
overlay-end
comint-last-prompt-overlay
))))
(
save-excursion
(
buffer-substring-no-properties
(
-
(
point
)
(
length
line
))
(
progn
(
re-search-backward
"^"
)
(
python-util-forward-comment
)
(
point
))))))
(
completion-context
;; Check whether a prompt matches a pdb string, an import
;; statement or just the standard prompt and use the
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment