aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorkobarity2022-10-16 11:15:22 +0200
committerLars Ingebrigtsen2022-10-16 11:15:30 +0200
commit45aabe6edae8d841a8985853394baddad4a1949e (patch)
treee98145448625d42ba0263f1d06e66f5d11cffad2 /lisp/progmodes/python.el
parent07222447b6c9e75b713fe3b3954952fbb0e40c71 (diff)
downloademacs-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.el5
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