projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c9b876
)
Add shortdoc for treesit-node-get
author
Yuan Fu
<casouri@gmail.com>
Fri, 10 Nov 2023 04:09:06 +0000
(20:09 -0800)
committer
Yuan Fu
<casouri@gmail.com>
Fri, 10 Nov 2023 04:09:06 +0000
(20:09 -0800)
lisp/treesit.el
patch
|
blob
|
history
diff --git
a/lisp/treesit.el
b/lisp/treesit.el
index 3555396390df8da2bed6c316bcf597e069248685..e1fcf1a8b04544df8e4e19f8299facb524c2a23b 100644
(file)
--- a/
lisp/treesit.el
+++ b/
lisp/treesit.el
@@
-3573,6
+3573,9
@@
function signals an error."
"Retrieving a node from another node"
+ (treesit-node-get
+ :no-eval (treesit-node-get node '((parent 1) (sibling 1) (text)))
+ :eg-result-string "#<treesit-node (declaration) in 1-11>")
(treesit-node-parent
:no-eval (treesit-node-parent node)
:eg-result-string "#<treesit-node (declaration) in 1-11>")