>>> "Eric" == Eric Ludlam <eric.lud...@mathworks.com> 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 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Matlab-emacs-discuss mailing list Matlab-emacs-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss