278 |
@kbd{M-@@} (@code{mark-word}) puts the mark at the end of the next |
@kbd{M-@@} (@code{mark-word}) puts the mark at the end of the next |
279 |
word, while @kbd{C-M-@@} (@code{mark-sexp}) puts it at the end of the |
word, while @kbd{C-M-@@} (@code{mark-sexp}) puts it at the end of the |
280 |
next balanced expression (@pxref{Expressions}). These commands handle |
next balanced expression (@pxref{Expressions}). These commands handle |
281 |
arguments just like @kbd{M-f} and @kbd{C-M-f}. |
arguments just like @kbd{M-f} and @kbd{C-M-f}. If you repeat these |
282 |
|
commands, the region is extended. For example, you can type either |
283 |
|
@kbd{C-u 2 M-@@} or @kbd{M-@@ M-@@} to mark the next two words. |
284 |
|
|
285 |
@kindex C-x h |
@kindex C-x h |
286 |
@findex mark-whole-buffer |
@findex mark-whole-buffer |
294 |
point. If the prefix argument is @minus{}@var{n}, @kbd{M-h} also |
point. If the prefix argument is @minus{}@var{n}, @kbd{M-h} also |
295 |
marks @var{n} paragraphs, running back form the one surrounding point. |
marks @var{n} paragraphs, running back form the one surrounding point. |
296 |
In that last case, point moves forward to the end of that paragraph, |
In that last case, point moves forward to the end of that paragraph, |
297 |
and the mark goes at the start of the region. |
and the mark goes at the start of the region. The @kbd{M-h} command |
298 |
|
also supports the extension of the region, similar to @kbd{M-@@} and |
299 |
|
@kbd{C-M-@@}. |
300 |
|
|
301 |
@kbd{C-M-h} (@code{mark-defun}) similarly puts point before, and the |
@kbd{C-M-h} (@code{mark-defun}) similarly puts point before, and the |
302 |
mark after, the current (or following) major top-level definition, or |
mark after, the current (or following) major top-level definition, or |
303 |
defun (@pxref{Moving by Defuns}). (Currently it only marks one |
defun (@pxref{Moving by Defuns}). (Currently it only marks one defun, |
304 |
defun.) @kbd{C-x C-p} (@code{mark-page}) puts point before the |
but repeating it marks more defuns, like for @kbd{M-@@}.) @kbd{C-x |
305 |
current page, and mark at the end (@pxref{Pages}). The mark goes |
C-p} (@code{mark-page}) puts point before the current page, and mark |
306 |
after the terminating page delimiter (to include it in the region), |
at the end (@pxref{Pages}). The mark goes after the terminating page |
307 |
while point goes after the preceding page delimiter (to exclude it). |
delimiter (to include it in the region), while point goes after the |
308 |
A numeric argument specifies a later page (if positive) or an earlier |
preceding page delimiter (to exclude it). A numeric argument |
309 |
page (if negative) instead of the current page. |
specifies a later page (if positive) or an earlier page (if negative) |
310 |
|
instead of the current page. |
311 |
|
|
312 |
Finally, @kbd{C-x h} (@code{mark-whole-buffer}) sets up the entire |
Finally, @kbd{C-x h} (@code{mark-whole-buffer}) sets up the entire |
313 |
buffer as the region, by putting point at the beginning and the mark at |
buffer as the region, by putting point at the beginning and the mark at |