Hi,
Interesting idea. There is nothing like that in CEDET right now.
Unlike some tools where you can only have one open/active project at a
time, CEDET follows the Emacsy way and lets you have lots of things open
and adapts to whatever you are up to. A side effect is that you don't
know what project you belong to in the system includes.
I suppose you could create another ede-cpp-root-project for
/usr/include, but I'm not certain this would work since you are working
specifically with macros. Macro support in CEDET is pretty good, but
not good enough to know that some includes are influenced by other
includes included before them in the top level source file.
This is an interesting problem. I'll need to delay thinking about it
myself till after I get CEDET 1.0 out though.
Eric
On 04/25/2010 06:35 AM, peter payne wrote:
> hello,
>
> i am using cedet-1.0_pre6 on Gentoo linux. I wrote me a ecb-load
> function which also configures the 1 project i currently have:
>
> (defun my-ecb-load nil
> (interactive)
> ; Load ECB
> (require 'ecb-autoloads)
>
> ;; Load CEDET.
> ;; See cedet/common/cedet.info for configuration details.
> (load-file "/usr/share/emacs/site-lisp/cedet/common/cedet.el")
>
> (global-ede-mode 1)
> (semantic-load-enable-excessive-code-helpers); Enable prototype help and
> smart completion
> (semantic-load-enable-gaudy-code-helpers)
> (semantic-load-enable-excessive-code-helpers)
>
> (require 'semantic-ia)
> (require 'semantic-gcc)
>
> ;(semantic-add-system-include "/usr/avr/include/" 'c-mode)
>
> (ede-cpp-root-project "TogglePB0"
> :name "TogglePB0"
> :file "/mnt/ReSource/SCiENCE/AVR/PJs/TogglePB0/TogglePB0.c"
> :include-path '("/" "usr/avr/include/")
> :system-include-path '("/usr/avr/include/")
> :spp-table '(("__AVR_AT90S8535__" . "")))
>
> (ecb-activate)
> )
>
> When i do a semantic-ia-fast-jump on PORTB from TogglePB0.c,
> /usr/avr/include/avr/io.h is visited at
>
> #define PORTB _SFR_IO8(0x18)
>
> and i am happy. If i do a semantic-ia-fast-jump on _SFR_IO8 (now at
> /usr/avr/include/avr/io.h) the symbol is not found.
> When i do a semantic-ia-fast-jump on _SFR_IO8 from TogglePB0.c the
> symbol is found because i am within my project
> which knows the system-include-path.
>
> I guess this is because at the time i visit /usr/avr/include/avr/io.h a
> new project is created at / which does not contain my
> configuration. I cannot create a static new project for usr/avr/include/
> since a need to keep the
>
> :spp-table '(("__AVR_AT90S8535__" . "")
>
> dependent on the project.
>
> So is there any way to make the responsible instance to keep the current
> project if a file not directly within the project root but within the
> stated system includes is visited?
>
> thank you in advance.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> ------------------------------------------------------------------------
> Open a Private Email account today, for Free!
> ----- http://www.killamail.com -----
>
>
>
> ------------------------------------------------------------------------------
>
>
>
> _______________________________________________
> Cedet-devel mailing list
> Cedet-devel@...
> https://lists.sourceforge.net/lists/listinfo/cedet-devel
|