GNU Emacs Manual - Secondary Selection

Go to the first, previous, next, last section, table of contents.

## Secondary Selection

The secondary selection is another way of selecting text using X. It does not use point or the mark, so you can use it to kill text without setting point or the mark.

`M-Drag-Mouse-1`
  Set the secondary selection, with one end at the place where you press down the button, and the other end at the place where you release it (`mouse-set-secondary`). The highlighting appears and changes as you drag. 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.
`M-Mouse-1`
  Set one endpoint for the secondary selection (`mouse-start-secondary`).
`M-Mouse-3`
  Make a secondary selection, using the place specified with `M-Mouse-1` as the other end (`mouse-secondary-save-then-kill`). A second click at the same place kills the secondary selection just made.
`M-Mouse-2`
  Insert the secondary selection where you click (`mouse-yank-secondary`). This places point at the end of the yanked text.

Double or triple clicking of `M-Mouse-1` operates on words and lines, much like `Mouse-1`.

If `mouse-yank-at-point` is non-`nil`, `M-Mouse-2` yanks at point. Then it does not matter precisely where you click; all that matters is which window you click on. See section Mouse Commands for Editing.

Go to the first, previous, next, last section, table of contents.