I wonder if we could update matlab mode to ask what cwd is each time it sees 
the prompt?

On Feb 24, 2017, at 1:26 PM, Uwe Brauer <o...@mat.ucm.es> wrote:

>>>> "Eric" == Eric Ludlam <eric.lud...@mathworks.com> 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 
> 
> ------------------------------------------------------------------------------
> 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

------------------------------------------------------------------------------
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

Reply via email to