Hi,
I don't know why the "S" is there, but that problem is accounted for in opentoline.m in the distribution directory. The edit command should be doing something similar.
I would guess that inside MATLAB, perhaps "emacsclient" is not on your path. For example:
>> !emacsclient -n foo.m
Does that work? If not, then you just need to configure matlab-shell-emacsclient-command to the full path to your emacsclient.
Good Luck
Eric
-----Original Message-----
From: L. Larrabee Strow [mailto:ls...@gm...]
Sent: Thursday, November 05, 2009 6:53 PM
To: mat...@li...
Subject: [Matlab-emacs-discuss] emacsclient problem
Greetings,
Very nice to have matlab.el updated!
n
I am trying to use the toolbox emacsclient capability.
Emacsclient is working fine from the command line (using Aquamacs on
Mac os X leopard)
matlab-shell working fine.
addpath to toolbox; rehash; emacsinit are being executed in my startup.m
But, when in Matlab I get an error when doing
matlab> edit somefile.m
Looks to me somehow the editor string is not being assigned properly.
See below.
The commands in emacsinit are way beyond me!. As you can see below,
it looks like editor command is being set to "emacsclient -n". But
when you query the name of the editor you get back
"Semacsclient -n", which I assume is my problem. No idea what to do
to fix this?
Thanks.
>> clientcommand
clientcommand =
emacsclient -n
>> com.mathworks.services.Prefs.setStringPref('EditorOtherEditor', clientcommand);
>> system_dependent('getpref', 'EditorOtherEditor')
ans =
Semacsclient -n
>> edit fit_ymod.m
??? Error using ==> edit at 57
Could not find external editor
>>
--
L. Larrabee Strow
Department of Physics
University of Maryland Baltimore County
1000 Hilltop Circle
Baltimore, MD 21250
E-mail: st...@um...
Phone: (724) 663-7341
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Matlab-emacs-discuss mailing list
Mat...@li...
https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss
|