|
Re: [cedet-semantic] completion with dropdown menu
From: Eric M. Ludlam <eric@si...> - 2010-08-30 00:27
|
Hi, Misc answer inline below. On 08/29/2010 01:59 PM, Mandar Mitra wrote: > Hello, > > I'm using cedet-1.0. > > I've been trying to set up my .emacs to get the kind of > completion shown in the images on the CEDET smart completion > page (http://cedet.sourceforge.net/intellisense.shtml) and Alex > Ott's Gentle Introduction page. > > As suggested, I have included the following lines: > (local-set-key "." 'semantic-complete-self-insert) > (local-set-key ">" 'semantic-complete-self-insert)) > > When I use semantic-displayor-traditional, things work fine and on typing . > or>, I get a *Completions* buffer in which I can choose a completion. > But if I do the following in custom-set-variables: > > '(semantic-complete-inline-analyzer-displayor-class (quote semantic-displayor-tooltip)) I think this is supposed to be: (setq semantic-complete-inline-analyzer-displayor-class 'semantic-displayor-tooltip) though if you used defcustom you shouldn't put a ' in front to the symbol. > I get the following message: > Bug Showing Completions: (wrong-type-argument consp nil) > > What I really want is semantic-ia-complete-symbol-menu, but without > invoking it via an explicit keybinding. Digging around some more I > found the following snippet > > '(semantic-self-insert-show-completion-function (lambda nil (semantic-ia-complete-symbol-menu (point)))) > > in http://github.com/alexott/emacs-configs/blob/master/rc/emacs-rc-cedet.el. > > But this variable doesn't seem to be defined anywhere in the cedet-1.0 > sources. Is this a regression? I don't remember this variable. Perhaps Alex has a customization to his CEDET somewhere? > I guess I could mess around with semantic-complete-self-insert, in > semantic-complete.el but I'd rather not do something adhoc. The right thing to do is to create a new displayor class for the semantic completion engine that uses menus. If that is used via idle completion, I recommend against it as I can imagine the menu being very disruptive due to the way it takes over keys. Creating such a displayor would not be too hard since the tooltip version could be adapted to popup a menu by recycling the function referenced above. Eric |
| Thread | Author | Date | |
|---|---|---|---|
| [cedet-semantic] completion with dropdown menu | Mandar Mitra <mandar.mitra@gm...> |
|
|
|
|
|
|