(lemacs.info)Mouse Selection

Next: Additional Mouse Operations Prev: Mark Up: Top

Selecting Text with the Mouse

   If you are using Lucid GNU Emacs under X, you can use the mouse
cursor to select text. There are two mouse cursor shapes:
   * When the mouse cursor is over text, it appears as an I-beam, the
     same cursor that `xterm' uses.

   * When the mouse cursor is not over text, it appears as a plus sign

   You can set the value of the variable `x-mode-pointer-shape' to
determine the shape of the mouse pointer when it is over the mode line.
If the value is `nil', either the variable `x-nontext-pointer-shape'
or `x-pointer-shape' is used.

   If you want to get fancy, you can set the foreground and background
colors of the mouse pointer with the variables
`x-pointer-background-color' and `x-pointer-foreground-color'.

   There are two ways to select a region of text with the mouse:

   To select a word in text, double-click with the left mouse button
while the mouse cursor is over the word.  The word is highlighted when
selected. On monochrome monitors, a stippled background indicates that a
region of text has been highlighted. On color monitors, a color
background indicates highlighted text. You can triple-click to select
whole lines.

   To select an arbitrary region of text:

  1. Move the mouse cursor over the character at the beginning of the
     region of text you want to select.

  2. Press and hold the left mouse button.

  3. While holding the left mouse button down, drag the cursor to the
     character at the end of the region of text you want to select.

  4. Release the left mouse button.
        The selected region of text is highlighted.

   Once a region of text is selected, it becomes the primary X selection
(Note: Using X Selections.) as well as the Emacs selected region. You
can paste it into other X applications and use the options from the
Edit pull-down menu on it.  Since it is also the Emacs region, you can
use Emacs region commands on it.

automatically generated by info2www