GNU bug report logs - #59788
29.0.60; [PATCH] Make treesit-end-of-defun handle nil node

Previous Next

Package: emacs;

Reported by: Theodor Thornhill <theo <at> thornhill.no>

Date: Fri, 2 Dec 2022 20:47:02 UTC

Severity: normal

Tags: patch

Found in version 29.0.60

Done: Yuan Fu <yuf011 <at> ucsd.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Theodor Thornhill <theo <at> thornhill.no>
To: 59788 <at> debbugs.gnu.org
Cc: casouri <at> gmail.com, eliz <at> gnu.org
Subject: bug#59788: 29.0.60; [PATCH] Make treesit-end-of-defun handle nil node
Date: Fri, 02 Dec 2022 21:45:59 +0100
[Message part 1 (text/plain, inline)]
Hi Eli, Yuan and others,

mark-defun errors when node is missing in the call to goto-char.

Repro:

emacs -Q
find-file xdisp.c
M-g M-g 450 RET
M-x mark-defun

Observe that emacs is erroring.

This patch fixes this bug.  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?

Theo

[0001-Make-treesit-end-of-defun-handle-nil-node.patch (text/x-diff, attachment)]

This bug report was last modified 2 years and 169 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.