From: Pankaj Jangid <p4j@j4d.net>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Behaviour of electric-pair-mode for single quotes
Date: Mon, 30 Dec 2019 17:47:34 +0000 [thread overview]
Message-ID: <0100016f57eb92bb-56e3818b-830d-464f-ac24-1329b2b4ef60-000000@email.amazonses.com> (raw)
In-Reply-To: <83k16dn866.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 30 Dec 2019 17:29:37 +0200")
>> Has the behaviour of electric-pair-mode changed for single quotes? I
>> am on emacs-27 (MacOS). And I have noticed that it is not working for
>> single quotes. If I remember correctly then it used to work for
>> single quotes.
>
> Seems to work for me, but you didn't show any steps to reproduce, so
> maybe I didn't try what you did.
Now I have tried it again in various modes. I just noticed that the
pairing doesn't work in some modes which obviously has good reasons.
It is not required in text-mode, message-mode, lisp-mode and may be
some other modes.
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?
Regards,
--
Pankaj Jangid
next prev parent reply other threads:[~2019-12-30 17:47 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 [this message]
2019-12-30 17:59 ` Noam Postavsky
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=0100016f57eb92bb-56e3818b-830d-464f-ac24-1329b2b4ef60-000000@email.amazonses.com \
--to=p4j@j4d.net \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
/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).