Subject: Re: bug#60197: 30.0.50; beginning-of-defun broken after new treesit impl

From: Theodor Thornhill <[email-masked]>
Date: Tue, 20 Dec 2022 09:32:23 +0100

Theodor Thornhill <[email-masked]> writes:

> Hi, Yuan!
>
> It seems 'prog-fill-reindent-defun' is broken after the latest changes
> to treesit-beginning-of-defun.  The culprit is that we now use remap
> instead of setting the beginning-of-defun-function.  What is the
> reasoning behind that change?  Can't we just rely on the variable
> beginning-of-defun-function?
>
> I see you mentioned it is inteded to be used as a command, but surely
> both should be possible?
>

This will also affect things like mark-defun and friends.  Should I
prepare a patch to fix this?

Theo