# HG changeset patch # User Stefan Monnier # Date 1026859569 0 # Node ID 7350385eb42a29e3bbdd3847307838eb7d005016 # Parent 41a9b77a30870133bfc5f0c354dfafd2d07e819b (tool-bar-add-item-from-menu): Make sure to change the global tool-bar-map. diff -r 41a9b77a3087 -r 7350385eb42a lisp/toolbar/tool-bar.el --- a/lisp/toolbar/tool-bar.el Tue Jul 16 20:53:59 2002 +0000 +++ b/lisp/toolbar/tool-bar.el Tue Jul 16 22:46:09 2002 +0000 @@ -149,7 +149,8 @@ Use this function only to make bindings in the global value of `tool-bar-map'. To define items in any other map, use `tool-bar-local-item'." - (apply 'tool-bar-local-item-from-menu command icon tool-bar-map map props)) + (apply 'tool-bar-local-item-from-menu command icon + (default-value 'tool-bar-map) map props)) ;;;###autoload (defun tool-bar-local-item-from-menu (command icon in-map &optional from-map &rest props)