Thread: [cedet-semantic] Auto-complete function parameter list
Brought to you by:
zappo
From: Blue G. <blu...@gm...> - 2014-10-15 18:48:21
|
Hello, assuming that I have a function foobar(int a, char b); Semantic completes "foobar" correctly, but I have to type the braces and each parameter manually (and yes, I'm a very lazy programmer) while some other completion modes do this for me and allow to step through foobar's parameters via TAB. Is this also possible with CEDET-Semantic? |
From: Eric M. L. <er...@si...> - 2014-10-16 01:16:30
|
On 10/15/2014 02:48 PM, Blue Glacier wrote: > Hello, > > assuming that I have a function > > foobar(int a, char b); > > Semantic completes "foobar" correctly, but I have to type the braces and > each parameter manually (and yes, I'm a very lazy programmer) while some > other completion modes do this for me and allow to step through foobar's > parameters via TAB. > > Is this also possible with CEDET-Semantic? Hi, The completion engines in CEDET-semantic focus mainly on the infrastructure - getting a good completion option. The engines that do the completion that are a part of CEDET-semantic are a bit simpler. Basically, the completion part will complete "foobar" for you, and if you are in the position of the "a" parameter, the idle summary mode will show you which parameter you are on. In addition, if you ask for completions there, it will show you only the names that are of type 'int' which is helpful. There are many completion UIs out there for Emacs that also use the CEDET backend for completions and have different sets of features. Since the completion engine can provide the full data of the tag I'm sure it's possible for other kinds of UIs that might do what you want. I'm not that familiar with all the different versions though. Eric |