Function: get-display-property

get-display-property is a function defined in xdisp.c.

Signature

(get-display-property POSITION PROP &optional OBJECT PROPERTIES)

Documentation

Get the value of the display property PROP at POSITION.

If OBJECT, this should be a buffer or string where the property is fetched from. If omitted, OBJECT defaults to the current buffer.

If PROPERTIES, look for value of PROP in PROPERTIES instead of the properties at POSITION.

View in manual

Probably introduced at or before Emacs version 29.1.

Source Code

// Defined in /usr/src/emacs/src/xdisp.c
{
  if (NILP (properties))
    properties = Fget_text_property (position, Qdisplay, object);
  else
    CHECK_LIST (properties);

  return find_display_property (properties, prop);
}