Function: field-string

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

Signature

(field-string &optional POS)

Documentation

Return the contents of the field surrounding POS as a string.

A field is a region of text with the same field property. If POS is nil, the value of point is used for POS.

Probably introduced at or before Emacs version 21.1.

Source Code

// Defined in /usr/src/emacs/src/editfns.c
{
  ptrdiff_t beg, end;
  find_field (pos, Qnil, Qnil, &beg, Qnil, &end);
  return make_buffer_string (beg, end, 1);
}