diff options
| author | kobarity | 2022-10-16 11:15:22 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2022-10-16 11:15:30 +0200 |
| commit | 45aabe6edae8d841a8985853394baddad4a1949e (patch) | |
| tree | e98145448625d42ba0263f1d06e66f5d11cffad2 /lisp/progmodes/python.el | |
| parent | 07222447b6c9e75b713fe3b3954952fbb0e40c71 (diff) | |
| download | emacs-45aabe6edae8d841a8985853394baddad4a1949e.tar.gz emacs-45aabe6edae8d841a8985853394baddad4a1949e.zip | |
Disable completion when PDB is active in Python Shell buffer
* lisp/progmodes/python.el (python-shell-completion-at-point): Disable
completion in Python buffer when PDB is active in Python Shell buffer.
* test/lisp/progmodes/python-tests.el (python-shell-completion-pdb-1):
New test (bug#58562).
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 0de76b0bde3..50f1e6752e4 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -4102,7 +4102,10 @@ using that one instead of current buffer's process." | |||
| 4102 | (with-current-buffer (process-buffer process) | 4102 | (with-current-buffer (process-buffer process) |
| 4103 | (cond ((or (null prompt) | 4103 | (cond ((or (null prompt) |
| 4104 | (and is-shell-buffer | 4104 | (and is-shell-buffer |
| 4105 | (< (point) (cdr prompt-boundaries)))) | 4105 | (< (point) (cdr prompt-boundaries))) |
| 4106 | (and (not is-shell-buffer) | ||
| 4107 | (string-match-p | ||
| 4108 | python-shell-prompt-pdb-regexp prompt))) | ||
| 4106 | #'ignore) | 4109 | #'ignore) |
| 4107 | ((or (not python-shell-completion-native-enable) | 4110 | ((or (not python-shell-completion-native-enable) |
| 4108 | ;; Even if native completion is enabled, for | 4111 | ;; Even if native completion is enabled, for |