[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#59495: 29.0.50; python-treesit-beginning-of-defun behavior differs f
From: |
Yuan Fu |
Subject: |
bug#59495: 29.0.50; python-treesit-beginning-of-defun behavior differs from python-mode's beginning-of-defun-function |
Date: |
Wed, 23 Nov 2022 12:14:38 -0800 |
Yuan Fu <casouri@gmail.com> writes:
> Brian Leung <leungbk@posteo.net> writes:
>
>> With the following Python:
>>
>> def f():
>> def g(i):
>> return i
>>
>> return 42
>>
>> When point is on the line "return i", hitting C-M-a in python-mode moves
>> point to the beginning of the definition of g.
>>
>> However, in python-ts-mode, C-M-a moves point to the definition of f.
>>
>> I think it makes more sense to move to the g definition.
>
> Yeah, preference aside, python-ts-mode should be consistent with
> python-mode. Alternative behavior could be opt-in with a variable, if
> people deem them useful. I’ll fix this.
>
> Yuan
Fixed!
Yuan