GNU bug report logs -
#34582
[PATCH] Make python-shell-prompt-block-regexp match IPython prompt
Previous Next
Reported by: Andrii Kolomoiets <andreyk.mad <at> gmail.com>
Date: Tue, 19 Feb 2019 22:12:02 UTC
Severity: normal
Tags: fixed, patch
Fixed in version 27.1
Done: Noam Postavsky <npostavs <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi,
This patch make python-shell-prompt-block-regexp match also IPython's
multiline prompt.
It allows to correctly disable non-native completions during multiline
statement in inferior-python-mode that runs IPython interpreter.
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 71b2a94c07..b1d6796f27 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -2011,7 +2011,7 @@ python-shell-prompt-regexp
It should not contain a caret (^) at the beginning."
:type 'string)
-(defcustom python-shell-prompt-block-regexp "\\.\\.\\. "
+(defcustom python-shell-prompt-block-regexp "\\.\\.\\.:? "
"Regular expression matching block input prompt of Python shell.
It should not contain a caret (^) at the beginning."
:type 'string)
This bug report was last modified 6 years and 38 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.