I'm a semantic newcomer. I would like to have a function that displays the
arguments to the function that I am about to call in the message area. I found
se-show in the semantic-example.el file and it almost do what I want. If I call
it it asks for a symbol name, however the default value is already inserted, so
I only need to press enter to see a beatifull function argument list in the
How can I avoid the question of the symbol and only let it read my newly written
It sounds simple, and I have tried to do some changes without success.
(defun se-show (name)
"Show important information about some token with NAME.
Shows how to:
* Create a variable with `semantic-token->text-functions'.
* Create the colorized text."
(interactive (list (semantic-read-symbol "Symbol: ")))
(let ((tok (semantic-find-nonterminal-by-name name (current-buffer) t))
;; Token text functions can take a PARENT argument. To find this
;; really quickly, jump to TOK, then use the overlay mechanism to
;; Find it.
(goto-char (semantic-token-start tok))
(setq parent (semantic-current-nonterminal-parent))
;; Create a message
(setq msg (funcall se-summary-function tok parent t))
;; Display it