From 5dc3c9f4eca2e3c4b4059cc5b52b56c98eb3d961 Mon Sep 17 00:00:00 2001 From: Yuan Fu Date: Thu, 9 Nov 2023 21:19:12 -0800 Subject: [PATCH] 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. -- 2.39.2