emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Behaviour of electric-pair-mode for single quotes


From: Pankaj Jangid
Subject: Re: Behaviour of electric-pair-mode for single quotes
Date: Mon, 30 Dec 2019 17:47:34 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.60 (darwin)

>> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]