all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Eric M. Ludlam" <eric@siege-engine.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: dgutov@gnu.org, cedet-devel@lists.sourceforge.net, emacs-devel@gnu.org
Subject: Re: CEDET completion-at-point-function
Date: Sat, 21 Jun 2014 20:23:42 -0400	[thread overview]
Message-ID: <53A6220E.8010309@siege-engine.com> (raw)
In-Reply-To: <jwvy4wt1xqp.fsf-monnier+emacs@gnu.org>

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

      reply	other threads:[~2014-06-22  0:23 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-11 18:24 CEDET completion-at-point-function Stefan Monnier
2014-05-13  1:59 ` Eric M. Ludlam
2014-06-15  3:14   ` [CEDET-devel] " Stefan Monnier
2014-06-15 18:55     ` Eric M. Ludlam
2014-06-16 20:52       ` [CEDET-devel] " Stefan Monnier
2014-06-19  1:20         ` Eric M. Ludlam
2014-06-19  1:47           ` Stefan Monnier
2014-06-22  0:23             ` Eric M. Ludlam [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53A6220E.8010309@siege-engine.com \
    --to=eric@siege-engine.com \
    --cc=cedet-devel@lists.sourceforge.net \
    --cc=dgutov@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.