From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Pankaj Jangid Newsgroups: gmane.emacs.devel Subject: Re: Behaviour of electric-pair-mode for single quotes Date: Tue, 31 Dec 2019 11:00:33 +0000 Organization: J4D Network Message-ID: <0100016f5b9d4c78-1bf45483-cbab-460f-abbf-4dfd7ddeb989-000000@email.amazonses.com> References: <0100016f569cbb69-e55643ac-d0c0-4684-a0c4-2886c2eaffd9-000000@email.amazonses.com> <83k16dn866.fsf@gnu.org> <0100016f57eb92bb-56e3818b-830d-464f-ac24-1329b2b4ef60-000000@email.amazonses.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="38495"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.60 (darwin) Cc: Eli Zaretskii , Emacs developers To: Noam Postavsky Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 31 12:00:54 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1imFGg-0009oY-DZ for ged-emacs-devel@m.gmane.org; Tue, 31 Dec 2019 12:00:54 +0100 Original-Received: from localhost ([::1]:41214 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1imFGe-0000z4-Fj for ged-emacs-devel@m.gmane.org; Tue, 31 Dec 2019 06:00:52 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52712) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <0100016f5b9d4c78-1bf45483-cbab-460f-abbf-4dfd7ddeb989-000000@amazonses.com>) id 1imFGO-0000yl-V5 for emacs-devel@gnu.org; Tue, 31 Dec 2019 06:00:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <0100016f5b9d4c78-1bf45483-cbab-460f-abbf-4dfd7ddeb989-000000@amazonses.com>) id 1imFGN-0004z2-PC for emacs-devel@gnu.org; Tue, 31 Dec 2019 06:00:36 -0500 Original-Received: from a8-30.smtp-out.amazonses.com ([54.240.8.30]:33616) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <0100016f5b9d4c78-1bf45483-cbab-460f-abbf-4dfd7ddeb989-000000@amazonses.com>) id 1imFGN-0004ux-GR; Tue, 31 Dec 2019 06:00:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=2i3gzvbgh3d3bo7yfqpvb5eru2hqctky; d=j4d.net; t=1577790033; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID:MIME-Version:Content-Type; bh=i4QSSEuNzImbtPBp0ExbnFOcpP5UNe9gxyI2yCyvlc0=; b=GxrnscYxZyIaYTZS0X872MiQ3nmenTXIOYdkzhY3mLPzcG+NNrPvsi8yzwODG2f4 OtI5Far/fITXdcDOFgvbftO7PKlZu8sVFULlJ9Qv0g7uFpl9coirtK+ccLyS2+r54Yw czpdRpPCWRgy2n9aUnXi6Ywy0xKnWZ2PTqPMRuAo= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=6gbrjpgwjskckoa6a5zn6fwqkn67xbtw; d=amazonses.com; t=1577790033; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID:MIME-Version:Content-Type:Feedback-ID; bh=i4QSSEuNzImbtPBp0ExbnFOcpP5UNe9gxyI2yCyvlc0=; b=iiX91xK5u7V58Kac156AAIE86NluroaNCpiJnDtN0E64bgNiE1VmEocSVQfmoUfS ekbLrMy4eOU7h81dQwCyaC5kr5rPO79nD+IVBi4xgcGlp//xm0fv5V3EYBSwBVs8Q6E GDsfYvCWwWzoPVYmsajLgchvNdOc/S/7BQN1ocHI= In-Reply-To: (Noam Postavsky's message of "Mon, 30 Dec 2019 12:59:32 -0500") X-SES-Outgoing: 2019.12.31-54.240.8.30 Feedback-ID: 1.us-east-1.txOs6RzEvQ8hCXYeLqJ8lVjB3e7LuQl8h6pdq90PbRQ=:AmazonSES X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 54.240.8.30 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:243802 Archived-At: >>>>> Noam Postavsky writes: >> But in python-mode, there is a strange behaviour. Steps: >> >> 1. ./src/emacs -Q >> 2. open a temporary python file (or switch mode) >> 3. Following is the behaviour with keystrokes >> >> Key Strokes Output >> ' '' >> '' ''' >> ''' '''''' >> '''' ''''''' >> >> Is this the expected behaviour? > > I think it's intentional, remember that python supports triple quotes > as a string delimiter. See longstring in > https://docs.python.org/3/reference/lexical_analysis.html#literals Understood that. But as I have specified above (look at 2nd and 4th row), there is imbalance in the output; total odd number of single-quotes in the output.