[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Can I get semantic summary manually?
From: |
Eric Ludlam |
Subject: |
Re: Can I get semantic summary manually? |
Date: |
Tue, 03 Jan 2006 09:30:57 -0500 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux) |
>>> "c.c" <i.c.code@gmail.com> seems to think that:
>Hi,
>
>The semantic package provides the 'semantic-idle-summary-mode' to show
>the summary info in imenu at idle time. Can I get these summaries
>showed whenever i want?
>
>thanks.
>
The command `semantic-analyze-current-context' when run interactively
will display a bunch of info.
Here is an example on writing such a fcn I'll add into CVS sometime
later. This does something similar to the idle summary, though it is
not the same.
Eric
----------
(defun semantic-ia-show-summary (point)
"Display a summary for the symbol under POINT."
(interactive "P")
(let* ((ctxt (semantic-analyze-current-context point))
(pf (reverse (oref ctxt prefix)))
(sum nil)
)
(while (and pf (not sum))
(if (semantic-tag-p (car pf))
(setq sum (semantic-format-tag-summarize (car pf) nil t)))
(setq pf (cdr pf)))
(message "%s" sum)
))
--
Eric Ludlam The MathWorks x 7556 eludlam@mathworks.com
http://www.siege-engine.com http://www.mathworks.com
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Can I get semantic summary manually?,
Eric Ludlam <=