Re: [cedet-semantic] Binding smenatic-complete-analyze-inline to tab
Brought to you by:
zappo
|
From: Eric M. L. <er...@si...> - 2008-05-19 18:24:04
|
>>> Nathan Huesken <ce...@lo...> seems to think that: >Hi, > >I would like the following funcitonality: > >When I press "tab", semantic-complete-analyze-inline should be >called. If it finds something - fine - if not, the nomrmal >tab-operations should occure. > >In my case, this means that the yasnippet completion should be called >(which is also bound to tab). > >Is this possible? I tried: > >(global-set-key [(tab)] 'semantic-complete-analyze-inline) > >Which makes even mini-buffer completion not work anymore. [ ... ] Hi, www.emacswiki.org has a bunch of examples for how to bind TAB to do a bunch of different options in the TabCompletion wiki node. That would likely help you out. The semantic specific code would be: (let ((comp (semantic-analyze-possible-completions))) (if comp (semantic-complete-analyze-inline ...) ;;else (other-thing you want to do))) Eric -- Eric Ludlam: er...@si... Siege: www.siege-engine.com Emacs: http://cedet.sourceforge.net |