X-Git-Url: http://git.hcoop.net/bpt/emacs.git/blobdiff_plain/14cc04aa161d7d070a6f3f7038a44fd2a3657977..84bd6e9e02c051816d8ba8e31fec2c3f912ae8fa:/lisp/menu-bar.el diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el index caae40ed8c..2394779511 100644 --- a/lisp/menu-bar.el +++ b/lisp/menu-bar.el @@ -92,17 +92,25 @@ :visible (fboundp 'make-frame-command) :help ,(purecopy "Open a new frame"))) + (define-key menu [separator-frame] + menu-bar-separator) + (define-key menu [one-window] - `(menu-item ,(purecopy "Remove Splits") delete-other-windows + `(menu-item ,(purecopy "Remove Other Windows") delete-other-windows :enable (not (one-window-p t nil)) - :help ,(purecopy - "Selected window grows to fill the whole frame"))) + :help ,(purecopy "Make selected window fill whole frame"))) - (define-key menu [split-window] - `(menu-item ,(purecopy "Split Window") split-window-vertically + (define-key menu [new-window-on-right] + `(menu-item ,(purecopy "New Window on Right") split-window-right :enable (and (menu-bar-menu-frame-live-and-visible-p) (menu-bar-non-minibuffer-window-p)) - :help ,(purecopy "Split selected window in two windows"))) + :help ,(purecopy "Make new window on right of selected one"))) + + (define-key menu [new-window-below] + `(menu-item ,(purecopy "New Window Below") split-window-below + :enable (and (menu-bar-menu-frame-live-and-visible-p) + (menu-bar-non-minibuffer-window-p)) + :help ,(purecopy "Make new window below selected one"))) (define-key menu [separator-window] menu-bar-separator) @@ -433,7 +441,7 @@ (defvar menu-bar-edit-menu (let ((menu (make-sparse-keymap "Edit"))) - + (define-key menu [props] `(menu-item ,(purecopy "Text Properties") facemenu-menu)) @@ -985,7 +993,7 @@ by \"Save Options\" in Custom buffers.") (let ((menu (make-sparse-keymap "Tool-bar"))) (define-key menu [showhide-tool-bar-left] - `(menu-item ,(purecopy "On the left") + `(menu-item ,(purecopy "On the Left") menu-bar-showhide-tool-bar-menu-customize-enable-left :help ,(purecopy "Tool-bar at the left side") :visible (display-graphic-p) @@ -997,7 +1005,7 @@ by \"Save Options\" in Custom buffers.") 'left))))) (define-key menu [showhide-tool-bar-right] - `(menu-item ,(purecopy "On the right") + `(menu-item ,(purecopy "On the Right") menu-bar-showhide-tool-bar-menu-customize-enable-right :help ,(purecopy "Tool-bar at the right side") :visible (display-graphic-p) @@ -1009,7 +1017,7 @@ by \"Save Options\" in Custom buffers.") 'right))))) (define-key menu [showhide-tool-bar-bottom] - `(menu-item ,(purecopy "On the bottom") + `(menu-item ,(purecopy "On the Bottom") menu-bar-showhide-tool-bar-menu-customize-enable-bottom :help ,(purecopy "Tool-bar at the bottom") :visible (display-graphic-p) @@ -1021,7 +1029,7 @@ by \"Save Options\" in Custom buffers.") 'bottom))))) (define-key menu [showhide-tool-bar-top] - `(menu-item ,(purecopy "On the top") + `(menu-item ,(purecopy "On the Top") menu-bar-showhide-tool-bar-menu-customize-enable-top :help ,(purecopy "Tool-bar at the top") :visible (display-graphic-p) @@ -1200,7 +1208,7 @@ mail status in mode line")) (define-key menu [menu-system-font] (menu-bar-make-toggle toggle-use-system-font font-use-system-font - "Use system font" + "Use System Font" "Use system font: %s" "Use the monospaced font defined by the system"))) @@ -1304,7 +1312,7 @@ mail status in mode line")) (eq 'turn-on-auto-fill text-mode-hook))))) (define-key menu [line-wrapping] - `(menu-item ,(purecopy "Line Wrapping in this Buffer") + `(menu-item ,(purecopy "Line Wrapping in This Buffer") ,menu-bar-line-wrapping-menu)) @@ -1645,7 +1653,7 @@ key, a click, or a menu-item"))) (defvar menu-bar-search-documentation-menu (let ((menu (make-sparse-keymap "Search Documentation"))) - + (define-key menu [search-documentation-strings] `(menu-item ,(purecopy "Search Documentation Strings...") apropos-documentation :help @@ -2161,11 +2169,13 @@ It must accept a buffer as its only required argument.") :help ,(purecopy "Put previous minibuffer history element in the minibuffer")))) (define-minor-mode menu-bar-mode - "Toggle display of a menu bar on each frame. + "Toggle display of a menu bar on each frame (Menu Bar mode). +With a prefix argument ARG, enable Menu Bar mode if ARG is +positive, and disable it otherwise. If called from Lisp, enable +Menu Bar mode if ARG is omitted or nil. + This command applies to all frames that exist and frames to be -created in the future. -With a numeric argument, if the argument is positive, -turn on menu bars; otherwise, turn off menu bars." +created in the future." :init-value t :global t ;; It's defined in C/cus-start, this stops the d-m-m macro defining it again.