diff options
| author | Jan Djärv | 2010-09-21 09:31:01 +0200 |
|---|---|---|
| committer | Jan Djärv | 2010-09-21 09:31:01 +0200 |
| commit | 36a1b6dba765828d617d6e4481f04acd3f809ad1 (patch) | |
| tree | 0a1bc86a2eb2b2e54bf708674f4294822d996797 | |
| parent | 8cf1771a55661ee7957d460395df5fe6ffcc8d6b (diff) | |
| download | emacs-36a1b6dba765828d617d6e4481f04acd3f809ad1.tar.gz emacs-36a1b6dba765828d617d6e4481f04acd3f809ad1.zip | |
Use tool-bar-position in menu Options/Show.
* menu-bar.el (menu-bar-set-tool-bar-position): customize-set-variable
tool-bar-position. Don't modify frame parameters here.
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/menu-bar.el | 11 |
2 files changed, 5 insertions, 9 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 5e7ae954b8a..6d4b07bb18b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2010-09-21 Jan Djärv <jan.h.d@swipnet.se> | 1 | 2010-09-21 Jan Djärv <jan.h.d@swipnet.se> |
| 2 | 2 | ||
| 3 | * menu-bar.el (menu-bar-set-tool-bar-position): customize-set-variable | ||
| 4 | tool-bar-position. Don't modify frame parameters here. | ||
| 5 | |||
| 3 | * tool-bar.el (tool-bar-position): New defcustom (Bug#7049). | 6 | * tool-bar.el (tool-bar-position): New defcustom (Bug#7049). |
| 4 | 7 | ||
| 5 | 2010-09-20 Stefan Monnier <monnier@iro.umontreal.ca> | 8 | 2010-09-20 Stefan Monnier <monnier@iro.umontreal.ca> |
diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el index d0a8653f95c..0659ae98717 100644 --- a/lisp/menu-bar.el +++ b/lisp/menu-bar.el | |||
| @@ -691,7 +691,7 @@ by \"Save Options\" in Custom buffers.") | |||
| 691 | ;; Nonetheless, not saving it would like be confuse | 691 | ;; Nonetheless, not saving it would like be confuse |
| 692 | ;; more often. | 692 | ;; more often. |
| 693 | ;; -- Per Abrahamsen <abraham@dina.kvl.dk> 2002-02-11. | 693 | ;; -- Per Abrahamsen <abraham@dina.kvl.dk> 2002-02-11. |
| 694 | text-mode-hook)) | 694 | text-mode-hook tool-bar-position)) |
| 695 | (and (get elt 'customized-value) | 695 | (and (get elt 'customized-value) |
| 696 | (customize-mark-to-save elt) | 696 | (customize-mark-to-save elt) |
| 697 | (setq need-save t))) | 697 | (setq need-save t))) |
| @@ -981,13 +981,7 @@ mail status in mode line")) | |||
| 981 | 981 | ||
| 982 | (defun menu-bar-set-tool-bar-position (position) | 982 | (defun menu-bar-set-tool-bar-position (position) |
| 983 | (customize-set-variable 'tool-bar-mode t) | 983 | (customize-set-variable 'tool-bar-mode t) |
| 984 | (dolist (frame (frame-list)) | 984 | (customize-set-variable 'tool-bar-position position)) |
| 985 | (set-frame-parameter frame 'tool-bar-position position)) | ||
| 986 | (customize-set-variable 'default-frame-alist | ||
| 987 | (cons (cons 'tool-bar-position position) | ||
| 988 | (assq-delete-all 'tool-bar-position | ||
| 989 | default-frame-alist)))) | ||
| 990 | |||
| 991 | (defun menu-bar-showhide-tool-bar-menu-customize-disable () | 985 | (defun menu-bar-showhide-tool-bar-menu-customize-disable () |
| 992 | "Do not display tool bars." | 986 | "Do not display tool bars." |
| 993 | (interactive) | 987 | (interactive) |
| @@ -996,7 +990,6 @@ mail status in mode line")) | |||
| 996 | "Display tool bars on the left side." | 990 | "Display tool bars on the left side." |
| 997 | (interactive) | 991 | (interactive) |
| 998 | (menu-bar-set-tool-bar-position 'left)) | 992 | (menu-bar-set-tool-bar-position 'left)) |
| 999 | |||
| 1000 | (defun menu-bar-showhide-tool-bar-menu-customize-enable-right () | 993 | (defun menu-bar-showhide-tool-bar-menu-customize-enable-right () |
| 1001 | "Display tool bars on the right side." | 994 | "Display tool bars on the right side." |
| 1002 | (interactive) | 995 | (interactive) |