Patch from Rudiger Sonderfeld

(matlab-frame-init): Add a "switch to" in addition to "start" matlab
menu item to make it clear what will happen.
This commit is contained in:
zappo 2010-12-06 14:48:20 +00:00
parent fd7850d401
commit 5ee5284da9

View file

@ -4031,7 +4031,7 @@ desired. Optional argument FAST is not used."
"Keymap used in MATLAB mode to provide a menu.")
(defun matlab-frame-init ()
"Initialize Emacs 19+ menu system."
"Initialize Emacs menu system."
(interactive)
;; make a menu keymap
(easy-menu-define
@ -4039,7 +4039,12 @@ desired. Optional argument FAST is not used."
matlab-mode-map
"MATLAB menu"
'("MATLAB"
["Start MATLAB" matlab-shell (not (matlab-with-emacs-link)) ]
["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) ]
["Save and go" matlab-shell-save-and-go t]
["Run Region" matlab-shell-run-region t]
["Run Cell" matlab-shell-run-cell t]