<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: MATLAB-Emacs integration is back</title>
	<atom:link href="http://blogs.mathworks.com/desktop/2009/09/14/matlab-emacs-integration-is-back/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.mathworks.com/desktop/2009/09/14/matlab-emacs-integration-is-back/</link>
	<description>Mike works on the MATLAB Desktop team</description>
	<lastBuildDate>Sun, 12 Feb 2012 04:03:36 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Codre</title>
		<link>http://blogs.mathworks.com/desktop/2009/09/14/matlab-emacs-integration-is-back/#comment-8480</link>
		<dc:creator>Codre</dc:creator>
		<pubDate>Wed, 08 Feb 2012 17:33:15 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2009/09/14/matlab-emacs-integration-is-back/#comment-8480</guid>
		<description>Hello,
I use emacs at about 180 chars width.
When using matlab-shell mode I can define a string variable &quot;foo&quot; up to that width s.t. 
matlab&gt; foo
returns the full string unwrapped.

However,when I query a vector or matrix &quot;test&quot;
matlab&gt;test
matlab wraps the display at column 70

That seemed like a good clue and it suggested this was  more of a matlab inside emacs problem than an emacs problem, but I haven&#039;t figured out how to configure emacs to understand the terminal width when it&#039;s running inside emacs..
I&#039;ve tried 
things like 
 (defcustom matlab-fill-fudge-hard-maximum 150
inside of matlab.el 
without success.

Can anyone help ?

Thx,</description>
		<content:encoded><![CDATA[<p>Hello,<br />
I use emacs at about 180 chars width.<br />
When using matlab-shell mode I can define a string variable &#8220;foo&#8221; up to that width s.t.<br />
matlab&gt; foo<br />
returns the full string unwrapped.</p>
<p>However,when I query a vector or matrix &#8220;test&#8221;<br />
matlab&gt;test<br />
matlab wraps the display at column 70</p>
<p>That seemed like a good clue and it suggested this was  more of a matlab inside emacs problem than an emacs problem, but I haven&#8217;t figured out how to configure emacs to understand the terminal width when it&#8217;s running inside emacs..<br />
I&#8217;ve tried<br />
things like<br />
 (defcustom matlab-fill-fudge-hard-maximum 150<br />
inside of matlab.el<br />
without success.</p>
<p>Can anyone help ?</p>
<p>Thx,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tftr</title>
		<link>http://blogs.mathworks.com/desktop/2009/09/14/matlab-emacs-integration-is-back/#comment-7978</link>
		<dc:creator>tftr</dc:creator>
		<pubDate>Sun, 07 Aug 2011 05:00:48 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2009/09/14/matlab-emacs-integration-is-back/#comment-7978</guid>
		<description>Hi Tan,

You can specify which options to send to matlab by adding
&lt;pre&gt;
(custom-set-variables
 &#039;(matlab-shell-command-switches &#039;(&quot;-nodesktop -noslpash -nojvm&quot;)))
&lt;/pre&gt;

to your .emacs.

It&#039;s been 5 month but hope you&#039;ll come across this/figured it out.</description>
		<content:encoded><![CDATA[<p>Hi Tan,</p>
<p>You can specify which options to send to matlab by adding</p>
<pre>
(custom-set-variables
 '(matlab-shell-command-switches '("-nodesktop -noslpash -nojvm")))
</pre>
<p>to your .emacs.</p>
<p>It&#8217;s been 5 month but hope you&#8217;ll come across this/figured it out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Terry Boult</title>
		<link>http://blogs.mathworks.com/desktop/2009/09/14/matlab-emacs-integration-is-back/#comment-7934</link>
		<dc:creator>Terry Boult</dc:creator>
		<pubDate>Sun, 10 Jul 2011 15:01:17 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2009/09/14/matlab-emacs-integration-is-back/#comment-7934</guid>
		<description>Should have been clear.. the above is to get matlab-shell under emacs to work, not emacslink.  But with the shell running under emacs you can go back and forth between code and execution, debug code, etc..  Graphics windows show up separately but the rest of the interface is inside an emacs shell window.</description>
		<content:encoded><![CDATA[<p>Should have been clear.. the above is to get matlab-shell under emacs to work, not emacslink.  But with the shell running under emacs you can go back and forth between code and execution, debug code, etc..  Graphics windows show up separately but the rest of the interface is inside an emacs shell window.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Terry Boult</title>
		<link>http://blogs.mathworks.com/desktop/2009/09/14/matlab-emacs-integration-is-back/#comment-7933</link>
		<dc:creator>Terry Boult</dc:creator>
		<pubDate>Sun, 10 Jul 2011 14:59:03 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2009/09/14/matlab-emacs-integration-is-back/#comment-7933</guid>
		<description>For those tyring to get this  working under mac osx, there are two things I needed to do.   OSX does not define the PATH variable as in other *nix and even setting it in my environment.plist did not do it (though maybe I did not get that syntax right).   But  by modifing 
&lt;pre&gt;
(defcustom matlab-shell-command &quot;matlab&quot;
....
 to be 
(defcustom matlab-shell-command &quot;/Applications/MatLab/MATLAB_R2011a.app/bin/matlab&quot;
....

&lt;/pre&gt; 
I was able to get it to run properly</description>
		<content:encoded><![CDATA[<p>For those tyring to get this  working under mac osx, there are two things I needed to do.   OSX does not define the PATH variable as in other *nix and even setting it in my environment.plist did not do it (though maybe I did not get that syntax right).   But  by modifing </p>
<pre>
(defcustom matlab-shell-command "matlab"
....
 to be
(defcustom matlab-shell-command "/Applications/MatLab/MATLAB_R2011a.app/bin/matlab"
....
</pre>
<p>I was able to get it to run properly</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pisti</title>
		<link>http://blogs.mathworks.com/desktop/2009/09/14/matlab-emacs-integration-is-back/#comment-7709</link>
		<dc:creator>Pisti</dc:creator>
		<pubDate>Fri, 22 Apr 2011 18:21:33 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2009/09/14/matlab-emacs-integration-is-back/#comment-7709</guid>
		<description>I am also curious to hear about a new matlab.el lisp file for Emacs.  Any news regarding a new version for emacs 23.3 or newer? I would never use  the built-in crippled limited pseudo-emacs in matlab, but I and my entire research team will be perfectly happy to continue to work with the usual matlab-code-mode in Emacs.

I didn&#039;t even find a proper website to download the matlab.el - what do i miss here ?

-Pisti</description>
		<content:encoded><![CDATA[<p>I am also curious to hear about a new matlab.el lisp file for Emacs.  Any news regarding a new version for emacs 23.3 or newer? I would never use  the built-in crippled limited pseudo-emacs in matlab, but I and my entire research team will be perfectly happy to continue to work with the usual matlab-code-mode in Emacs.</p>
<p>I didn&#8217;t even find a proper website to download the matlab.el &#8211; what do i miss here ?</p>
<p>-Pisti</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Randy Yates</title>
		<link>http://blogs.mathworks.com/desktop/2009/09/14/matlab-emacs-integration-is-back/#comment-7670</link>
		<dc:creator>Randy Yates</dc:creator>
		<pubDate>Thu, 31 Mar 2011 20:30:56 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2009/09/14/matlab-emacs-integration-is-back/#comment-7670</guid>
		<description>Is emacslink still unavailable? I am using R2010b. 

I&#039;m trying to use emacs 23.3.1 (cygwin) with matlab and matlab-shell doesn&#039;t work. I suppose this is the same reason as stated above in general for any Windows user. 

I echo George&#039;s feelings exactly: I will never go back to using a separate editor/IDE for every type of development I do, and the Matlab editor is not the answer. Hmm.., GNU-Octave has a nice emacs mode...

--Randy</description>
		<content:encoded><![CDATA[<p>Is emacslink still unavailable? I am using R2010b. </p>
<p>I&#8217;m trying to use emacs 23.3.1 (cygwin) with matlab and matlab-shell doesn&#8217;t work. I suppose this is the same reason as stated above in general for any Windows user. </p>
<p>I echo George&#8217;s feelings exactly: I will never go back to using a separate editor/IDE for every type of development I do, and the Matlab editor is not the answer. Hmm.., GNU-Octave has a nice emacs mode&#8230;</p>
<p>&#8211;Randy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tan</title>
		<link>http://blogs.mathworks.com/desktop/2009/09/14/matlab-emacs-integration-is-back/#comment-7646</link>
		<dc:creator>Tan</dc:creator>
		<pubDate>Mon, 14 Mar 2011 19:45:38 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2009/09/14/matlab-emacs-integration-is-back/#comment-7646</guid>
		<description>Hi Mike, thanks a lot for your great article! I set up my emacs according to your article and now I am able to use matlab-shell. It is much more convenient. However every time I run matlab-shell I would get this information:

if usejava(&#039;jvm&#039;), com.mathworks.services.Prefs.setBooleanPref(&#039;EditorGraphicalDebugging&#039;, false); end

In my .emacs file, I put:

(setq matlab-shell-command-switches &#039;(&quot;-nosplash&quot; &quot;-nodesktop&quot; &quot;-nojvm&quot;))

but it doesn&#039;t work.

Any idea how I should deal with it? Thank you so much!</description>
		<content:encoded><![CDATA[<p>Hi Mike, thanks a lot for your great article! I set up my emacs according to your article and now I am able to use matlab-shell. It is much more convenient. However every time I run matlab-shell I would get this information:</p>
<p>if usejava(&#8216;jvm&#8217;), com.mathworks.services.Prefs.setBooleanPref(&#8216;EditorGraphicalDebugging&#8217;, false); end</p>
<p>In my .emacs file, I put:</p>
<p>(setq matlab-shell-command-switches &#8216;(&#8220;-nosplash&#8221; &#8220;-nodesktop&#8221; &#8220;-nojvm&#8221;))</p>
<p>but it doesn&#8217;t work.</p>
<p>Any idea how I should deal with it? Thank you so much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Walter</title>
		<link>http://blogs.mathworks.com/desktop/2009/09/14/matlab-emacs-integration-is-back/#comment-7468</link>
		<dc:creator>Walter</dc:creator>
		<pubDate>Sun, 28 Nov 2010 02:38:11 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2009/09/14/matlab-emacs-integration-is-back/#comment-7468</guid>
		<description>Why not add a public API so people can reimplement EmacsLink on top of it? By removing EmacsLink you cause a lot of pain for a lot of hardcore Matlab users and thus Mathworks clients. The Matlab Editor is just a pain to use for people used to Emacs and well at least under Linux it looks ugly like hell.

Until you bring EmacsLink back or at provide least a public API that allows to reimplement EmacsClient I&#039;ll try everything to avoid Matlab!</description>
		<content:encoded><![CDATA[<p>Why not add a public API so people can reimplement EmacsLink on top of it? By removing EmacsLink you cause a lot of pain for a lot of hardcore Matlab users and thus Mathworks clients. The Matlab Editor is just a pain to use for people used to Emacs and well at least under Linux it looks ugly like hell.</p>
<p>Until you bring EmacsLink back or at provide least a public API that allows to reimplement EmacsClient I&#8217;ll try everything to avoid Matlab!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dylan Hirsch-Shell</title>
		<link>http://blogs.mathworks.com/desktop/2009/09/14/matlab-emacs-integration-is-back/#comment-7430</link>
		<dc:creator>Dylan Hirsch-Shell</dc:creator>
		<pubDate>Sat, 06 Nov 2010 07:46:03 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2009/09/14/matlab-emacs-integration-is-back/#comment-7430</guid>
		<description>I couldn&#039;t get emacsclient to work on Matlab 7.5 (R2007b) running on Windows.  Whenever I tried editing a file using

&lt;pre&gt;
edit file.m
&lt;/pre&gt;

a Command Prompt window would open up with an error message saying:

&lt;pre&gt;
&#039;&quot;emacsclient -a emacs -n&quot;&#039; is not recognized as an internal or external command, operable program or batch file.
&lt;/pre&gt;

I knew that it wasn&#039;t an issue with emacsclient because I could open the file from the Windows command prompt without any errors.

After snooping around in the edit.m file, I figured out that the problem stemmed from the fact that edit.m wraps calls to user-supplied external editors in double quotes &quot;in case it contains spaces.&quot;  Of course, when you&#039;re trying to use the -a or -n option with emacsclient, this wrapping in double quotes confuses Windows, which tries to interpret the entire string as an executable rather than parsing it into an executable (emacsclient) plus arguments (-a emacs -n).

I was able to make it work seamlessly by changing lines 220-227 in the openExternalEditor function from this:

&lt;pre&gt;
if ispc
    % On Windows, we need to wrap the editor command in double quotes
    % in case it contains spaces
    if nargin == 0
        system([&#039;&quot;&#039; editor &#039;&quot; &amp;&#039;]);
    else
        system([&#039;&quot;&#039; editor &#039;&quot; &quot;&#039; file &#039;&quot; &amp;&#039;]);
    end
&lt;/pre&gt;

to this:

&lt;pre&gt;
if ispc
    % We don&#039;t want to use double quotes since our editor
    % command contains arguments, and the &amp; is unnecessary
    if nargin == 0
        system(editor);
    % but we do still need to wrap the file in double
    % quotes, in case it includes a path with folder names
    % that have spaces...    
    else
        system([editor &#039; &quot;&#039; file &#039;&quot;&#039;]);
    end
&lt;/pre&gt;


I&#039;m not sure whether this would be an issue for other versions of Matlab on Windows, but I figured I&#039;d pass along the info in case it helps someone else!</description>
		<content:encoded><![CDATA[<p>I couldn&#8217;t get emacsclient to work on Matlab 7.5 (R2007b) running on Windows.  Whenever I tried editing a file using</p>
<pre>
edit file.m
</pre>
<p>a Command Prompt window would open up with an error message saying:</p>
<pre>
'"emacsclient -a emacs -n"' is not recognized as an internal or external command, operable program or batch file.
</pre>
<p>I knew that it wasn&#8217;t an issue with emacsclient because I could open the file from the Windows command prompt without any errors.</p>
<p>After snooping around in the edit.m file, I figured out that the problem stemmed from the fact that edit.m wraps calls to user-supplied external editors in double quotes &#8220;in case it contains spaces.&#8221;  Of course, when you&#8217;re trying to use the -a or -n option with emacsclient, this wrapping in double quotes confuses Windows, which tries to interpret the entire string as an executable rather than parsing it into an executable (emacsclient) plus arguments (-a emacs -n).</p>
<p>I was able to make it work seamlessly by changing lines 220-227 in the openExternalEditor function from this:</p>
<pre>
if ispc
    % On Windows, we need to wrap the editor command in double quotes
    % in case it contains spaces
    if nargin == 0
        system(['"' editor '" &amp;']);
    else
        system(['"' editor '" "' file '" &amp;']);
    end
</pre>
<p>to this:</p>
<pre>
if ispc
    % We don't want to use double quotes since our editor
    % command contains arguments, and the &amp; is unnecessary
    if nargin == 0
        system(editor);
    % but we do still need to wrap the file in double
    % quotes, in case it includes a path with folder names
    % that have spaces...
    else
        system([editor ' "' file '"']);
    end
</pre>
<p>I&#8217;m not sure whether this would be an issue for other versions of Matlab on Windows, but I figured I&#8217;d pass along the info in case it helps someone else!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Clayton Chu</title>
		<link>http://blogs.mathworks.com/desktop/2009/09/14/matlab-emacs-integration-is-back/#comment-7278</link>
		<dc:creator>Clayton Chu</dc:creator>
		<pubDate>Wed, 01 Sep 2010 22:35:01 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/desktop/2009/09/14/matlab-emacs-integration-is-back/#comment-7278</guid>
		<description>If anyone is interested - I figured out the solution to my problem. The editor in the MATLAB preferences should be:

emacsclient -a emacs -n

So if there&#039;s no current emacs server, it&#039;ll open a new emacs window.</description>
		<content:encoded><![CDATA[<p>If anyone is interested &#8211; I figured out the solution to my problem. The editor in the MATLAB preferences should be:</p>
<p>emacsclient -a emacs -n</p>
<p>So if there&#8217;s no current emacs server, it&#8217;ll open a new emacs window.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

