From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Andrii Kolomoiets Newsgroups: gmane.emacs.bugs Subject: bug#34582: [PATCH] Make python-shell-prompt-block-regexp match IPython prompt Date: Tue, 19 Feb 2019 23:57:07 +0200 Message-ID: Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="210474"; mail-complaints-to="usenet@blaine.gmane.org" To: 34582@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 19 23:14:51 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gwDf9-000se2-0v for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Feb 2019 23:14:51 +0100 Original-Received: from localhost ([127.0.0.1]:55684 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gwDf7-0004H0-UY for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Feb 2019 17:14:49 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:42540) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gwDcV-0001yl-Kg for bug-gnu-emacs@gnu.org; Tue, 19 Feb 2019 17:12:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gwDcT-0006zf-LL for bug-gnu-emacs@gnu.org; Tue, 19 Feb 2019 17:12:07 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56047) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gwDcR-0006yq-6p for bug-gnu-emacs@gnu.org; Tue, 19 Feb 2019 17:12:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gwDcQ-0000WS-Fn for bug-gnu-emacs@gnu.org; Tue, 19 Feb 2019 17:12:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andrii Kolomoiets Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 Feb 2019 22:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 34582 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15506142801949 (code B ref -1); Tue, 19 Feb 2019 22:12:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 19 Feb 2019 22:11:20 +0000 Original-Received: from localhost ([127.0.0.1]:56811 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gwDbj-0000VN-Fl for submit@debbugs.gnu.org; Tue, 19 Feb 2019 17:11:19 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56118) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gwDbf-0000V7-Pt for submit@debbugs.gnu.org; Tue, 19 Feb 2019 17:11:17 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:42036) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gwDba-0006TI-Do for submit@debbugs.gnu.org; Tue, 19 Feb 2019 17:11:10 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41787) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gwDbZ-0000TE-FP for bug-gnu-emacs@gnu.org; Tue, 19 Feb 2019 17:11:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gwDO4-0007hl-8w for bug-gnu-emacs@gnu.org; Tue, 19 Feb 2019 16:57:12 -0500 Original-Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]:44321) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gwDO3-0007hI-UO for bug-gnu-emacs@gnu.org; Tue, 19 Feb 2019 16:57:12 -0500 Original-Received: by mail-wr1-x442.google.com with SMTP id w2so9050326wrt.11 for ; Tue, 19 Feb 2019 13:57:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=FBGmTlWF506htP2/o38G98FtbI9hRkSC+XK+I8nRS9Q=; b=enufjFmXG4X1Z2zGbCKmh2cZ6jpZZr4R6LPT9iqeiGGSVK206zZIywOIsYacxRZ3xQ AYhQBSzoHyWYrFSMopJ1KSgaNNyemoiJpQd9sLgT/lnko/86CqaKjOwNTePGIgqREXAH Ee04a7Egd7U7Pmb9ltPen9LSPzD0ygBndDvD7vlM2h1fnK3OUOF0hsooZTMfm9fP6+9B STI4w7MeJ+pxHD8Abg8NTXlTkRhFfw849MFaGtfdWQiZh7RY7mV5wPhXmQKjdkD5e1nQ 4tDLPNuDIBJJBiFjq93uE3sBnN6asvl+SfU92+XvjsKTqWOwiXoV6vwXHx3SyrjseL2u WH7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=FBGmTlWF506htP2/o38G98FtbI9hRkSC+XK+I8nRS9Q=; b=tZ/Lrm6i2XFgnfT/rAhhB+lrfBazsq9qUM70CJcV0R/F8SP+XQqrEzybEbWB2/B3so hL2vjFZbz+gPro13rJqMb+q9qr3JAMGZm4DKObiv6OfW+PLokIXvwT0MutXw4/+8MVbB NBzPDDY3MK9nM13Z49nkhz0h6EDmsBfGQEOioppFKGdGRd1CrHBWAFLjC0ZeI0R4l0/Z n3MhuaUKVJTG0UYsrPxs6Oj6HGG0DiLHpG8hBJtZ6Q/IcjSFCH5UAXV+yY5mPy427Grq V5Wppuq03uAlhPqZUHx+jJeid9U5WrOyQ+AQultWNrdzGZo4GeY/TRFUEOadtjC+UjPf RsdA== X-Gm-Message-State: AHQUAuYg/n/zcCMXBP9RroG2WBJwoIgqdoU5dakoOIo7suW6saygvOlt jw6tUTej3Hrm7aBzJInDF32Qgy3s X-Google-Smtp-Source: AHgI3IaoVOMjxtwcNB4nAF0kVC4nv7iXmMoxF0+3r0RRaDIRZ8Yi5IujEECxOwSmAsmbrl5ZSlr0lQ== X-Received: by 2002:a5d:6a8e:: with SMTP id s14mr10305539wru.31.1550613429589; Tue, 19 Feb 2019 13:57:09 -0800 (PST) Original-Received: from [192.168.0.103] ([91.206.110.130]) by smtp.gmail.com with ESMTPSA id v4sm4558919wme.6.2019.02.19.13.57.08 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Feb 2019 13:57:08 -0800 (PST) X-Mailer: Apple Mail (2.3445.102.3) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:155578 Archived-At: 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)