From 2165f6764777f497295afc9352325c5023d0ab66 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Fri, 8 Apr 1994 05:26:47 +0000 Subject: [PATCH] (global-map): Bind function keys f16, f18 and f20, which Sun knows as copy, paste and cut. --- lisp/menu-bar.el | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el index 8b51ba65119..c4c11053860 100644 --- a/lisp/menu-bar.el +++ b/lisp/menu-bar.el @@ -92,10 +92,6 @@ ;; These are alternative definitions for the cut, paste and copy ;; menu items. Use them if your system expects these to use the clipboard -(define-key global-map [cut] 'clipboard-kill-region) -(define-key global-map [copy] 'clipboard-kill-ring-save) -(define-key global-map [paste] 'clipboard-yank) - (put 'clipboard-kill-region 'menu-enable 'mark-active) (put 'clipboard-kill-ring-save 'menu-enable 'mark-active) (put 'clipboard-yank 'menu-enable @@ -125,6 +121,11 @@ (define-key menu-bar-edit-menu [paste] '("Paste" . clipboard-yank)) (define-key menu-bar-edit-menu [copy] '("Copy" . clipboard-kill-ring-save)) (define-key menu-bar-edit-menu [cut] '("Cut" . clipboard-kill-region))) + +;; Sun expects these commands on these keys, so why not? +(define-key global-map [f20] 'clipboard-kill-region) +(define-key global-map [f16] 'clipboard-kill-ring-save) +(define-key global-map [f18] 'clipboard-yank) (define-key menu-bar-help-menu [emacs-tutorial] '("Emacs Tutorial" . help-with-tutorial)) -- 2.39.5