unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#34582: [PATCH] Make python-shell-prompt-block-regexp match IPython prompt
@ 2019-02-19 21:57 Andrii Kolomoiets
  2019-04-17  0:10 ` Noam Postavsky
  0 siblings, 1 reply; 2+ messages in thread
From: Andrii Kolomoiets @ 2019-02-19 21:57 UTC (permalink / raw)
  To: 34582

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)





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#34582: [PATCH] Make python-shell-prompt-block-regexp match IPython prompt
  2019-02-19 21:57 bug#34582: [PATCH] Make python-shell-prompt-block-regexp match IPython prompt Andrii Kolomoiets
@ 2019-04-17  0:10 ` Noam Postavsky
  0 siblings, 0 replies; 2+ messages in thread
From: Noam Postavsky @ 2019-04-17  0:10 UTC (permalink / raw)
  To: Andrii Kolomoiets; +Cc: 34582

tags 34582 fixed
close 34582 27.1
quit

Andrii Kolomoiets <andreyk.mad@gmail.com> writes:

> 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.
>

> -(defcustom python-shell-prompt-block-regexp "\\.\\.\\. "
> +(defcustom python-shell-prompt-block-regexp "\\.\\.\\.:? "

Thanks, pushed to master.

6f8fe0d5ac 2019-04-16T20:09:34-04:00 "Make python-shell-prompt-block-regexp match IPython prompt"





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-04-17  0:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-19 21:57 bug#34582: [PATCH] Make python-shell-prompt-block-regexp match IPython prompt Andrii Kolomoiets
2019-04-17  0:10 ` Noam Postavsky

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).