Mercurial > emacs
comparison lisp/s-region.el @ 7991:f2e16be5a263
Don't bind keys C-insert, C-delete, and
S-insert if they are already bound.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 21 Jun 1994 15:42:25 +0000 |
parents | 42589aecdd59 |
children | 5416e2c64d19 |
comparison
equal
deleted
inserted
replaced
7990:6be46752d57f | 7991:f2e16be5a263 |
---|---|
32 ;; Currently, s-region-move may be bound only to events that are vectors | 32 ;; Currently, s-region-move may be bound only to events that are vectors |
33 ;; of length one and whose last element is a symbol. Also, the functions | 33 ;; of length one and whose last element is a symbol. Also, the functions |
34 ;; that are given this kind of overlay should be (interactive "p") | 34 ;; that are given this kind of overlay should be (interactive "p") |
35 ;; functions. | 35 ;; functions. |
36 | 36 |
37 ;; If the following keys are not already bound then... | |
37 ;; C-insert is bound to copy-region-as-kill | 38 ;; C-insert is bound to copy-region-as-kill |
38 ;; S-delete is bound to kill-region | 39 ;; S-delete is bound to kill-region |
39 ;; S-insert is bound to yank | 40 ;; S-insert is bound to yank |
40 | 41 |
41 ;;; Code: | 42 ;;; Code: |
92 [M-left] [M-right] [M-up] [M-down] | 93 [M-left] [M-right] [M-up] [M-down] |
93 [next] [previous] [home] [end] | 94 [next] [previous] [home] [end] |
94 [C-next] [C-previous] [C-home] [C-end] | 95 [C-next] [C-previous] [C-home] [C-end] |
95 [M-next] [M-previous] [M-home] [M-end])) | 96 [M-next] [M-previous] [M-home] [M-end])) |
96 | 97 |
97 (global-set-key [C-insert] 'copy-region-as-kill) | 98 (or (global-key-binding [C-insert]) |
98 (global-set-key [S-delete] 'kill-region) | 99 (global-set-key [C-insert] 'copy-region-as-kill)) |
99 (global-set-key [S-insert] 'yank) | 100 (or (global-key-binding [C-delete]) |
101 (global-set-key [S-delete] 'kill-region)) | |
102 (or (global-key-binding [S-insert]) | |
103 (global-set-key [S-insert] 'yank)) | |
100 | 104 |
101 (provide 's-region) | 105 (provide 's-region) |
102 | 106 |
103 ;; s-region.el ends here. | 107 ;; s-region.el ends here. |