Function: field-end

field-end is a function defined in editfns.c.

Signature

(field-end &optional POS ESCAPE-FROM-EDGE LIMIT)

Documentation

Return the end of the field surrounding POS.

A field is a region of text with the same field property. If POS is nil, the value of point is used for POS. If ESCAPE-FROM-EDGE is non-nil and POS is at the end of its field, then the end of the *following* field is returned. If LIMIT is non-nil, it is a buffer position; if the end of the field is after LIMIT, then LIMIT will be returned instead.

Probably introduced at or before Emacs version 21.1.

Source Code

// Defined in /usr/src/emacs/src/editfns.c
{
  ptrdiff_t end;
  find_field (pos, escape_from_edge, Qnil, 0, limit, &end);
  return make_fixnum (end);
}