From: Noam Postavsky <npostavs@gmail.com>
To: Pankaj Jangid <p4j@j4d.net>
Cc: Eli Zaretskii <eliz@gnu.org>, Emacs developers <emacs-devel@gnu.org>
Subject: Re: Behaviour of electric-pair-mode for single quotes
Date: Mon, 30 Dec 2019 12:59:32 -0500 [thread overview]
Message-ID: <CAM-tV-9gQTksmXEx=eb2dWtUxWMN116WTM7P+j1FgEJ5yGcaSg@mail.gmail.com> (raw)
In-Reply-To: <0100016f57eb92bb-56e3818b-830d-464f-ac24-1329b2b4ef60-000000@email.amazonses.com>
On Mon, 30 Dec 2019 at 12:47, Pankaj Jangid <p4j@j4d.net> 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
> ' '' <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
next prev parent reply other threads:[~2019-12-30 17:59 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 [this message]
2019-12-31 11:00 ` Pankaj Jangid
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='CAM-tV-9gQTksmXEx=eb2dWtUxWMN116WTM7P+j1FgEJ5yGcaSg@mail.gmail.com' \
--to=npostavs@gmail.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=p4j@j4d.net \
/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).