On Fri, Apr 9, 2010 at 3:17 AM, Eric M. Ludlam <eric@siege-engine.com> wrote:
On 04/08/2010 06:26 PM, Wei Li wrote:
Hi all,

I am trying to setup CEDET's smart completion. However, when I try to
bind the semantic-ia-complete-symbol-menu and use it, it shows "Wrong
type argument: syntax-table-p, nil". How is this function working? I
thought it means that if I type partial name of e.g. a function and
trigger this binding it will show the matching items in a menu (and I
remember I saw such functionality on somebody's machine). I tried search
the web but got no luck. Is there anything else I need to set? Here is
my command:

(define-key c-mode-base-map [(meta ?/)] 'semantic-ia-complete-symbol-menu)

And of course, the above command is within my hook definition added to
c-mode-common-hook. Any help will be appreciated.

You certainly have the right idea, but are running into some other kind of problem.  What version of CEDET are you using?

If you enable:

M-x toggle-debug-on-error RET

it will produce a stack trace which will help reveal what is going on.


Hi Eric,

Thanks for your quick answer, even to my kinda fool question. I googled using the debug information and got a post of a similar problem, and you replied there saying it might be because senator was not on. And I found a problem: In Alex Ott's tutorial he said for semantic's customization, users need to choose one command from semantic-load-enable-minimum-features, semantic-load-enable-code-helpers, semantic-load-enable-gaudy-code-helpers, emantic-load-enable-excessive-code-helpers, semantic-load-enable-semantic-debugging-helpers, and each command contains all the features of previous commands. However in another tutorial the author used two commands, e.g semantic-load-enable-code-helpers and semantic-load-enable-semantic-debugging-helpers.  I didn't have Senator on using Alex's setting (with only semantic-load-enable-semantic-debugging-helpers command) but had it using the other setting. Does it mean that semantic-load-enable-semantic-debugging-helpers doesn't enable Senator?

BTW, I used 1.0pre6 when I asked in the first place and now I am using 1.0pre7. Thanks for your help!