diff options
author | Yuan Fu <casouri@gmail.com> | 2022-12-24 15:31:03 -0800 |
---|---|---|
committer | Yuan Fu <casouri@gmail.com> | 2022-12-24 18:43:03 -0800 |
commit | 35c2ca2ca64070f6ebc75011e5e6e2d688124bec (patch) | |
tree | a44c4da06fa49b33ce2369a987318b347f6228c7 /lisp/progmodes/java-ts-mode.el | |
parent | 7f7def2ae62c80fa2fd0c73087b59060b303c230 (diff) | |
download | emacs-35c2ca2ca64070f6ebc75011e5e6e2d688124bec.tar.gz emacs-35c2ca2ca64070f6ebc75011e5e6e2d688124bec.tar.bz2 emacs-35c2ca2ca64070f6ebc75011e5e6e2d688124bec.zip |
Make treesit-node-at/on guess language at point
If PARSER-OR-LANG is nil, it makes more sense to guess the language at
point by treesit-language-at than to simply use the first parser in
the parser list.
* doc/lispref/parsing.texi (Retrieving Nodes): Update manual.
* lisp/treesit.el (treesit-node-at)
(treesit-node-on): Guess language at point. Update docstring.
(treesit-buffer-root-node): Update docstring.
Diffstat (limited to 'lisp/progmodes/java-ts-mode.el')
0 files changed, 0 insertions, 0 deletions