Re: [CEDET-devel] About auto-complete problem
Brought to you by:
zappo
From: Abelardo Jara-B. <ber...@hc...> - 2010-03-07 19:11:52
|
I apologize, I forgot to attach the CEDET section in my .emacs file: ;; =======Enable CEDET and semantic plugins========= (require 'cedet) (global-ede-mode 1) ;; smart completion - disabled (require 'semantic-ia) ;;nil t ;; additional options (require 'semantic-sb) (require 'semanticdb) ;; * This turns on which-func support (Plus all other code helpers), remove if not X server (semantic-load-enable-minimum-features) ;(semantic-load-enable-code-helpers) ;;it is nice but i really dislike completion splitting window in 2 ;(semantic-load-enable-excessive-code-helpers) ;(semantic-load-enable-gaudy-code-helpers) (setq senator-minor-mode-name "SN") ;; Be careful to add lines for semantic-idle because weird tooltip box appears again :( (global-semantic-idle-summary-mode 1) ;Display a tag summary of the lexical token under the cursor. (global-semantic-show-unmatched-syntax-mode 1) ;; Add menu to navigate faster between tokens (add-hook 'semantic-init-hooks (lambda () (imenu-add-to-menubar "TAGS"))) ;; Enable semantic cache, search functions only first time (global-semanticdb-minor-mode 1) (defun semanticdb-cache-directory-p(directory) (cond ((search "/ArraySaver/" directory) nil) ((search "@@" directory) t) (t nil))) (add-hook 'semanticdb-project-predicate-functions 'semanticdb-cache-directory-p) (setq semanticdb-default-save-directory "~/.emacs.d/semantic") ;; customisation of modes (defun my-cedet-hook () (local-set-key [tab] 'smart-tab) ) (global-set-key (kbd "<C-tab>") 'semantic-ia-complete-symbol-menu) (define-key function-key-map [S-tab] [backtab]) (global-set-key (kbd "<backtab>") 'semantic-ia-complete-symbol) (add-hook 'c-mode-common-hook 'my-cedet-hook) (add-hook 'c++-mode-common-hook 'my-cedet-hook) (add-hook 'python-mode-common-hook 'my-cedet-hook) (setq-mode-local c-mode semanticdb-find-default-throttle '(project unloaded system recursive)) (setq-mode-local c++-mode semanticdb-find-default-throttle '(project unloaded system recursive)) (setq-mode-local python-mode semanticdb-find-default-throttle '(project unloaded system recursive)) (custom-set-variables '(semantic-idle-scheduler-work-idle-time 3) '(semantic-self-insert-show-completion-function (lambda nil (semantic-ia-complete-symbol-menu (point)))) ) (semantic-add-system-include "/usr/include" 'c-mode) (semantic-add-system-include "/usr/include" 'c++-mode) (semantic-add-system-include "/usr/include/c++/4.4" 'c++-mode) (semantic-add-system-include "/usr/local/include" 'c-mode) (semantic-add-system-include "/usr/local/include" 'c++-mode) (semantic-add-system-include "." 'c-mode) (semantic-add-system-include "." 'c++-mode) (setq semantic-python-dependency-system-include-path '("/usr/lib/python2.6/")) On Sun, Mar 7, 2010 at 2:08 PM, Abelardo Jara-Berrocal <ber...@hc... > wrote: > Hi Eric, > Thanks very much. I really appreciate replying to my email. No, there is no > error. > > The problem I have is that when I enable CEDET (which it is really useful, > thanks and congratulations), when i type for example > > myclass* pointer > pointer->... > > When I type '->', code-completion enables and since I have tooltips > disabled, the window splits in 2. showing code completion suggestions on the > bottom. > > This is distracting, so this is why I want to change CEDET and make it to > call semantic-ia-complete-symbol-menu instead of > semantic-ia-complete-symbol, and also I wanted to change the idle time which > triggers the appearance of the menu. I prefer > semantic-ia-complete-symbol-menu because it integrates nicely in GTK. > > Please if you could let me know a method of accomplishing this. > Thanks for your great work in CEDET, > Best regards, > Abelardo > > On Sun, Mar 7, 2010 at 10:38 AM, Eric M. Ludlam <er...@si...>wrote: > >> >> >> On 03/07/2010 04:10 AM, Abelardo Jara-Berrocal wrote: >> >>> Hi guys, >>> I hope you are very well. I am trying to use >>> semantic-ia-complete-symbol-menu instead of semantic-ia-complete-symbol >>> >>> but even trying very hard I am not able, >>> Please if you could help me, thanks a lot and blessings >>> Abelardo >>> >>> >> I good start would be to say which version of CEDET you are using, and >> which version of Emacs you are using. >> >> If semantic-ia-complete-symbol-menu throws an error, you can do this: >> >> M-x toggle-debug-on-error RET >> >> then when an error occurs, you can see the stack-trace, and report that. >> >> Hopefully you are using cedet 1.0pre7, or the CVS version of CEDET, as >> that has all the latest bug fixes. >> >> Eric >> > > > > -- > *Abelardo Jara-Berrocal* > High-performance Computing & Simulation (HCS) Research Assistant > University of Florida > 330 Benton Hall, POB 116200, Gainesville, FL, 32611-6200 > Mobile phone: (352) 215-8524 > -- *Abelardo Jara-Berrocal* High-performance Computing & Simulation (HCS) Research Assistant University of Florida 330 Benton Hall, POB 116200, Gainesville, FL, 32611-6200 Mobile phone: (352) 215-8524 |