unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Pankaj Jangid <p4j@j4d.net>
To: Noam Postavsky <npostavs@gmail.com>
Cc: Eli Zaretskii <eliz@gnu.org>, Emacs developers <emacs-devel@gnu.org>
Subject: Re: Behaviour of electric-pair-mode for single quotes
Date: Tue, 31 Dec 2019 11:00:33 +0000	[thread overview]
Message-ID: <0100016f5b9d4c78-1bf45483-cbab-460f-abbf-4dfd7ddeb989-000000@email.amazonses.com> (raw)
In-Reply-To: <CAM-tV-9gQTksmXEx=eb2dWtUxWMN116WTM7P+j1FgEJ5yGcaSg@mail.gmail.com> (Noam Postavsky's message of "Mon, 30 Dec 2019 12:59:32 -0500")

>>>>> Noam Postavsky <npostavs@gmail.com> 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
>> '              '' <point before 2nd tick>
>> ''             ''' <point before 3rd tick>
>> '''            '''''' <point before 4th tick>
>> ''''           ''''''' <point before 5th tick>
>>
>> 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.



      reply	other threads:[~2019-12-31 11:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-30 11:41 Behaviour of electric-pair-mode for single quotes Pankaj Jangid
2019-12-30 15:29 ` Eli Zaretskii
2019-12-30 17:47   ` Pankaj Jangid
2019-12-30 17:59     ` Noam Postavsky
2019-12-31 11:00       ` Pankaj Jangid [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0100016f5b9d4c78-1bf45483-cbab-460f-abbf-4dfd7ddeb989-000000@email.amazonses.com \
    --to=p4j@j4d.net \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=npostavs@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).