GNU bug report logs - #34582
[PATCH] Make python-shell-prompt-block-regexp match IPython prompt

Previous Next

Package: emacs;

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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 34582 in the body.
You can then email your comments to 34582 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#34582; Package emacs. (Tue, 19 Feb 2019 22:12:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Andrii Kolomoiets <andreyk.mad <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 19 Feb 2019 22:12:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Andrii Kolomoiets <andreyk.mad <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: [PATCH] Make python-shell-prompt-block-regexp match IPython prompt
Date: Tue, 19 Feb 2019 23:57:07 +0200
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)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#34582; Package emacs. (Wed, 17 Apr 2019 00:12:01 GMT) Full text and rfc822 format available.

Message #8 received at 34582 <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> gmail.com>
To: Andrii Kolomoiets <andreyk.mad <at> gmail.com>
Cc: 34582 <at> debbugs.gnu.org
Subject: Re: bug#34582: [PATCH] Make python-shell-prompt-block-regexp match
 IPython prompt
Date: Tue, 16 Apr 2019 20:10:52 -0400
tags 34582 fixed
close 34582 27.1
quit

Andrii Kolomoiets <andreyk.mad <at> 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"




Added tag(s) fixed. Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Wed, 17 Apr 2019 00:12:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 27.1, send any further explanations to 34582 <at> debbugs.gnu.org and Andrii Kolomoiets <andreyk.mad <at> gmail.com> Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Wed, 17 Apr 2019 00:12:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 15 May 2019 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 341 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.