emacs-diffs
[Top][All Lists]
Advanced

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

emacs-29 3fc6883351: ; Fix the doc strings of 2 treesit.el functions


From: Eli Zaretskii
Subject: emacs-29 3fc6883351: ; Fix the doc strings of 2 treesit.el functions
Date: Thu, 5 Jan 2023 02:20:29 -0500 (EST)

branch: emacs-29
commit 3fc6883351736126af793786e3f24938ebc6cb20
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    ; Fix the doc strings of 2 treesit.el functions
    
    * lisp/treesit.el (treesit-parent-until, treesit-parent-while):
    Doc fixes.  (Bug#60531)
---
 lisp/treesit.el | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/lisp/treesit.el b/lisp/treesit.el
index ed0aa1c861..d682266901 100644
--- a/lisp/treesit.el
+++ b/lisp/treesit.el
@@ -303,8 +303,8 @@ properties."
   "Return the closest parent of NODE that satisfies PRED.
 
 Return nil if none was found.  PRED should be a function that
-takes one argument, the parent node, and return non-nil/nil for
-match/no match.
+takes one argument, the node to examine, and returns a boolean
+value indicating whether that node is a match.
 
 If INCLUDE-NODE is non-nil, return NODE if it satisfies PRED."
   (let ((node (if include-node node
@@ -316,7 +316,8 @@ If INCLUDE-NODE is non-nil, return NODE if it satisfies 
PRED."
 (defun treesit-parent-while (node pred)
   "Return the furthest parent of NODE that satisfies PRED.
 Return nil if none was found.  PRED should be a function that
-takes one argument, the parent node."
+takes one argument, the node to examine, and returns a boolean
+value indicating whether that node is a match."
   (let ((last nil))
     (while (and node (funcall pred node))
       (setq last node



reply via email to

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