unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Nordlöw <per.nordlow@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Redundant Re-Parsings by CEDET/Semantic
Date: Fri, 1 Feb 2008 07:20:57 -0800 (PST)	[thread overview]
Message-ID: <b7be74db-84f9-41f8-bc91-275ea7f88bb1@q21g2000hsa.googlegroups.com> (raw)

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	other threads:[~2008-02-01 15:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-01 15:20 Nordlöw [this message]
2008-02-14 18:45 ` Redundant Re-Parsings by CEDET/Semantic Eric Ludlam

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b7be74db-84f9-41f8-bc91-275ea7f88bb1@q21g2000hsa.googlegroups.com \
    --to=per.nordlow@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).