Function: data-debug-insert-hash-table-button
data-debug-insert-hash-table-button is a byte-compiled function
defined in data-debug.el.gz.
Signature
(data-debug-insert-hash-table-button HASH-TABLE PREFIX PREBUTTONTEXT)
Documentation
Insert HASH-TABLE as expandable button, using PREFIX and PREBUTTONTEXT.
PREFIX is a recursive prefix and PREBUTTONTEXT is text to be inserted in front of the button text.
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/data-debug.el.gz
(defun data-debug-insert-hash-table-button (hash-table prefix prebuttontext)
"Insert HASH-TABLE as expandable button, using PREFIX and PREBUTTONTEXT.
PREFIX is a recursive prefix and PREBUTTONTEXT is text to be inserted
in front of the button text."
(let ((string (propertize (format "%s" hash-table)
'face 'font-lock-keyword-face)))
(insert (propertize
(concat prefix prebuttontext string)
'ddebug hash-table
'ddebug-indent (length prefix)
'ddebug-prefix prefix
'help-echo
(format "Hash-table\nTest: %s\nWeakness: %s\nElements: %d (of %d)"
(hash-table-test hash-table)
(if (hash-table-weakness hash-table) "yes" "no")
(hash-table-count hash-table)
(hash-table-size hash-table))
'ddebug-function
'data-debug-insert-hash-table-from-point)
"\n"))
)