From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.devel Subject: Re: Behaviour of electric-pair-mode for single quotes Date: Mon, 30 Dec 2019 12:59:32 -0500 Message-ID: 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; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="75817"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Eli Zaretskii , Emacs developers To: Pankaj Jangid Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 30 19:00:02 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 1ilzKh-000JXM-RW for ged-emacs-devel@m.gmane.org; Mon, 30 Dec 2019 18:59:59 +0100 Original-Received: from localhost ([::1]:35400 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ilzKg-0005a9-2V for ged-emacs-devel@m.gmane.org; Mon, 30 Dec 2019 12:59:58 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59553) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ilzKa-0005Zc-76 for emacs-devel@gnu.org; Mon, 30 Dec 2019 12:59:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ilzKZ-0000Ya-1k for emacs-devel@gnu.org; Mon, 30 Dec 2019 12:59:51 -0500 Original-Received: from mail-oi1-x233.google.com ([2607:f8b0:4864:20::233]:36170) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ilzKX-0000Ww-4y; Mon, 30 Dec 2019 12:59:49 -0500 Original-Received: by mail-oi1-x233.google.com with SMTP id c16so11278483oic.3; Mon, 30 Dec 2019 09:59:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ECNjTCu6cRwNgU1O4ByGobih05cjYctvP5jwGss8c6E=; b=gJa1rVXUrZSiyxUIRjN27TSjAeyFJQ+hSKeFO/YID4U0QJdf82ikozgsCmrfFdnRET s9REu4Q7B35GCzjNKDjaVwcqurO1CCJd+0uytNhWyQH+TPy1TxuBKRdsA3v5/9eEMjzK jQPhQVlmXHHD9099KWrdd1mObLp/vEhfMkIbyn4vL7GtpiXs3tKHZdBFI/2NOmQnFhae bmGaNN6CnPeh8qafwDarnvJTke4vqlToLst1b9AzUkt+R2va6k4iZR17C983LG/Vj7e7 W6f4HZifFDqCUIEN/MG1v2Wkl8k4GXVBtEGbQiZXsv4mmuYDbWNqhKfZS1RMJD8NFpp/ qOYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ECNjTCu6cRwNgU1O4ByGobih05cjYctvP5jwGss8c6E=; b=p9K4oTH+m4iQLt2EqVtCXDKxm3vXdpDV5d8l61O0fDih+hdqz7zx24dwaaqeW/jX/P q6WwDh2Jag0qSC7j3dUozQ+h3cXL+UO5gD0cRlriFX8sFugXuCEeuzQe/ODDfusq9/me tnW6TOWlOJzSVFazfgWBZokXpPzaMSLkJRWCf5UH0tyC6SOxlxyFqfo79ndo6xl2aeMV Z0DaHWB7+07YNWBxhWhN49o2HFNeuY4qf3GQbNGYOusodnSXS4v8fVRjldXKBcZk5xIo pkEK27pz2sHbBVm65k0zMt3U4FtwoT4DCt2Eu4epKmCtJ3kvAIz8pRPZtVL5vRj4/9o/ 4m4w== X-Gm-Message-State: APjAAAWDpUXp203fs6nX4QgHW49bLjGCN2XHjBikQWGtCrjHwHWM0iVI 8DMFEISYGhDz0TNBW4dlssx8EEwMMDxBqqrnKAk= X-Google-Smtp-Source: APXvYqwnh12MVMp3L01Nh9Q9mXJDYFSTS4RkUneMNWERZV6ayMQJ5IYiD6s/a4H2Mzm3/mNHPDTIYdbqgifOy7EPGmY= X-Received: by 2002:aca:534f:: with SMTP id h76mr113626oib.23.1577728788121; Mon, 30 Dec 2019 09:59:48 -0800 (PST) In-Reply-To: <0100016f57eb92bb-56e3818b-830d-464f-ac24-1329b2b4ef60-000000@email.amazonses.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::233 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:243784 Archived-At: On Mon, 30 Dec 2019 at 12:47, Pankaj Jangid wrote: > 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