From: Andrii Kolomoiets <andreyk.mad@gmail.com>
To: 34582@debbugs.gnu.org
Subject: bug#34582: [PATCH] Make python-shell-prompt-block-regexp match IPython prompt
Date: Tue, 19 Feb 2019 23:57:07 +0200 [thread overview]
Message-ID: <F546D304-FA63-407F-9A41-60CE15E2E920@gmail.com> (raw)
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)
next reply other threads:[~2019-02-19 21:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-19 21:57 Andrii Kolomoiets [this message]
2019-04-17 0:10 ` bug#34582: [PATCH] Make python-shell-prompt-block-regexp match IPython prompt Noam Postavsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=F546D304-FA63-407F-9A41-60CE15E2E920@gmail.com \
--to=andreyk.mad@gmail.com \
--cc=34582@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.