emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 07ede5e92a5 2/3: ; * lisp/treesit.el (treesit-language-at-point-f


From: Yuan Fu
Subject: master 07ede5e92a5 2/3: ; * lisp/treesit.el (treesit-language-at-point-function): Fix doc.
Date: Wed, 27 Sep 2023 02:40:10 -0400 (EDT)

branch: master
commit 07ede5e92a58ac3739a0e5b0c9025bee2f75c5ba
Author: Yuan Fu <casouri@gmail.com>
Commit: Yuan Fu <casouri@gmail.com>

    ; * lisp/treesit.el (treesit-language-at-point-function): Fix doc.
---
 lisp/treesit.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lisp/treesit.el b/lisp/treesit.el
index df9134ab48e..64d6841a101 100644
--- a/lisp/treesit.el
+++ b/lisp/treesit.el
@@ -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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]