[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#59788: 29.0.60; [PATCH] Make treesit-end-of-defun handle nil node
From: |
Theodor Thornhill |
Subject: |
bug#59788: 29.0.60; [PATCH] Make treesit-end-of-defun handle nil node |
Date: |
Fri, 02 Dec 2022 21:45:59 +0100 |
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
Description: Text Data
- bug#59788: 29.0.60; [PATCH] Make treesit-end-of-defun handle nil node,
Theodor Thornhill <=