Re: CEDET completion-at-point-function

"Eric M. Ludlam" <[email protected]>
Newsgroups gmane.emacs.cedet,gmane.emacs.devel
Message-ID <[email protected]>
On 06/18/2014 09:47 PM, Stefan Monnier wrote:
>> reference.  "d" is generally derived the same as f and a, but we apply one
>> >  last filter of the return type, so if you had:
>> >  q = p->f->a->d;
>> >  Then d's type should be similar to q.
> That's odd.  Does that mean that the user might have been unable to use
> completion on the "p->f->a" part (before typing "->d") because the "a"
> field was not of a similar type as q?
> Or do you first use this "type similar to context" filter an if the
> filter doesn't let anything through, then you drop the filter (kind of
> like we filter out files that match completion-ignored-extensions,
> except when that results in "no match")?

Good call.  The list of all possible completions from withing a 
struct/class contains any terminal type that matches (ie - int, char, 
etc) and any type that is a compound type (structs, classes) so it is both.

Basically, if you are completing to an int, it will toss chars, floats, 
etc but keep user types which have fields.

You can see it in semantic/analyze/complete around line 230.

Eric


------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.