From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: etay.meiri@gmail.com Newsgroups: gmane.emacs.help Subject: Up and running with semantic Date: Tue, 30 Sep 2008 22:41:42 -0700 (PDT) Organization: http://groups.google.com Message-ID: <4ad9fb28-3c76-4538-92f8-3dc7bf4123a4@l62g2000hse.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1222843388 25640 80.91.229.12 (1 Oct 2008 06:43:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 Oct 2008 06:43:08 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 01 08:44:07 2008 connect(): Connection refused 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 1KkvP4-0002G9-Mt for geh-help-gnu-emacs@m.gmane.org; Wed, 01 Oct 2008 08:41:42 +0200 Original-Received: from localhost ([127.0.0.1]:34237 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KkvO1-0000mp-MV for geh-help-gnu-emacs@m.gmane.org; Wed, 01 Oct 2008 02:40:37 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!l62g2000hse.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 60 Original-NNTP-Posting-Host: 217.132.209.60 Original-X-Trace: posting.google.com 1222839702 23810 127.0.0.1 (1 Oct 2008 05:41:42 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 1 Oct 2008 05:41:42 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: l62g2000hse.googlegroups.com; posting-host=217.132.209.60; posting-account=aYPwpgoAAABJuXxIZDkDtoDErg2phi4C User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.1) Gecko/2008071615 Fedora/3.0.1-1.fc9 Firefox/3.0.1,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:162897 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:58238 Archived-At: Hi, I have trouble getting semantic up and running. I read through its installation guide as well as various posting on this group. So far I have not been able to get it to a state where it is actually usable and can help me with my work. I'm mostly interested in its intellisense like features. However, I can't get autocompletion to work in all buffers. Sometimes it is simply unable to autocomplete a variable name that was declared just a line above. Also, the feature that shows a function parameters doesn't work. I gathered semantic's configuration from various sources and here's its current state: (load-file "~/.emacs_packages/cedet-1.0pre4/common/cedet.el") (require 'bovine-grammar nil t) (require 'semantic nil t) (semantic-load-enable-minimum-features) (semantic-load-enable-code-helpers) (global-semantic-idle-scheduler-mode 1) (global-semantic-idle-completions-mode 1) (global-semantic-idle-summary-mode 1) (require 'semantic-sb nil t) (require 'semanticdb nil t) (add-to-list 'semanticdb-project-roots "~/workspace") (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++/" '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)) (semantic-load-enable-excessive-code-helpers) (semantic-load-enable-guady-code-helpers) (which-func-mode t) (setq semanticdb-default-save-directory "~/tmp/semantic") (custom-set-variables '(global-semantic-stickyfunc-mode nil nil (semantic-util-modes)) '(semantic-idle-scheduler-idle-time 3) ) (setq semantic-load-turn-everything-on t) (require 'semantic-load) (global-semantic-show-unmatched-syntax-mode -1) Could someone please share their semantic configuration and the steps required to get it up and running? Thanks a lot, -Etay