diff options
| author | Stefan Monnier | 2002-07-16 22:46:09 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2002-07-16 22:46:09 +0000 |
| commit | 03a8bf7ddd8dbea25884e09eeb92751d8e592e02 (patch) | |
| tree | 4d712db7de73c7da2a964b006243cddbbe61d1c3 | |
| parent | bc71812e08a49334585d559b06b62821d9cf3f2a (diff) | |
| download | emacs-03a8bf7ddd8dbea25884e09eeb92751d8e592e02.tar.gz emacs-03a8bf7ddd8dbea25884e09eeb92751d8e592e02.zip | |
(tool-bar-add-item-from-menu): Make sure to change the global tool-bar-map.
| -rw-r--r-- | lisp/toolbar/tool-bar.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/toolbar/tool-bar.el b/lisp/toolbar/tool-bar.el index 8a5561f7f55..4cee4a00e65 100644 --- a/lisp/toolbar/tool-bar.el +++ b/lisp/toolbar/tool-bar.el | |||
| @@ -149,7 +149,8 @@ MAP must contain appropriate binding for `[menu-bar]' which holds a keymap. | |||
| 149 | 149 | ||
| 150 | Use this function only to make bindings in the global value of `tool-bar-map'. | 150 | Use this function only to make bindings in the global value of `tool-bar-map'. |
| 151 | To define items in any other map, use `tool-bar-local-item'." | 151 | To define items in any other map, use `tool-bar-local-item'." |
| 152 | (apply 'tool-bar-local-item-from-menu command icon tool-bar-map map props)) | 152 | (apply 'tool-bar-local-item-from-menu command icon |
| 153 | (default-value 'tool-bar-map) map props)) | ||
| 153 | 154 | ||
| 154 | ;;;###autoload | 155 | ;;;###autoload |
| 155 | (defun tool-bar-local-item-from-menu (command icon in-map &optional from-map &rest props) | 156 | (defun tool-bar-local-item-from-menu (command icon in-map &optional from-map &rest props) |