aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Rudalics2011-10-17 14:52:31 +0200
committerMartin Rudalics2011-10-17 14:52:31 +0200
commitb8f7ff0d824570ae86e41d4c7d2ada423a231d24 (patch)
tree4b9f7c4af28527b5e7046ece435931d8ed26cecd
parent344465fd3b73502ea266e1009e99be93600d812f (diff)
downloademacs-b8f7ff0d824570ae86e41d4c7d2ada423a231d24.tar.gz
emacs-b8f7ff0d824570ae86e41d4c7d2ada423a231d24.zip
Rewrite window related menu entries. (Bug#6786)
* menu-bar.el (menu-bar-file-menu): Add entry for making new window on right of selected. (Bug#6786) Reword other window entries and separate them from frame entries.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/menu-bar.el24
2 files changed, 22 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index abae693d0c8..90c1c42323b 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12011-10-17 Martin Rudalics <rudalics@gmx.at>
2
3 * menu-bar.el (menu-bar-file-menu): Add entry for making new
4 window on right of selected. (Bug#6786) Reword other window
5 entries and separate them from frame entries.
6
12011-10-15 Glenn Morris <rgm@gnu.org> 72011-10-15 Glenn Morris <rgm@gnu.org>
2 8
3 * emacs-lisp/ert.el (ert--explain-equal-rec, ert-select-tests): 9 * emacs-lisp/ert.el (ert--explain-equal-rec, ert-select-tests):
diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el
index eceb3afc147..d75a768e2d4 100644
--- a/lisp/menu-bar.el
+++ b/lisp/menu-bar.el
@@ -92,17 +92,25 @@
92 :visible (fboundp 'make-frame-command) 92 :visible (fboundp 'make-frame-command)
93 :help ,(purecopy "Open a new frame"))) 93 :help ,(purecopy "Open a new frame")))
94 94
95 (define-key menu [separator-frame]
96 menu-bar-separator)
97
95 (define-key menu [one-window] 98 (define-key menu [one-window]
96 `(menu-item ,(purecopy "Remove Splits") delete-other-windows 99 `(menu-item ,(purecopy "Remove Other Windows") delete-other-windows
97 :enable (not (one-window-p t nil)) 100 :enable (not (one-window-p t nil))
98 :help ,(purecopy 101 :help ,(purecopy "Make selected window fill whole frame")))
99 "Selected window grows to fill the whole frame"))) 102
103 (define-key menu [new-window-on-right]
104 `(menu-item ,(purecopy "New Window on Right") split-window-side-by-side
105 :enable (and (menu-bar-menu-frame-live-and-visible-p)
106 (menu-bar-non-minibuffer-window-p))
107 :help ,(purecopy "Make new window on right of selected one")))
100 108
101 (define-key menu [split-window] 109 (define-key menu [new-window-below]
102 `(menu-item ,(purecopy "Split Window") split-window-vertically 110 `(menu-item ,(purecopy "New Window Below") split-window-above-each-other
103 :enable (and (menu-bar-menu-frame-live-and-visible-p) 111 :enable (and (menu-bar-menu-frame-live-and-visible-p)
104 (menu-bar-non-minibuffer-window-p)) 112 (menu-bar-non-minibuffer-window-p))
105 :help ,(purecopy "Split selected window in two windows"))) 113 :help ,(purecopy "Make new window below selected one")))
106 114
107 (define-key menu [separator-window] 115 (define-key menu [separator-window]
108 menu-bar-separator) 116 menu-bar-separator)
@@ -433,7 +441,7 @@
433 441
434(defvar menu-bar-edit-menu 442(defvar menu-bar-edit-menu
435 (let ((menu (make-sparse-keymap "Edit"))) 443 (let ((menu (make-sparse-keymap "Edit")))
436 444
437 (define-key menu [props] 445 (define-key menu [props]
438 `(menu-item ,(purecopy "Text Properties") facemenu-menu)) 446 `(menu-item ,(purecopy "Text Properties") facemenu-menu))
439 447
@@ -1645,7 +1653,7 @@ key, a click, or a menu-item")))
1645 1653
1646(defvar menu-bar-search-documentation-menu 1654(defvar menu-bar-search-documentation-menu
1647 (let ((menu (make-sparse-keymap "Search Documentation"))) 1655 (let ((menu (make-sparse-keymap "Search Documentation")))
1648 1656
1649 (define-key menu [search-documentation-strings] 1657 (define-key menu [search-documentation-strings]
1650 `(menu-item ,(purecopy "Search Documentation Strings...") apropos-documentation 1658 `(menu-item ,(purecopy "Search Documentation Strings...") apropos-documentation
1651 :help 1659 :help