help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Redundant Re-Parsings by CEDET/Semantic


From: Nordlöw
Subject: Redundant Re-Parsings by CEDET/Semantic
Date: Fri, 1 Feb 2008 07:20:57 -0800 (PST)
User-agent: G2/1.0

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]