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

    matlab-shell: fix tab completion
    
    For tab completion, with a stock Emacs setup, we were seeing that 
[[:space:]]* was not matching \n,
    so explicitly do it with [ \t\n\r]*
    
    This is likely a problem with the syntax table that I'll investigate.
---
 matlab-shell.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/matlab-shell.el b/matlab-shell.el
index bf2355e92d..59206eab87 100644
--- a/matlab-shell.el
+++ b/matlab-shell.el
@@ -1219,7 +1219,7 @@ STR is a command substring to complete."
 
       (cond
        ;; Case: R2025a and later
-       ((string-match 
"^\s*Completions-Lisp:[[:space:]]*\\('(\\(?:.\\|\n\\)+)\\)[[:space:]]*$"
+       ((string-match "^\s*Completions-Lisp:[ 
\t\n\r]*\\('(\\(?:.\\|\n\\)+)\\)[ \t\n\r]*$"
                       output)
         ;; Completions that can be provided to `display-completion-list'
         (let ((completions-str (match-string 1 output)))

Reply via email to