Function: ede-tag-expand

ede-tag-expand is a byte-compiled function defined in speedbar.el.gz.

Signature

(ede-tag-expand TEXT TOKEN INDENT)

Documentation

Expand a tag sublist. Imenu will return sub-lists of specialized tag types.

Etags does not support this feature. TEXT will be the button string. TOKEN will be the list, and INDENT is the current indentation level.

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/ede/speedbar.el.gz
(defun ede-tag-expand (text token indent)
  "Expand a tag sublist.  Imenu will return sub-lists of specialized tag types.
Etags does not support this feature.  TEXT will be the button
string.  TOKEN will be the list, and INDENT is the current indentation
level."
  (cond ((string-search "+" text)	;we have to expand this file
	 (speedbar-change-expand-button-char ?-)
	 (speedbar-with-writable
	   (save-excursion
	     (end-of-line) (forward-char 1)
	     (speedbar-insert-generic-list indent token
					   'ede-tag-expand
					   'ede-tag-find))))
	((string-search "-" text)	;we have to contract this node
	 (speedbar-change-expand-button-char ?+)
	 (speedbar-delete-subblock indent))
	(t (error "Ooops...  not sure what to do")))
  (speedbar-center-buffer-smartly))