unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Hadron <hadronquark@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: semantic/senator auto complete
Date: Tue, 08 May 2007 10:16:37 +0200	[thread overview]
Message-ID: <87fy67wx0a.fsf@gmail.com> (raw)


I realise there is a mailing list, but it is very quiet and I am hoping
someone here can help now.

I have a small sample C file "bug.c"

,----
| #include <fstab.h>
| int  main()
| {
| 	fstab fedora;
| 	fedora.
| }
`----

If I open "fstab.h" in emacs then by placing the cursor at the end of
"fedora." then I get valid completions. I have then issued the command
"semanticdb-save-all-db". In the local directory there is now a
"semantic.cache" file with the following in:

,----
| ;; Object bug/
| ;; SEMANTICDB Tags save file
| (semanticdb-project-database-file "bug/"
|   :tables (list 
|    (semanticdb-table "bug.c"
|     :major-mode 'c-mode
|     :tags '(("fstab.h" include (:system-flag t) (dependency-file "/usr/include/fstab.h") [1 19]) ("main" function (:type "int") nil [20 59]))
|     :file "bug.c"
|     :pointmax 60
|     :unmatched-syntax 'nil
|     )
|    )
|   :file "semantic.cache"
|   :semantic-tag-version "2.0"
|   :semanticdb-version "2.0"
|   )
`----

My question is : how do I get semantic to open & parse the cache file
properly in my next emacs session when I open bug.c? I have to manually
open "fstab.h" in order to get completions to work for the types it
contains. So what job is the cache doing? Is it not possible to get
completion without manually opening each and every file?

                 reply	other threads:[~2007-05-08  8:16 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=87fy67wx0a.fsf@gmail.com \
    --to=hadronquark@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).