Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
From: David PONCE <david.ponce@wa...> - 2004-04-07 14:10:22
I don't think there is an equivalent function of
`semantic-flatten-tags-table' in semantic 1.4.
Perhaps could you try the following back-ported implementation
(untested). The only difference I can see is that
`semantic-something-to-tag-table' now handles semanticdb tables and
`semantic-something-to-stream' did not.
Maybe Eric could give a better answer to your question?
Hope it will help.
(defun semantic-flatten-tags-table-1.4 (&optional table)
"Flatten the tags table TABLE.
All tags in TABLE, and all components of top level tags
in TABLE will appear at the top level of list.
Tags promoted to the top of the list will still appear
unmodified as components of their parent tags."
(let* ((table (semantic-something-to-stream table))
;; Initialize the starting list with our table.
(lists (list table)))
(mapc (lambda (tag)
(let ((components (semantic-nonterminal-children tag)))
(if (and components
;; unpositined tags can be hazardous to
;; completion. Do we need any type of tag
;; here? - EL
(semantic-token-with-position-p (car components)))
(setq lists (cons
(apply 'append (nreverse lists))
From: Eric M. Ludlam <eric@si...> - 2004-04-07 18:09:06
>>> David PONCE <david.ponce@...> seems to think that:
>I don't think there is an equivalent function of
>`semantic-flatten-tags-table' in semantic 1.4.
>Perhaps could you try the following back-ported implementation
>(untested). The only difference I can see is that
>`semantic-something-to-tag-table' now handles semanticdb tables and
>`semantic-something-to-stream' did not.
>Maybe Eric could give a better answer to your question?
[ ... ]
There is no equivalent in 1.4. The search routines had that logic
built in in 1.4, and I wanted to have the new core search routines not
know that, so the -flatten- element was a way of turning a deep list
of tags into something the simpler search routines could use.
David's function is the way to go.
Eric Ludlam: zappo@..., eric@...
Home: http://www.ludlam.net Siege: http://www.siege-engine.com
Emacs: http://cedet.sourceforge.net GNU: http://www.gnu.org