branch: externals/matlab-mode
commit a6841e6d424436167a535a7fe3c278fdac2ce25e
Merge: debcd15126 d249b43e11
Author: John Ciolfi <[email protected]>
Commit: GitHub <[email protected]>
Merge pull request #67 from Nidish96/default
minor bugfix in matlab-shell for remote execution
---
matlab-shell.el | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/matlab-shell.el b/matlab-shell.el
index 1914668eef..957ab61807 100644
--- a/matlab-shell.el
+++ b/matlab-shell.el
@@ -468,9 +468,8 @@ Try C-h f matlab-shell RET"))
(newvar (concat "WINDOWID=" windowid))
(process-environment (cons newvar process-environment))
(abs-matlab-exe (matlab--get-abs-matlab-exe))
- (matlab-exe (if (file-remote-p abs-matlab-exe)
- matlab-shell-command
- abs-matlab-exe)))
+ (matlab-exe (file-local-name abs-matlab-exe)) ;; cleaner, works
everywhere
+ )
(message "Running: %s" abs-matlab-exe)
(apply #'make-comint matlab-shell-buffer-name matlab-exe
nil matlab-shell-command-switches))