Subject: Re: bug#64442: 29.0.92; treesit-beginning-of-defun fails in DEFUN functions in C

From: Eli Zaretskii <[email-masked]>
Date: Thu, 17 Aug 2023 11:18:22 +0300

> From: Yuan Fu <[email-masked]>
> Date: Tue, 15 Aug 2023 00:30:53 -0700
> Cc: [email-masked]
> 
> >>> That would allow "C-x 4 a" to work inside a DEFUN,
> >>> something that still works less reliably with this patch: you must be
> >>> in the "first defun" to get it to find the name of the function.
> >> 
> >> C-x 4 a should’ve been fixed already. And it shouldn’t rely on this fix to work. Do you have a recipe for when it doesn’t work?
> > 
> > Just try it with your patch.  If point is inside the body, the
> > function's name is not captured by "C-x 4 a”.
> 
> My bad, I must’ve been trying C-x 4 a in a different Emacs session, which worked. Anyway, I updated the patch and C-x 4 a should now work.

Thanks, LGTM.  Please install on the emacs-29 branch, and close the
bug when you do.