unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Redundant Re-Parsings by CEDET/Semantic
@ 2008-02-01 15:20 Nordlöw
  2008-02-14 18:45 ` Eric Ludlam
  0 siblings, 1 reply; 2+ messages in thread
From: Nordlöw @ 2008-02-01 15:20 UTC (permalink / raw)
  To: help-gnu-emacs

I am trying out CEDET/Semantic and I have found it to be absolutely
world-class brilliant software.

In my setup, however, Semantic(db) keep performing reparsings of the
same system header-files, for example Xlib.h, X.h, etc during the same
Emacs session....

Also, the caches in my ~/semanticdb does *not* prevent semantic from
reparsing all my project sources and system header files upon startup
of Emacs.

In all I get the LL/...h ###... progressbar for all C/C++ sources I
use when I open them the second time despite the fact that they all
have entries in the files under ~/.semanticdb/.

What have I missed?


Here is my CEDET setup:

  (load-file "~/pnw/emacs/contrib/cedet/common/cedet.elc")
  (require 'bovine-grammar nil t)
  (when (require 'ede nil t)
    (global-ede-mode t))
  (require 'semantic nil t)
  (semantic-load-enable-code-helpers)
  (global-semantic-idle-scheduler-mode 1) ;The idle scheduler with
automatically reparse buffers in idle time.
  (global-semantic-idle-completions-mode 1) ;Display a tooltip with a
list of possible completions near the cursor.
  (global-semantic-idle-summary-mode 1) ;Display a tag summary of the
lexical token under the cursor.
  (require 'semantic-sb nil t)
  (require 'semanticdb nil t)

  (add-to-list 'semanticdb-project-roots "~/pnw/src")
  (global-semanticdb-minor-mode 1)
  (semantic-add-system-include "/usr/include/" 'c-mode)
  (semantic-add-system-include "/usr/include/" 'c++-mode)
  (semantic-add-system-include "/usr/include/c++/4.1/" 'c++-mode)
  (semantic-add-system-include "/usr/include/c++/4.2/" 'c++-mode)

  (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 java-mode
                   semanticdb-find-default-throttle
                   '(project unloaded system recursive))
  (when (require 'semantic-ia nil t)
    (global-set-key [(control return)] 'semantic-ia-complete-symbol)
    (global-set-key [(control shift return)] 'semantic-ia-complete-
symbol-menu)
    )
  (when (require 'eassist nil t)
    (define-key c-mode-base-map [(control x) (t)] 'eassist-switch-h-
cpp) ;override toggle-source()
    )

and here is the contents of my ~/.semanticdb/

-rw-r--r-- 1 per per 1169757 2008-02-01 14:42 !home!per!pnw!src!avg!
semantic.cache
-rw-r--r-- 1 per per  171652 2008-02-01 14:42 !home!per!pnw!src!PMDB!
semantic.cache
-rw-r--r-- 1 per per  876035 2008-02-01 14:42 !home!per!pnw!src!
semantic.cache
-rw-r--r-- 1 per per     992 2008-02-01 14:55 !home!per!pnw!src!tests!
semantic.cache
-rw-r--r-- 1 per per    1231 2008-02-01 14:42 !home!per!.semanticdb!
semantic.cache
-rw-r--r-- 1 per per    2425 2008-02-01 14:42 !usr!include!asm-generic!
semantic.cache
-rw-r--r-- 1 per per    7892 2008-02-01 14:42 !usr!include!asm-i386!
semantic.cache
-rw-r--r-- 1 per per    1922 2008-02-01 14:42 !usr!include!asm!
semantic.cache
-rw-r--r-- 1 per per    7896 2008-02-01 14:42 !usr!include!asm-x86_64!
semantic.cache
-rw-r--r-- 1 per per  169754 2008-02-01 14:55 !usr!include!bits!
semantic.cache
-rw-r--r-- 1 per per 1102305 2008-02-01 14:42 !usr!include!GL!
semantic.cache
-rw-r--r-- 1 per per    1592 2008-02-01 14:42 !usr!include!gnu!
semantic.cache
-rw-r--r-- 1 per per    1214 2008-02-01 14:55 !usr!include!linux!
semantic.cache
-rw-r--r-- 1 per per   18066 2008-02-01 14:42 !usr!include!netinet!
semantic.cache
-rw-r--r-- 1 per per  133496 2008-02-01 14:42 !usr!include!
semantic.cache
-rw-r--r-- 1 per per   31410 2008-02-01 14:42 !usr!include!sys!
semantic.cache
-rw-r--r-- 1 per per  660002 2008-02-01 12:55 !usr!include!X11!BROWSE
-rw-r--r-- 1 per per      53 2008-02-01 12:55 !usr!include!X11!BROWSE-
load.el
-rw-r--r-- 1 per per    6992 2008-02-01 14:42 !usr!include!X11!
extensions!semantic.cache
-rw-r--r-- 1 per per  612439 2008-02-01 14:55 !usr!include!X11!
semantic.cache
-rw-r--r-- 1 per per   19929 2008-02-01 14:42 !usr!local!share!emacs!
23.0.50!lisp!semantic.cache

Many Thanks in advance,
Nordlöw


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Redundant Re-Parsings by CEDET/Semantic
  2008-02-01 15:20 Redundant Re-Parsings by CEDET/Semantic Nordlöw
@ 2008-02-14 18:45 ` Eric Ludlam
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Ludlam @ 2008-02-14 18:45 UTC (permalink / raw)
  To: help-gnu-emacs

For those following along on g.e.help, this was answered on a cedet
mailing list.  This was a bug that is now fixed in CEDET/CVS.

Eric

>>> "Nordlöw" <per.nordlow@gmail.com> seems to think that:
>I am trying out CEDET/Semantic and I have found it to be absolutely
>world-class brilliant software.
>
>In my setup, however, Semantic(db) keep performing reparsings of the
>same system header-files, for example Xlib.h, X.h, etc during the same
>Emacs session....
>
>Also, the caches in my ~/semanticdb does *not* prevent semantic from
>reparsing all my project sources and system header files upon startup
>of Emacs.
>
>In all I get the LL/...h ###... progressbar for all C/C++ sources I
>use when I open them the second time despite the fact that they all
>have entries in the files under ~/.semanticdb/.
>
>What have I missed?
>
>
>Here is my CEDET setup:
>
>  (load-file "~/pnw/emacs/contrib/cedet/common/cedet.elc")
[...]
-- 
Eric Ludlam                    The MathWorks x 7556  eludlam@mathworks.com
http://www.siege-engine.com                       http://www.mathworks.com


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-02-14 18:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-01 15:20 Redundant Re-Parsings by CEDET/Semantic Nordlöw
2008-02-14 18:45 ` Eric Ludlam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).