Function: semantic-sb-speedbar-data-line
semantic-sb-speedbar-data-line is a byte-compiled function defined in
sb.el.gz.
Signature
(semantic-sb-speedbar-data-line DEPTH BUTTON TEXT &optional TEXT-FUN TEXT-DATA)
Documentation
Insert a semantic token data element.
DEPTH is the current depth. BUTTON is the text for the button. TEXT is the actual info with TEXT-FUN to occur when it happens. Argument TEXT-DATA is the token data to pass to TEXT-FUN.
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/semantic/sb.el.gz
(defun semantic-sb-speedbar-data-line (depth button text &optional
text-fun text-data)
"Insert a semantic token data element.
DEPTH is the current depth. BUTTON is the text for the button.
TEXT is the actual info with TEXT-FUN to occur when it happens.
Argument TEXT-DATA is the token data to pass to TEXT-FUN."
(let ((start (point))
(end (progn
(insert (int-to-string depth) ":")
(point))))
(put-text-property start end 'invisible t)
(insert-char ? depth nil)
(put-text-property end (point) 'invisible nil)
(speedbar-insert-button button nil nil nil nil t)
(speedbar-insert-button text
'speedbar-tag-face
(if text-fun 'speedbar-highlight-face)
text-fun text-data t)
))