emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

feature/tree-sitter b3de8850e0 06/26: Use the up-only parameter in trees


From: Yuan Fu
Subject: feature/tree-sitter b3de8850e0 06/26: Use the up-only parameter in treesit navigation functions
Date: Thu, 16 Jun 2022 14:53:45 -0400 (EDT)

branch: feature/tree-sitter
commit b3de8850e0b19c831ebcb0760248c9ef00fbbb98
Author: Yuan Fu <casouri@gmail.com>
Commit: Yuan Fu <casouri@gmail.com>

    Use the up-only parameter in treesit navigation functions
    
    * lisp/treesit.el(treesit-inspect-node-at-point,
    treesit-end-of-defun): Set up-only to t.
---
 lisp/treesit.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/treesit.el b/lisp/treesit.el
index 7de7545f4e..76101509e0 100644
--- a/lisp/treesit.el
+++ b/lisp/treesit.el
@@ -974,7 +974,7 @@ to the ARGth following beginning of defun.  Defun is defined
 according to `treesit-defun-query'."
   (unless treesit-defun-query
     (error "Variable `treesit-defun-query' is unset"))
-  (treesit-search-beginning treesit-defun-query (- (or arg 1))))
+  (treesit-search-beginning treesit-defun-query (- (or arg 1)) nil t))
 
 (defun treesit-end-of-defun (&optional arg)
   "Move forward to the end of a defun.
@@ -984,7 +984,7 @@ ARGth preceding end of defun.  Defun is defined according to
 `treesit-defun-query'."
   (unless treesit-defun-query
     (error "Variable `treesit-defun-query' is unset"))
-  (treesit-search-end treesit-defun-query (or arg 1)))
+  (treesit-search-end treesit-defun-query (or arg 1) nil t))
 
 ;;; Debugging
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]