Subject: Re: bug#59788: 29.0.60; [PATCH] Make treesit-end-of-defun handle nil node

From: Eli Zaretskii <[email-masked]>
Date: Sat, 03 Dec 2022 08:33:46 +0200

> Cc: [email-masked], [email-masked]
> From: Theodor Thornhill <[email-masked]>
> Date: Fri, 02 Dec 2022 21:45:59 +0100
> 
> However, I notice that treesit-beginning-of-defun returns t after it is
> done.  Is there a reason for end-of-defun not to return the same?

The return value of end-of-defun is not documented, so it can be anything.