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: Tue, 31 Dec 2019 11:00:33 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.60 (darwin)

>>>>> Noam Postavsky <address@hidden> 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 via email to

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