[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-29 d2c4b926ac2: Fix treesit-default-defun-skipper (bug#66711)
From: |
Yuan Fu |
Subject: |
emacs-29 d2c4b926ac2: Fix treesit-default-defun-skipper (bug#66711) |
Date: |
Sun, 10 Dec 2023 20:45:11 -0500 (EST) |
branch: emacs-29
commit d2c4b926ac20de6f7d9f3576b22272bc560bd0f7
Author: Yuan Fu <casouri@gmail.com>
Commit: Yuan Fu <casouri@gmail.com>
Fix treesit-default-defun-skipper (bug#66711)
* lisp/treesit.el:
(treesit-default-defun-skipper): Add bol to the rx pattern.
---
lisp/treesit.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/treesit.el b/lisp/treesit.el
index 9dc5d4970b6..8a07f5023a9 100644
--- a/lisp/treesit.el
+++ b/lisp/treesit.el
@@ -1962,7 +1962,7 @@ the current line if the beginning of the defun is
indented."
(forward-line 1))
;; Moving backward, but there are some whitespace (and only
;; whitespace) between point and BOL: go back to BOL.
- ((looking-back (rx (+ (or " " "\t")))
+ ((looking-back (rx bol (+ (or " " "\t")))
(line-beginning-position))
(beginning-of-line))))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-29 d2c4b926ac2: Fix treesit-default-defun-skipper (bug#66711),
Yuan Fu <=