|
From: Uwe B. <ou...@ma...> - 2016-01-25 10:49:09
|
>>> "Torben" == Torben Knudsen <tk...@es...> writes:
> Dear Uwe
> Maybe I misunderstand the problem. If I make sure the diectories are
> on the search path using e.g. addpath and maybe genpath I have no
> problems when running m-files from different directories using
I am afraid I did not explain this well enough.
I don't want to set a path.
Rationale:
I have to correct a bunch of .m files of my students which they wrote in
an exam. Although I tell them to add their familiar name to each file,
some of them forget that and I end up with files like examn.m
So if I set paths I could never be sure which file I execute.
However I found two solutions to my problem:
- I just boldly used the function from Xemacs dired.el
- even better the variable matlab-change-current-directory which I
had set to t in Xemacs and nil in GNU emacs solves completely my problem.
@Eric: I obtainted that variable from a patch I found in the matlab
newsgroup.
It is applied to main I trust?
Regards
Uwe Brauer
|