Function: data-debug-insert-widget
data-debug-insert-widget is a byte-compiled function defined in
data-debug.el.gz.
Signature
(data-debug-insert-widget WIDGET PREFIX PREBUTTONTEXT)
Documentation
Insert one WIDGET.
A Symbol is a simple thing, but this provides some face and prefix rules. PREFIX is the text that precedes the button. PREBUTTONTEXT is some text between prefix and the thing.
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/data-debug.el.gz
(defun data-debug-insert-widget (widget prefix prebuttontext)
"Insert one WIDGET.
A Symbol is a simple thing, but this provides some face and prefix rules.
PREFIX is the text that precedes the button.
PREBUTTONTEXT is some text between prefix and the thing."
(let ((string (propertize (format "#<WIDGET %s>" (car widget))
'face 'font-lock-keyword-face)))
(insert (propertize
(concat prefix prebuttontext string)
'ddebug widget
'ddebug-indent (length prefix)
'ddebug-prefix prefix
'help-echo
(format "Widget\nType: %s\n# Properties: %d"
(car widget)
(/ (1- (length widget)) 2))
'ddebug-function
'data-debug-insert-widget-from-point)
"\n")))