Re: ECB-2.40 -- error in ecb-select-source when opening file - FIXED!
"Berndl, Klaus" <[email protected]> Tue, 23 Feb 2010 17:47:56 +0100
| Newsgroups | gmane.emacs.code-browser |
|---|---|
| Message-ID | <7697A57B1AD9104F993CDF6A5B69430C09225D85DE@CORPMAIL08.corp.capgemini.com> |
Hi,
Well, i think the problem is now identified and solved...s.b.
>2. ecb-source-path-function = (ede-ecb-project-paths)
This is the key to our problem and solution - s.b.!
>4. FWIW, I've had emacs (23.1, with CVS CEDET & ECB) open briefly for
>a few small tasks.
>4.1. The variable ecb-source-path presently has 2 entries:
> ((#("c:/Program Files/gnu/emacs-23.1/site-lisp" 0 41
> (help-echo "Mouse-2 toggles maximizing, mouse-3 displays a popup-menu"))
> #("c:/Program Files/gnu/emacs-23.1/site-lisp" 0 41
> (help-echo "Mouse-2 toggles maximizing, mouse-3 displays a
>popup-menu")))
> (#("c:/Documents and Settings/nschley/My Documents/Downloads" 0 56
> (help-echo "Mouse-2 toggles maximizing, mouse-3 displays a popup-menu"))
> #("c:/Documents and Settings/nschley/My Documents/Downloads" 0 56
> (help-echo "Mouse-2 toggles maximizing, mouse-3 displays a
>popup-menu"))))
> I did not set or initialize this variable. It got populated when I opened
> ecb-jde.el and a file in my "Downloads" directory.
If you add a file F which does not reside in any path spezified in ecb-source-path then
ECB add temporally the directory of F to ecb-source-path
==> Therefore you have these entries in ecb-source-path.
But they should have gone when restarting emacs except the option
`ecb-add-path-for-not-matching-files' tells ECB that it should ask you for
saving these new path for future sessions. What is the value of
`ecb-add-path-for-not-matching-files'?
>4.2 However, my ECB Directories buffer has the following *5* entries:
> [+] w:/spw/system/mpack
> [+] w:/spw_st/st/up
> [+] w:/spw_st/st/src
> [+] ...s-23.1/site-lisp
> [+] ...uments/Downloads
> I have opened no files from the 1st 3 entry directories. These
>are, however,
> identified in my .emacs in 3 ede-cpp-root-project commands:
> (ede-cpp-root-project
> "TP"
> :name "TP Root Project"
> :file (concat canon-root "spw_st/st/src/makefile")
> ...)
> etc.
Well, the entries 4 and 5 came from 4.1. (s.a. my explanation) and the first 3 entries
came from 2.
ECB always adds the paths from
A) ecb-source-path and
B) returned from all functions of ecb-source-path-functions
Not in your case B are all path returned by the function `ede-ecb-project-paths' (s.a.
2.) - this matches with your 3 ede-cpp-root-project in your .emacs file.
Let's make a try: Set ecb-source-path-functions to nil and the first 3 entries should
have been gone!
Summary: You should take into account how to set ecb-source-path and ecb-source-path-functions!
Currently ECB does not eliminate duplicates. But maybe this would be a nice new feature......
Does this help?
Kaus
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev