>>> "JCvM" == Julien Claisse via Matlab-emacs-discuss >>> <matlab-emacs-discuss@lists.sourceforge.net> writes:
> Hi, > I'm posting this patch for improving the matlab-shell-save-and-go command. > I'm not sure to understand all the different parts/customization of this > function but, in my case (by default) I end up at the end of it : where it > tries to run the full path file using the matlab "run" command. > This works only if the matlab shell is in the current file directory. > Moreover, it works only with scripts (no matlab function). > Here is my proposition: > @@ -2166,2 +2166,4 @@ Similar to `comint-send-input'." > - ;; If not changing dir, maybe we need to use 'run' command instead? > - (let ((cmd (concat "run('" dir fn-name "')"))) > + ;; If not changing dir, maybe we need to use addpath command before > + (let ((cmd (concat "addpath('" dir "')"))) > + (matlab-shell-send-command cmd)) > + (let ((cmd (concat fn-name param))) > Instead of using the run matlab function, first, we addpath the file > directory and then, we run the file with parameters if any. This way, we > can run a script or a function from within any location. > I check that addpath at each time do not increase the path uselessly: > matlab does nothing if it is already into the path. I am currently testing your patch, can you tell me where I can note a difference to the unpatched matlab-shell.el? I run some tests and cannot spot a difference. An example would definitely help Uwe
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Matlab-emacs-discuss mailing list Matlab-emacs-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss