Thanks Alec.
This is exactly the kind of information I'm looking for.
Cheers.
ou can see how other plugins use autocompletion, e.g. acl plugin or