Change inner paren doesn't work in python mode
Hi guys, ci( does not work in python mode. to replicate: --- example.py --- for i in range(10): print (1, 2, 3) --------------------------- position the cursor over the "2" issue ci( result: --- example.py --- f): print (1, 2, 3) -------------------------- Cheers, Alessandro
Hi Alessandro, Am Wed, 12 Sep 2012 13:39:22 +0200 schrieb Alessandro Piras <[email protected]>:
Hi guys, ci( does not work in python mode. to replicate:
--- example.py --- for i in range(10): print (1, 2, 3) ---------------------------
position the cursor over the "2"
issue ci(
result:
--- example.py --- f): print (1, 2, 3) --------------------------
I can't reproduce that. Can you please check starting with "make emacs" from evil's source? Bye, Frank
On Wed, Sep 19 2012 (21:24), Frank Fischer <[email protected]> wrote:
ci( does not work in python mode. to replicate:
--- example.py --- for i in range(10): print (1, 2, 3) ---------------------------
position the cursor over the "2"
issue ci(
result:
--- example.py --- f): print (1, 2, 3) --------------------------
I can't reproduce that. Can you please check starting with "make emacs" from evil's source?
I can reproduce with `make emacs` and emacs 24.2.50.1 but not with emacs 24.2.1 It seems the introduction of Fabian Gallinas python-mode is the culprit. Michael
On 2012-09-19, Michael Markert <[email protected]> wrote:
I can reproduce with `make emacs` and emacs 24.2.50.1 but not with emacs 24= .2.1
It seems the introduction of Fabian Gallinas python-mode is the culprit.
Seems you're right ;) The new python-mode sets `forward-sexp-function' and this confuses `evil-paren-range', which relies on the "correct" (i.e. the original) behavior of `backward-up-list'. I hope commit a0d9647 solves this problem (and does not introduce problems in other modes). Sorry that it took so long to be fixed, but I usually use other scripting languages instead of python, so this bug never bite me and it took some time to isolate the problem ;) Best Frank
participants (3)
-
Alessandro Piras -
Frank Fischer -
Michael Markert