From: Yuan Fu Date: Fri, 10 Nov 2023 05:19:12 +0000 (-0800) Subject: Mark treesit--things-around obsolete X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5dc3c9f4eca2e3c4b4059cc5b52b56c98eb3d961;p=emacs.git Mark treesit--things-around obsolete * lisp/treesit.el (treesit--things-around): Mark obsolete. --- 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.