From: Rüdiger S. <rue...@c-...> - 2010-11-27 17:05:14
|
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] |