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:
parent
fd7850d401
commit
5ee5284da9
1 changed files with 7 additions and 2 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue