From: Eric L. <Eri...@ma...> - 2010-12-06 14:49:01
|
Thanks! I've checked in that change. Eric -----Original Message----- From: Rüdiger Sonderfeld [mailto:rue...@c-...] Sent: Saturday, November 27, 2010 11:49 AM To: mat...@li... Subject: [Matlab-emacs-discuss] [PATCH] Menu: if matlab shell is active replace "Start MATLAB" with "Switch to MATLAB" Hello, I wrote a small patch to replace the "Start MATLAB" menu entry with a "Switch to MATLAB" entry when the matlab shell is active. This might look like a minor detail but I think it improves the usability. It makes it clear that "Start MATLAB" won't start another shell but switch to the existing one. Regards, Rüdiger diff --git a/matlab.el b/matlab.el index 2ab7cc5..45d18d1 100644 --- a/matlab.el +++ b/matlab.el @@ -4039,8 +4039,7 @@ desired. Optional argument FAST is not used." matlab-mode-map "MATLAB menu" '("MATLAB" - ["Start MATLAB" matlab-shell :active (not (or (matlab-with-emacs-link) (matlab-shell-active-p))) :visible (not (matlab-shell-active-p)) ] - ["Switch to MATLAB" matlab-shell :active (and (not (matlab-with-emacs- link)) (matlab-shell-active-p)) :visible (matlab-shell-active-p) ] + ["Start MATLAB" matlab-shell (not (matlab-with-emacs-link)) ] ["Save and go" matlab-shell-save-and-go t] ["Run Region" matlab-shell-run-region t] ["Run Cell" matlab-shell-run-cell t] ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Matlab-emacs-discuss mailing list Mat...@li... https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss |