diff options
| -rw-r--r-- | lisp/menu-bar.el | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el index fca39856a8c..c2536e2432f 100644 --- a/lisp/menu-bar.el +++ b/lisp/menu-bar.el | |||
| @@ -147,7 +147,8 @@ | |||
| 147 | (kill-region beg end))) | 147 | (kill-region beg end))) |
| 148 | 148 | ||
| 149 | (defun menu-bar-enable-clipboard () | 149 | (defun menu-bar-enable-clipboard () |
| 150 | "Make the menu bar CUT, PASTE and COPY items use the clipboard." | 150 | "Make CUT, PASTE and COPY (keys and menu bar items) use the clipboard. |
| 151 | Do the same for the keys of the same name." | ||
| 151 | (interactive) | 152 | (interactive) |
| 152 | ;; We can't use constant list structure here because it becomes pure, | 153 | ;; We can't use constant list structure here because it becomes pure, |
| 153 | ;; and because it gets modified with cache data. | 154 | ;; and because it gets modified with cache data. |
| @@ -156,16 +157,15 @@ | |||
| 156 | (define-key menu-bar-edit-menu [copy] | 157 | (define-key menu-bar-edit-menu [copy] |
| 157 | (cons "Copy" 'clipboard-kill-ring-save)) | 158 | (cons "Copy" 'clipboard-kill-ring-save)) |
| 158 | (define-key menu-bar-edit-menu [cut] | 159 | (define-key menu-bar-edit-menu [cut] |
| 159 | (cons "Cut" 'clipboard-kill-region))) | 160 | (cons "Cut" 'clipboard-kill-region)) |
| 160 | 161 | ||
| 161 | ;; Sun expects these commands on these keys, so why not? | 162 | (define-key global-map [f20] 'clipboard-kill-region) |
| 162 | (define-key global-map [f20] 'clipboard-kill-region) | 163 | (define-key global-map [f16] 'clipboard-kill-ring-save) |
| 163 | (define-key global-map [f16] 'clipboard-kill-ring-save) | 164 | (define-key global-map [f18] 'clipboard-yank) |
| 164 | (define-key global-map [f18] 'clipboard-yank) | 165 | ;; X11R6 versions |
| 165 | ;; X11R6 versions | 166 | (define-key global-map [cut] 'clipboard-kill-region) |
| 166 | (define-key global-map [cut] 'clipboard-kill-region) | 167 | (define-key global-map [copy] 'clipboard-kill-ring-save) |
| 167 | (define-key global-map [copy] 'clipboard-kill-ring-save) | 168 | (define-key global-map [paste] 'clipboard-yank)) |
| 168 | (define-key global-map [paste] 'clipboard-yank) | ||
| 169 | 169 | ||
| 170 | (define-key menu-bar-help-menu [emacs-version] | 170 | (define-key menu-bar-help-menu [emacs-version] |
| 171 | '("Show Version" . emacs-version)) | 171 | '("Show Version" . emacs-version)) |