From 19126168414f04503da694892e9ce87ac70796c5 Mon Sep 17 00:00:00 2001 From: "Kim F. Storm" Date: Fri, 9 Dec 2005 14:57:33 +0000 Subject: [PATCH] (CUA Bindings): Describe how to use C-x and C-c as prefix keys even when mark is active. Decribe that RET moves cursor to next corner in rectangle; clarify insert around rectangle. --- man/killing.texi | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/man/killing.texi b/man/killing.texi index 8353eb00bb3..5b5c55f4083 100644 --- a/man/killing.texi +++ b/man/killing.texi @@ -655,20 +655,29 @@ compatible with the Common User Access (CUA) system used in many other applications. @kbd{C-x} means cut (kill), @kbd{C-c} copy, @kbd{C-v} paste (yank), and @kbd{C-z} undo. Standard Emacs commands like @kbd{C-x C-c} still work, because @kbd{C-x} and @kbd{C-c} only take -effect when the mark is active. However, if you don't want these -bindings at all, set @code{cua-enable-cua-keys} to @code{nil}. +effect when the mark is active (and the region is highlighted). +However, if you don't want these bindings at all, set +@code{cua-enable-cua-keys} to @code{nil}. In CUA mode, using @kbd{Shift} together with the movement keys -activates the region over which they move. The standard (unshifted) -movement keys deactivate the mark, and typed text replaces the active -region as in Delete-Selection mode (@pxref{Graphical Kill}). +activates and highlights the region over which they move. The +standard (unshifted) movement keys deactivate the mark, and typed text +replaces the active region as in Delete-Selection mode +(@pxref{Graphical Kill}). + + To run a command like @kbd{C-x C-f} while the mark is active, use +one of the following methods: either hold @kbd{Shift} together with +the prefix key, e.g. @kbd{S-C-x C-f}, or quickly type the prefix key +twice, e.g. @kbd{C-x C-x C-f}. @cindex rectangle highlighting CUA mode provides enhanced rectangle support with visible rectangle highlighting. Use @kbd{C-RET} to start a rectangle, extend it using the movement commands, and cut or copy it using -@kbd{C-x} or @kbd{C-c}. When a rectangle is active, text you type is -automatically inserted before or after each line in the rectangle. +@kbd{C-x} or @kbd{C-c}. @kbd{RET} moves the cursor to the next +(clockwise) corner of the rectangle, so you can easily expand it in +any direction. Normal text you type is inserted to the left or right +of each line in the rectangle (on the same side as the cursor). With CUA you can easily copy text and rectangles into and out of registers by providing a one-digit numeric prefix the the kill, copy, -- 2.39.2