]> code.delx.au - gnu-emacs/commitdiff
Document new features of Rectangle mode
authorEli Zaretskii <eliz@gnu.org>
Sat, 19 Dec 2015 12:40:19 +0000 (14:40 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 19 Dec 2015 12:40:19 +0000 (14:40 +0200)
* doc/emacs/killing.texi (Rectangles): Document "C-x C-x" in
rectangle-mark-mode.

doc/emacs/killing.texi
etc/NEWS

index f05b8cc544501ba923f2719fa7a44b199e5def16..9761ac7d11ce3bedda0f5e1d10c454966e316040 100644 (file)
@@ -853,6 +853,19 @@ so in a rectangular fashion, and killing and yanking operate on the
 rectangle.  @xref{Killing}.  The mode persists only as long as the
 region is active.
 
+Unlike the standard region, the region-rectangle can have its corners
+extended past the end of buffer, or inside stretches of white space
+that point normally cannot enter, like the TAB.
+
+@findex rectangle-exchange-point-and-mark
+@findex exchange-point-and-mark@r{, in rectangle-mark-mode}
+@kindex C-x C-x@r{, in rectangle-mark-mode}
+When the region is in rectangle-mark-mode, @kbd{C-x C-x} runs the
+command @code{rectangle-exchange-point-and-mark}, which cycles between
+the four corners of the region-rectangle.  This comes in handy if you
+want to modify the dimensions of the region-rectangle before invoking
+an operation on the marked text.
+
 @node CUA Bindings
 @section CUA Bindings
 @findex cua-mode
index 85002c865f3a56020662fa1b8d501bd5fffd4693..3a219851ff643a5315479bc2b937ea7b237ad137 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -634,7 +634,11 @@ respectively, `show-paren-when-point-inside-paren' or
 *** Strings after `:documentation' are highlighted as docstrings.
 
 ** Rectangle editing
+
++++
 *** Rectangle Mark mode can have corners past EOL or in the middle of a TAB.
+
++++
 *** C-x C-x in rectangle-mark-mode now cycles through the four corners.
 *** `string-rectangle' provides on-the-fly preview of the result.