diff options
| -rw-r--r-- | lisp/menu-bar.el | 33 |
1 files changed, 26 insertions, 7 deletions
diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el index 90f9ef78c59..8f825a19adc 100644 --- a/lisp/menu-bar.el +++ b/lisp/menu-bar.el | |||
| @@ -1649,6 +1649,27 @@ mail status in mode line")) | |||
| 1649 | 1649 | ||
| 1650 | menu)) | 1650 | menu)) |
| 1651 | 1651 | ||
| 1652 | (defvar menu-bar-shell-commands-menu | ||
| 1653 | (let ((menu (make-sparse-keymap "Shell Commands"))) | ||
| 1654 | (bindings--define-key menu [interactive-shell] | ||
| 1655 | '(menu-item "Run Shell Interactively" shell | ||
| 1656 | :help "Run a subshell interactively")) | ||
| 1657 | |||
| 1658 | (bindings--define-key menu [async-shell-command] | ||
| 1659 | '(menu-item "Async Shell Command..." async-shell-command | ||
| 1660 | :help "Invoke a shell command asynchronously in background")) | ||
| 1661 | |||
| 1662 | (bindings--define-key menu [shell-on-region] | ||
| 1663 | '(menu-item "Shell Command on Region..." shell-command-on-region | ||
| 1664 | :enable mark-active | ||
| 1665 | :help "Pass marked region to a shell command")) | ||
| 1666 | |||
| 1667 | (bindings--define-key menu [shell] | ||
| 1668 | '(menu-item "Shell Command..." shell-command | ||
| 1669 | :help "Invoke a shell command and catch its output")) | ||
| 1670 | |||
| 1671 | menu)) | ||
| 1672 | |||
| 1652 | (defun menu-bar-read-mail () | 1673 | (defun menu-bar-read-mail () |
| 1653 | "Read mail using `read-mail-command'." | 1674 | "Read mail using `read-mail-command'." |
| 1654 | (interactive) | 1675 | (interactive) |
| @@ -1740,16 +1761,14 @@ mail status in mode line")) | |||
| 1740 | (bindings--define-key menu [gdb] | 1761 | (bindings--define-key menu [gdb] |
| 1741 | '(menu-item "Debugger (GDB)..." gdb | 1762 | '(menu-item "Debugger (GDB)..." gdb |
| 1742 | :help "Debug a program from within Emacs with GDB")) | 1763 | :help "Debug a program from within Emacs with GDB")) |
| 1743 | (bindings--define-key menu [shell-on-region] | ||
| 1744 | '(menu-item "Shell Command on Region..." shell-command-on-region | ||
| 1745 | :enable mark-active | ||
| 1746 | :help "Pass marked region to a shell command")) | ||
| 1747 | (bindings--define-key menu [shell] | ||
| 1748 | '(menu-item "Shell Command..." shell-command | ||
| 1749 | :help "Invoke a shell command and catch its output")) | ||
| 1750 | (bindings--define-key menu [compile] | 1764 | (bindings--define-key menu [compile] |
| 1751 | '(menu-item "Compile..." compile | 1765 | '(menu-item "Compile..." compile |
| 1752 | :help "Invoke compiler or Make, view compilation errors")) | 1766 | :help "Invoke compiler or Make, view compilation errors")) |
| 1767 | |||
| 1768 | (bindings--define-key menu [shell-commands] | ||
| 1769 | `(menu-item "Shell Commands" | ||
| 1770 | ,menu-bar-shell-commands-menu)) | ||
| 1771 | |||
| 1753 | (bindings--define-key menu [rgrep] | 1772 | (bindings--define-key menu [rgrep] |
| 1754 | '(menu-item "Recursive Grep..." rgrep | 1773 | '(menu-item "Recursive Grep..." rgrep |
| 1755 | :help "Interactively ask for parameters and search recursively")) | 1774 | :help "Interactively ask for parameters and search recursively")) |