Mercurial > emacs
comparison man/mark.texi @ 43301:898b4b31410f
* lisp/simple.el (mark-word): Mark more if repeated.
* lisp/textmodes/paragraphs.el (mark-paragraph): Ditto.
(mark-end-of-sentence): Ditto.
author | Kai Großjohann <kgrossjo@eu.uu.net> |
---|---|
date | Fri, 15 Feb 2002 08:53:15 +0000 |
parents | 48c74a2caa77 |
children | 46b0c6f318b5 |
comparison
equal
deleted
inserted
replaced
43300:893c39e49ae7 | 43301:898b4b31410f |
---|---|
276 @end table | 276 @end table |
277 | 277 |
278 @kbd{M-@@} (@code{mark-word}) puts the mark at the end of the next | 278 @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 | 279 word, while @kbd{C-M-@@} (@code{mark-sexp}) puts it at the end of the |
280 next balanced expression (@pxref{Expressions}). These commands handle | 280 next balanced expression (@pxref{Expressions}). These commands handle |
281 arguments just like @kbd{M-f} and @kbd{C-M-f}. | 281 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. | |
282 | 284 |
283 @kindex C-x h | 285 @kindex C-x h |
284 @findex mark-whole-buffer | 286 @findex mark-whole-buffer |
285 Other commands set both point and mark, to delimit an object in the | 287 Other commands set both point and mark, to delimit an object in the |
286 buffer. For example, @kbd{M-h} (@code{mark-paragraph}) moves point to | 288 buffer. For example, @kbd{M-h} (@code{mark-paragraph}) moves point to |
290 paragraph. With prefix argument, if the argument's value is positive, | 292 paragraph. With prefix argument, if the argument's value is positive, |
291 @kbd{M-h} marks that many paragraphs starting with the one surrounding | 293 @kbd{M-h} marks that many paragraphs starting with the one surrounding |
292 point. If the prefix argument is @minus{}@var{n}, @kbd{M-h} also | 294 point. If the prefix argument is @minus{}@var{n}, @kbd{M-h} also |
293 marks @var{n} paragraphs, running back form the one surrounding point. | 295 marks @var{n} paragraphs, running back form the one surrounding point. |
294 In that last case, point moves forward to the end of that paragraph, | 296 In that last case, point moves forward to the end of that paragraph, |
295 and the mark goes at the start of the region. | 297 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-@@}. | |
296 | 300 |
297 @kbd{C-M-h} (@code{mark-defun}) similarly puts point before, and the | 301 @kbd{C-M-h} (@code{mark-defun}) similarly puts point before, and the |
298 mark after, the current (or following) major top-level definition, or | 302 mark after, the current (or following) major top-level definition, or |
299 defun (@pxref{Moving by Defuns}). (Currently it only marks one | 303 defun (@pxref{Moving by Defuns}). (Currently it only marks one defun, |
300 defun.) @kbd{C-x C-p} (@code{mark-page}) puts point before the | 304 but repeating it marks more defuns, like for @kbd{M-@@}.) @kbd{C-x |
301 current page, and mark at the end (@pxref{Pages}). The mark goes | 305 C-p} (@code{mark-page}) puts point before the current page, and mark |
302 after the terminating page delimiter (to include it in the region), | 306 at the end (@pxref{Pages}). The mark goes after the terminating page |
303 while point goes after the preceding page delimiter (to exclude it). | 307 delimiter (to include it in the region), while point goes after the |
304 A numeric argument specifies a later page (if positive) or an earlier | 308 preceding page delimiter (to exclude it). A numeric argument |
305 page (if negative) instead of the current page. | 309 specifies a later page (if positive) or an earlier page (if negative) |
310 instead of the current page. | |
306 | 311 |
307 Finally, @kbd{C-x h} (@code{mark-whole-buffer}) sets up the entire | 312 Finally, @kbd{C-x h} (@code{mark-whole-buffer}) sets up the entire |
308 buffer as the region, by putting point at the beginning and the mark at | 313 buffer as the region, by putting point at the beginning and the mark at |
309 the end. | 314 the end. |
310 | 315 |