Next: Secondary Selection Up: Frames
Move point to where you click (`mouse-set-point'). This is
normally the left button.
Set the region to the text you select by dragging, and copy it to
the kill ring (`mouse-set-region'). Thus, you can specify both
ends of the region.
If you move the mouse off the top or bottom of the window while
dragging, the window scrolls at a steady rate until you move the
mouse back into the window. This way, you can mark regions that
don't fit entirely on the screen.
Yank the last killed text, where you click (`mouse-yank-at-click').
This is normally the middle button.
This command, `mouse-save-then-kill', has several functions
depending on where you click and the status of the region.
If you have a highlighted region, or if the region was set just
before by dragging button 1, `mouse-save-then-kill' adjusts the
nearer end of the region by moving it to where you click. The
adjusted region's text also replaces the old region's text in the
Otherwise, `mouse-save-then-kill' sets mark where you click,
without changing point. It copies the new region to the kill ring.
If you originally specified the region using a double or triple
Mouse-1, so that the region is defined to consist of entire words
or lines, then adjusting the region also proceeds by entire words
If you use `mouse-save-then-kill' twice in a row at the same place,
that kills the region already selected.
This key sets the region around the word which you click on.
This key selects a region made up of the words that you drag
This key sets the region around the line which you click on.
This key selects a region made up of the lines that you drag
The simplest way to kill some text is to press Mouse-1 at one end,
then press Mouse-3 twice at the other end. Note: Killing. To copy
the text into the kill ring without deleting it from the buffer, press
Mouse-3 just once--or just drag across the text with Mouse-1. Then you
can copy it elsewhere by yanking it.
To yank the killed or copied text somewhere else, move the mouse
there and press Mouse-2. Note: Yanking.
The mouse commands for selecting a region are mostly compatible with
the `xterm' program.
To copy text to another X window, kill it or save it in the kill
ring. Under X, this also sets the "primary selection". Then use the
"paste" or "yank" command of the program operating the other window to
insert the text from the selection.
To copy text from another X window, use the "cut" or "copy" command
of the program operating the other window, to select the text you want.
Then yank it in Emacs with `C-y' or Mouse-2.
When Emacs puts text into the kill ring, or rotates text to the front
of the kill ring, it sets the "primary selection" in the X server.
This is how other X clients can access the text. Emacs also stores the
text in the cut buffer, if the text is short enough (`x-cut-buffer-max'
specifies the maximum number of characters); putting long strings in
the cut buffer can be slow.
When you yank in Emacs, Emacs checks for a primary selection in
another program; after that, it checks for text in the cut buffer.
automatically generated by info2www