set-mark - Set starting point of region
set-mark (esc space)
set-mark is used to delimit the beginning of a marked region. Many commands are effective for a region of text. A region is defined as the text between the mark and the current cursor position. To delete a section of text, for example, one moves the cursor to the beginning of the text to be deleted, issues the set-mark command by typing esc space, moves the cursor to the end of the text to be deleted, and then deletes it by using the kill-region(2) (C-w) command. Only one mark can be set in one window or one buffer at a time, and MicroEmacs 2009 will try to remember a mark set in an off screen buffer when it is called back on screen.
A region is a block of text to be acted upon by some MicroEmacs commands. It is demarcated by the POINT on one end and the MARK at the other. The point is the primary location identifier where most of the action takes place and is always between two characters. The point is indicated by the cursor position in that it is just left of the cursor. The point is also significant in that it defines one end of the region. The mark, on the other hand, is invisible, and is used to demarcate the other end of the region and is set through set-mark.
The current buffer mark line and column position may be obtained from within a macro using the variables $window-mark-line(5) and $window-mark-col(5).
copy-region(2), exchange-point-and-mark(2), kill-region(2). reyank(2), yank(2), $window-mark-col(5), $window-mark-line(5).
(c) Copyright JASSPA 2009
Last Modified: 2009/08/29
Generated On: 2009/10/12