diff options
author | Jan Djärv <jan.h.d@swipnet.se> | 2004-05-03 21:48:21 +0000 |
---|---|---|
committer | Jan Djärv <jan.h.d@swipnet.se> | 2004-05-03 21:48:21 +0000 |
commit | 0928a1d8258b49e371342234bc43f5005ff410bf (patch) | |
tree | 0e3f0c4dc7968d9d02e0c707608c910b9f7d9203 /lisp/toolbar | |
parent | b36ee2a6ec604eb6a6c65d8c10c4ca1ad477c60e (diff) | |
download | emacs-0928a1d8258b49e371342234bc43f5005ff410bf.tar.gz |
* toolbar/tool-bar.el (tool-bar-setup): Use lookup-key for
cut/copy/paste in case menu-bar-enable-clipboard is in effect.
Diffstat (limited to 'lisp/toolbar')
-rw-r--r-- | lisp/toolbar/tool-bar.el | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lisp/toolbar/tool-bar.el b/lisp/toolbar/tool-bar.el index 425789eb80e..6b890e5078f 100644 --- a/lisp/toolbar/tool-bar.el +++ b/lisp/toolbar/tool-bar.el @@ -239,11 +239,14 @@ MAP must contain appropriate binding for `[menu-bar]' which holds a keymap." (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") |