diff options
| author | Paul Eggert | 2012-04-09 15:54:59 -0700 |
|---|---|---|
| committer | Paul Eggert | 2012-04-09 15:54:59 -0700 |
| commit | 45e9f7da84c1bd3fc0d36d05c5708ed3b2d3a193 (patch) | |
| tree | 5bc87a8b5a3c754b8eb44a612cc6c03561d6b968 /src/editfns.c | |
| parent | 9d6b4d53469a9ffd67bd770fabc6fe254e35c21d (diff) | |
| parent | 05920a43fc18e696b464387e781e7cfdcea5b5af (diff) | |
| download | emacs-45e9f7da84c1bd3fc0d36d05c5708ed3b2d3a193.tar.gz emacs-45e9f7da84c1bd3fc0d36d05c5708ed3b2d3a193.zip | |
Merge from trunk.
Diffstat (limited to 'src/editfns.c')
| -rw-r--r-- | src/editfns.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/editfns.c b/src/editfns.c index afd4ed48333..7e7f82c5992 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -658,10 +658,11 @@ is after LIMIT, then LIMIT will be returned instead. */) | |||
| 658 | 658 | ||
| 659 | DEFUN ("constrain-to-field", Fconstrain_to_field, Sconstrain_to_field, 2, 5, 0, | 659 | DEFUN ("constrain-to-field", Fconstrain_to_field, Sconstrain_to_field, 2, 5, 0, |
| 660 | doc: /* Return the position closest to NEW-POS that is in the same field as OLD-POS. | 660 | doc: /* Return the position closest to NEW-POS that is in the same field as OLD-POS. |
| 661 | |||
| 662 | A field is a region of text with the same `field' property. | 661 | A field is a region of text with the same `field' property. |
| 663 | If NEW-POS is nil, then the current point is used instead, and set to the | 662 | |
| 664 | constrained position if that is different. | 663 | If NEW-POS is nil, then use the current point instead, and move point |
| 664 | to the resulting constrained position, in addition to returning that | ||
| 665 | position. | ||
| 665 | 666 | ||
| 666 | If OLD-POS is at the boundary of two fields, then the allowable | 667 | If OLD-POS is at the boundary of two fields, then the allowable |
| 667 | positions for NEW-POS depends on the value of the optional argument | 668 | positions for NEW-POS depends on the value of the optional argument |