1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-26 07:33:47 +00:00

; * lisp/treesit.el (treesit-language-at-point-function): Fix doc.

This commit is contained in:
Yuan Fu 2023-09-26 23:15:14 -07:00
parent 6490af559f
commit 07ede5e92a
No known key found for this signature in database
GPG Key ID: 56E19BC57664A442

View File

@ -140,7 +140,10 @@ The function is called with one argument, the position of point.
In general, this function should call `treesit-node-at' with an
explicit language (usually the host language), and determine the
language at point using the type of the returned node.")
language at point using the type of the returned node.
DO NOT derive the language at point from parser ranges. It's
cumbersome and can't deal with some edge cases.")
(defun treesit-language-at (position)
"Return the language at POSITION.