Eric M. Ludlam wrote:
>>>> yupeng82921@... requires approval seems to think that:
>> I have two questions about semantic smart completion.
>> 1. When I call "semantic-ia-complete-symbol-menu", it will show a pop
>> up menu. But unless I select an option form it, the menu will not
>> disappear. In fact, I want to find a function, when I call it, it can
>> show a pop up menu, and I can select a symbol to comple, but if I do
>> not want to select anyone, I can still insert character to the
>> current buffer. If there is a function like this, I can bind it to
>> every key on my keyboard, so whenever I insert a character, I can
>> always get a completion menu. Is there a function let me do this?
> The Emacs popup menu is different on different platforms, and
> different build configurations. The feature you found may not work on
> very many versions of Emacs.
As Eric says, this isn't possible on all (any?) platforms, because Emacs
menus steal the keyboard focus completely until they're dismissed.
You could try my completion-UI package, which supports Semantic (in a
fairly rudimentary kind of a way for now). As well as auto-completion,
which you mention, it also includes a "pop-up frame", which behaves very
like a menu but without stealing keyboard focus, a tooltip in which you
can cycle through the entries, much like a menu, and many other goodies
besides! (It is nearly Christmas, after all :)
I've attached a newer version than is currently available via the web
page, which is much easier to set up for non-Elisp-gurus. (I'll release
it very soon through the usual channels). See the commentary at the top
of completion-ui-examples.el to find out how to install and use it. (If
you find any bugs, please report them directly to me, rather
than...ahem...bugging people on this mailing list.)