all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Yuan Fu <casouri@gmail.com>
To: leungbk@posteo.net
Cc: 59495-done@debbugs.gnu.org
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	[thread overview]
Message-ID: <67925677-5BA9-4ACF-AED3-17D5C543318C@gmail.com> (raw)
In-Reply-To: <87leo2k2g6.fsf@posteo.net>


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





      parent reply	other threads:[~2022-11-23 20:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-22 23:13 bug#59495: 29.0.50; python-treesit-beginning-of-defun behavior differs from python-mode's beginning-of-defun-function Brian Leung
2022-11-23 18:11 ` Yuan Fu
2022-11-23 20:14 ` Yuan Fu [this message]

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=67925677-5BA9-4ACF-AED3-17D5C543318C@gmail.com \
    --to=casouri@gmail.com \
    --cc=59495-done@debbugs.gnu.org \
    --cc=leungbk@posteo.net \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.