Hi Daniel,
On Tue, Dec 28, 2010 at 2:44 PM, Daniel Lopez <dlopez@...> wrote:
>
>> Have you tried `semantic-ia-show-variants'?
>>
>
> Having partial success with this.
>
> If I type eg. "printf", then do M-x semantic-ia-show-variants, it
> shows me signatures for printf and printf_s - this is OK. (These
> aren't actually overloaded functions, but as I'm having some other
> problems I'll come back to that later.)
>
> However if I add the opening parenthesis, ie. "printf(", then do M-x
> semantic-ia-show-variants, then I get the error, "Wrong type argument:
> integer-or-marker-p, nil".
>
> Single-stepping through the Lisp:
I am not sure what is the problem with your setup. I am a lisp
novice. But I have been using CEDET for quite sometime now with a C++
data analysis framework on linux.
This is what I get when I try `semantic-ia-show-variants' with my
framework:
> if (integral) h_sum->Add(h_sample[i]); // cursor is on the last d of Add
...
> virtual void AddBinContent (Int_t bin,Double_t w)
> virtual void AddBinContent (Int_t bin)
> virtual void Add (const TH1* h,const TH1* h2,Double_t c1,Double_t c2)
> virtual void Add (const TH1* h1,Double_t c1)
> virtual void Add (TF1* h1,Double_t c1,Option_t* option)
> void AddAt (Float_t c,Int_t i)
> -UUU:%%--F1 *Symbol Variants* All (1,0) (Help View)
As for your setup, it is fairly similar with mine. This is what I do to
setup CEDET:
https://github.com/suvayu/.emacs.d/blob/master/lisp/cedet-configs.el#L70
(lines 70-78, 132-133)
And then I call (semantic-default-c-setup).
I hope that helps.
--
Suvayu
Open source is the future. It sets us free.
|