branch: externals/matlab-mode
commit 5987b87922c061a7fc3d05a3b16d556dfae52ce1
Author: John Ciolfi <[email protected]>
Commit: John Ciolfi <[email protected]>

    treesit-mode-how-to.org: updated t-utils-xr info
---
 contributing/treesit-mode-how-to.org | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/contributing/treesit-mode-how-to.org 
b/contributing/treesit-mode-how-to.org
index 494e7bd23f..5253829cb0 100644
--- a/contributing/treesit-mode-how-to.org
+++ b/contributing/treesit-mode-how-to.org
@@ -893,7 +893,7 @@ comment and =%{ ... %}= is a block comment:
   %}
 #+end_src
 
-The execute and record function, =t-utils-xr= runs the Emacs commands. In this 
example,
+The execute and record function, =t-utils-xr= run the Emacs commands within 
it. In this example,
 we are re-playing the actions of typing
 
 #+begin_src matlab-ts
@@ -906,6 +906,13 @@ Any standard Emacs commands are allowed, e.g. "C-m" for 
Enter/Return (RET). In a
 =(t-utils-xr-print-code START-POINT END-POINT)= to capture the result of 
running the commands in the
 baseline.
 
+You can interactively evaluate the =t-utils-xr= macro to debug the actions. 
Place the point
+just after the closing parenthesis and type =C-x C-e= or =M-x eval-last-sexp= 
and each
+command is run with a prompt showing what happened.
+
+ : (t-tuils-xr ... )
+ :                  ^   Put point here, and type C-x C-e to manually execute 
and record
+
 The commands are executed and recorded. The recorded results are compared 
against baseline:
 
  : =./tests/test-matlab-ts-mode-indent-xr-files/indent_cell1_expected.org=

Reply via email to