-2004-05-03 Jan D. <jhd@gaffa.localdomain>
+2004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
+
+ * toolbar/tool-bar.el (tool-bar-setup): Use lookup-key for
+ cut/copy/paste in case menu-bar-enable-clipboard is in effect.
+
+2004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
* term/x-win.el (x-clipboard-yank): Don't exit on error from
x-get-selection.
(tool-bar-add-item-from-menu 'undo "undo" nil
:visible '(not (eq 'special (get major-mode
'mode-class))))
- (tool-bar-add-item-from-menu 'kill-region "cut" nil
+ (tool-bar-add-item-from-menu (lookup-key menu-bar-edit-menu [cut])
+ "cut" nil
:visible '(not (eq 'special (get major-mode
'mode-class))))
- (tool-bar-add-item-from-menu 'menu-bar-kill-ring-save "copy")
- (tool-bar-add-item-from-menu 'yank "paste" nil
+ (tool-bar-add-item-from-menu (lookup-key menu-bar-edit-menu [copy])
+ "copy")
+ (tool-bar-add-item-from-menu (lookup-key menu-bar-edit-menu [paste])
+ "paste" nil
:visible '(not (eq 'special (get major-mode
'mode-class))))
(tool-bar-add-item-from-menu 'nonincremental-search-forward "search")