|
From: Uwe B. <ou...@ma...> - 2017-02-24 18:26:22
|
>>> "Eric" == Eric Ludlam <Eri...@ma...> writes:
> Hiya,
> Matlab-shell uses dirtrack, or shell-directory-tracker. It just
> watches the input stream and changes default-directory when it sees:
> cd /some/path/to/directory
> I'll guess MATLAB syntax around (['/path']) is confusing it.
> You could probably replace all the parens etc with just:
> cd '/path'
> which should work fine. I tried this with a DOS shell in Emacs and
> Emacs followed the path even though the actual shell threw and error.
Hi Eric
Thanks for your answer, however at least for this does not work
I know obtain, with the same logic as before
>> cd '/home/oub/ALLES/Dir-Matlab/dir1/'
>> test
y = 64
>> addpath('/home/oub/.emacs.d/elpa/matlab-mode-20160902.459/toolbox','-begin'); rehash; emacsinit('emacsclient -n');
>>
>> pwd
ans =
/home/oub/ALLES/Dir-Matlab/dir1
>> cd '/home/oub/ALLES/Dir-Matlab/dir2/'
>> test2
y = 49
However find-file still thinks it is in dir1 not 2.
Uwe
|