diff options
| author | Kim F. Storm | 2003-01-25 11:41:58 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2003-01-25 11:41:58 +0000 |
| commit | d6f9ff152a19d0359a108088200fcbdaa0da5b3b (patch) | |
| tree | d5a66033a3a0b3867251b2cf87eb49a9478f06e7 | |
| parent | 7a2fe6fa6a2711498c751fb641b1db5bc51d19e1 (diff) | |
| download | emacs-d6f9ff152a19d0359a108088200fcbdaa0da5b3b.tar.gz emacs-d6f9ff152a19d0359a108088200fcbdaa0da5b3b.zip | |
* emulation/cua-base.el (cua--init-keymaps): Move C-S-x and C-S-c
bindings from cua--cua-keys-keymap to cua--region-keymap, as they are
only needed when the region is active. This also makes the output
from C-h b look normal when cua-mode is enabled (no C-S-x/c bindings).
| -rw-r--r-- | lisp/ChangeLog | 13 | ||||
| -rw-r--r-- | lisp/emulation/cua-base.el | 5 |
2 files changed, 12 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index bfe0c092b4f..16cf0bac0da 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2003-01-25 Kim F. Storm <storm@cua.dk> | ||
| 2 | |||
| 3 | * emulation/cua-base.el (cua--init-keymaps): Move C-S-x and C-S-c | ||
| 4 | bindings from cua--cua-keys-keymap to cua--region-keymap, as they are | ||
| 5 | only needed when the region is active. This also makes the output | ||
| 6 | from C-h b look normal when cua-mode is enabled (no C-S-x/c bindings). | ||
| 7 | |||
| 1 | 2003-01-25 Michael Kifer <kifer@cs.stonybrook.edu> | 8 | 2003-01-25 Michael Kifer <kifer@cs.stonybrook.edu> |
| 2 | 9 | ||
| 3 | * ediff.el (ediff-revision): better defaults. | 10 | * ediff.el (ediff-revision): better defaults. |
| @@ -10,12 +17,10 @@ | |||
| 10 | * info.el (Info-extract-menu-node-name): When looking for end of menu | 17 | * info.el (Info-extract-menu-node-name): When looking for end of menu |
| 11 | item, don't stop at first ":"; instead, continue until trailing | 18 | item, don't stop at first ":"; instead, continue until trailing |
| 12 | context is either a space or newline. | 19 | context is either a space or newline. |
| 13 | (Info-complete-menu-item): Change var `pattern' to allow ":" in menu | 20 | (Info-complete-menu-item): Var `pattern': allow ":" in menu item. |
| 14 | item. | ||
| 15 | (Info-menu): Likewise, for regexp used in backwards search. | 21 | (Info-menu): Likewise, for regexp used in backwards search. |
| 16 | (Info-try-follow-nearest-node): Remove case added in previous edit. | 22 | (Info-try-follow-nearest-node): Remove case added in previous edit. |
| 17 | Instead, change the regexp in the following case to allow ":" in menu | 23 | Change regexp in the following case to allow ":" in menu item. |
| 18 | item. | ||
| 19 | (Info-fontify-node): Fix bug: Handle `next-property-change' returning | 24 | (Info-fontify-node): Fix bug: Handle `next-property-change' returning |
| 20 | point-max as "hasn't already been done". | 25 | point-max as "hasn't already been done". |
| 21 | 26 | ||
diff --git a/lisp/emulation/cua-base.el b/lisp/emulation/cua-base.el index 9018e0e95d3..8a2efcc8b0e 100644 --- a/lisp/emulation/cua-base.el +++ b/lisp/emulation/cua-base.el | |||
| @@ -1115,9 +1115,7 @@ Extra commands should be added to `cua-user-movement-commands'") | |||
| 1115 | (define-key cua-global-keymap [remap advertised-undo] 'cua-undo) | 1115 | (define-key cua-global-keymap [remap advertised-undo] 'cua-undo) |
| 1116 | 1116 | ||
| 1117 | (define-key cua--cua-keys-keymap [(control x) timeout] 'kill-region) | 1117 | (define-key cua--cua-keys-keymap [(control x) timeout] 'kill-region) |
| 1118 | (define-key cua--cua-keys-keymap [(shift control x)] 'Control-X-prefix) | ||
| 1119 | (define-key cua--cua-keys-keymap [(control c) timeout] 'copy-region-as-kill) | 1118 | (define-key cua--cua-keys-keymap [(control c) timeout] 'copy-region-as-kill) |
| 1120 | (define-key cua--cua-keys-keymap [(shift control c)] 'mode-specific-command-prefix) | ||
| 1121 | (define-key cua--cua-keys-keymap [(control z)] 'undo) | 1119 | (define-key cua--cua-keys-keymap [(control z)] 'undo) |
| 1122 | (define-key cua--cua-keys-keymap [(control v)] 'yank) | 1120 | (define-key cua--cua-keys-keymap [(control v)] 'yank) |
| 1123 | (define-key cua--cua-keys-keymap [(meta v)] 'cua-repeat-replace-region) | 1121 | (define-key cua--cua-keys-keymap [(meta v)] 'cua-repeat-replace-region) |
| @@ -1137,6 +1135,9 @@ Extra commands should be added to `cua-user-movement-commands'") | |||
| 1137 | (define-key cua--prefix-repeat-keymap [(control c) left] 'cua--prefix-copy-handler) | 1135 | (define-key cua--prefix-repeat-keymap [(control c) left] 'cua--prefix-copy-handler) |
| 1138 | (define-key cua--prefix-repeat-keymap [(control c) right] 'cua--prefix-copy-handler) | 1136 | (define-key cua--prefix-repeat-keymap [(control c) right] 'cua--prefix-copy-handler) |
| 1139 | 1137 | ||
| 1138 | ;; Enable shifted fallbacks for C-x and C-c when region is active | ||
| 1139 | (define-key cua--region-keymap [(shift control x)] 'Control-X-prefix) | ||
| 1140 | (define-key cua--region-keymap [(shift control c)] 'mode-specific-command-prefix) | ||
| 1140 | ;; replace current region | 1141 | ;; replace current region |
| 1141 | (define-key cua--region-keymap [remap self-insert-command] 'cua-replace-region) | 1142 | (define-key cua--region-keymap [remap self-insert-command] 'cua-replace-region) |
| 1142 | (define-key cua--region-keymap [remap self-insert-iso] 'cua-replace-region) | 1143 | (define-key cua--region-keymap [remap self-insert-iso] 'cua-replace-region) |