[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-30 c70bd0e3fe9 1/4: Fix tree-sitter indent preset prev-adaptive-pr
From: |
Yuan Fu |
Subject: |
emacs-30 c70bd0e3fe9 1/4: Fix tree-sitter indent preset prev-adaptive-prefix |
Date: |
Sat, 14 Sep 2024 03:28:33 -0400 (EDT) |
branch: emacs-30
commit c70bd0e3fe9c2f5b1fcdce7939c07449f8a5ec4c
Author: Yuan Fu <casouri@gmail.com>
Commit: Yuan Fu <casouri@gmail.com>
Fix tree-sitter indent preset prev-adaptive-prefix
* lisp/treesit.el (treesit-simple-indent-presets): Use looking-at so the
call to match-string has the match data to work with.
---
lisp/treesit.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/treesit.el b/lisp/treesit.el
index 3ac8575aad4..e0bcbe965c6 100644
--- a/lisp/treesit.el
+++ b/lisp/treesit.el
@@ -1647,7 +1647,7 @@ See `treesit-simple-indent-presets'.")
(goto-char bol)
(setq this-line-has-prefix
- (and (looking-at-p adaptive-fill-regexp)
+ (and (looking-at adaptive-fill-regexp)
(not (string-match-p
(rx bos (* whitespace) eos)
(match-string 0)))))