aboutsummaryrefslogtreecommitdiffstats
path: root/src/editfns.c
diff options
context:
space:
mode:
authorJoakim Verona2012-03-13 08:23:14 +0100
committerJoakim Verona2012-03-13 08:23:14 +0100
commit4b2cea2874f3a699ebe96349ef34fb7206cc0fa5 (patch)
treebbd39cf660d9b79b2cff9e39ef6209af4cf9fb8b /src/editfns.c
parent1de331c486475093aa6b75ef6c259f7164e7620c (diff)
parent6ea7151ba66df966974060711512b49b9059566e (diff)
downloademacs-4b2cea2874f3a699ebe96349ef34fb7206cc0fa5.tar.gz
emacs-4b2cea2874f3a699ebe96349ef34fb7206cc0fa5.zip
upstream
Diffstat (limited to 'src/editfns.c')
-rw-r--r--src/editfns.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/editfns.c b/src/editfns.c
index bbeb5033664..a41565d8588 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -663,10 +663,11 @@ is after LIMIT, then LIMIT will be returned instead. */)
663 663
664DEFUN ("constrain-to-field", Fconstrain_to_field, Sconstrain_to_field, 2, 5, 0, 664DEFUN ("constrain-to-field", Fconstrain_to_field, Sconstrain_to_field, 2, 5, 0,
665 doc: /* Return the position closest to NEW-POS that is in the same field as OLD-POS. 665 doc: /* Return the position closest to NEW-POS that is in the same field as OLD-POS.
666
667A field is a region of text with the same `field' property. 666A field is a region of text with the same `field' property.
668If NEW-POS is nil, then the current point is used instead, and set to the 667
669constrained position if that is different. 668If NEW-POS is nil, then use the current point instead, and move point
669to the resulting constrained position, in addition to returning that
670position.
670 671
671If OLD-POS is at the boundary of two fields, then the allowable 672If OLD-POS is at the boundary of two fields, then the allowable
672positions for NEW-POS depends on the value of the optional argument 673positions for NEW-POS depends on the value of the optional argument