all messages for Emacs-related lists mirrored at yhetil.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

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