emacs-diffs
[Top][All Lists]
Advanced

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

master 5dc3c9f4eca 5/5: Mark treesit--things-around obsolete


From: Yuan Fu
Subject: master 5dc3c9f4eca 5/5: Mark treesit--things-around obsolete
Date: Fri, 10 Nov 2023 00:43:05 -0500 (EST)

branch: master
commit 5dc3c9f4eca2e3c4b4059cc5b52b56c98eb3d961
Author: Yuan Fu <casouri@gmail.com>
Commit: Yuan Fu <casouri@gmail.com>

    Mark treesit--things-around obsolete
    
    * lisp/treesit.el (treesit--things-around): Mark obsolete.
---
 lisp/treesit.el | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

diff --git a/lisp/treesit.el b/lisp/treesit.el
index 962b957b80c..45c5f313a8e 100644
--- a/lisp/treesit.el
+++ b/lisp/treesit.el
@@ -2359,17 +2359,7 @@ the current line if the beginning of the defun is 
indented."
                        (line-beginning-position))
          (beginning-of-line))))
 
-;; prev-sibling:
-;; 1. end-of-node before pos
-;; 2. highest such node
-;;
-;; next-sibling:
-;; 1. beg-of-node after pos
-;; 2. highest such node
-;;
-;; parent:
-;; 1. node covers pos
-;; 2. smallest such node
+(make-obsolete 'treesit--things-around "`treesit--things-around' will be 
removed in a few months, use `treesit--thing-prev', `treesit--thing-next', 
`treesit--thing-at' instead." "30.0.5")
 (defun treesit--things-around (pos thing)
   "Return the previous, next, and parent thing around POS.
 



reply via email to

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