branch: externals/matlab-mode
commit d249b43e1178b7df8511daeebf1e3950328618fe
Author: Nidish <[email protected]>
Commit: Nidish <[email protected]>
cleaned up matlab-exe in matlab-shell.el further.
---
matlab-shell.el | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/matlab-shell.el b/matlab-shell.el
index 55b80f2896..957ab61807 100644
--- a/matlab-shell.el
+++ b/matlab-shell.el
@@ -468,10 +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)
- ;; Extract only local name
- (file-local-name abs-matlab-exe)
- 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))