Function: widget-get

widget-get is a function defined in fns.c.

Signature

(widget-get WIDGET PROPERTY)

Documentation

In WIDGET, get the value of PROPERTY.

The value could either be specified when the widget was created, or later with widget-put.

Source Code

// Defined in /usr/src/emacs/src/fns.c
{
  Lisp_Object tmp;

  while (1)
    {
      if (NILP (widget))
	return Qnil;
      CHECK_CONS (widget);
      tmp = plist_member (XCDR (widget), property);
      if (CONSP (tmp))
	{
	  tmp = XCDR (tmp);
	  return CAR (tmp);
	}
      tmp = XCAR (widget);
      if (NILP (tmp))
	return Qnil;
      widget = Fget (tmp, Qwidget_type);
    }
}