From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Hadron Newsgroups: gmane.emacs.help Subject: semantic/senator auto complete Date: Tue, 08 May 2007 10:16:37 +0200 Message-ID: <87fy67wx0a.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1178613315 6055 80.91.229.12 (8 May 2007 08:35:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 8 May 2007 08:35:15 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 08 10:35:14 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HlLA7-00043p-M2 for geh-help-gnu-emacs@m.gmane.org; Tue, 08 May 2007 10:35:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HlLHB-0008F5-8t for geh-help-gnu-emacs@m.gmane.org; Tue, 08 May 2007 04:42:29 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 45 Original-X-Trace: individual.net /a4L0yaBviHTWDzAWRtN/QXtcptNFBTVuNZTngcr70k5LJHCsZ X-Orig-Path: news.individual.net!news X-Face: 2h#||Cd#d%F*NCm59[_6/{1a@jy%; |j>{D~4^gKg(^i%7j0IK?+,/GmW&:CD5fEKb_! User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.99 (gnu/linux) Cancel-Lock: sha1:sbJn1On1JkBEztMjl9NTLzlYvJg= Original-Xref: shelby.stanford.edu gnu.emacs.help:148209 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:43803 Archived-At: 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 | 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?