From: Uwe B. <ou...@ma...> - 2017-10-31 21:27:13
|
>>> "Eric" == Eric Ludlam <Eri...@ma...> writes: > MATLAB mode has a command to execute region in the MATLAB Shell from a > .M file. I see no reason why you couldn't re-use that. > It may be it needs updating to also start the shell, or to chdir if > there is a function, or something like that. Hm suppose the shell is running. The core of his function are the following lines (let ((results (shell-command-to-string (concat "/usr/local/bin/matlab " "-nodesktop -nojvm -nosplash -nodisplay <" m-file)))) So are you saying I should try (switch-to-buffer m-file) (find-file m-file) ;? None worked (let ((results (matlab-shell-save-and-go) (delete-file m-file) rest of code))) Hm this did not work, so most likely I am not taking care of something elementary here. Uwe |