From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitriy Igrishin Newsgroups: gmane.emacs.help Subject: Re: A guide on setting up C/C++ development environment for Emacs Date: Wed, 27 Aug 2014 18:15:07 +0400 Message-ID: References: <513ad0e2-f7f4-484c-b17b-7c94a8c2fc7a@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1409148957 15632 80.91.229.3 (27 Aug 2014 14:15:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 Aug 2014 14:15:57 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Tu Hoang Do Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 27 16:15:50 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XMe0p-0004Iu-3e for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Aug 2014 16:15:47 +0200 Original-Received: from localhost ([::1]:59846 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XMe0o-0005mP-J2 for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Aug 2014 10:15:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43590) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XMe0K-0005m8-5Y for help-gnu-emacs@gnu.org; Wed, 27 Aug 2014 10:15:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XMe0C-0003HT-6a for help-gnu-emacs@gnu.org; Wed, 27 Aug 2014 10:15:16 -0400 Original-Received: from mail-ie0-f177.google.com ([209.85.223.177]:39419) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XMe0C-0003GS-1T for help-gnu-emacs@gnu.org; Wed, 27 Aug 2014 10:15:08 -0400 Original-Received: by mail-ie0-f177.google.com with SMTP id at20so328971iec.22 for ; Wed, 27 Aug 2014 07:15:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=TAebwtBT4Wf+1NYkLD2sXFXsgGn6iHmcU86tV29U7dU=; b=Rq7TFeEdq3LSiXprpAAg9XP3h36WYR3k3QVeX8GMQAhTnAsv7awsK/OuUlXSDK9bf+ Q3TBs0akt7GzDsaumgpXAJ88vvdWUIUpGCHYf9L2nZUwBMWMiJmPzZjFO2zw4iu4hyW2 RArEpEiSdXgN6QMp3dKFPinl1wczcnoXx4j846b4bXrB+uU16pg6qe+8QWfsE1/7QxiE i7f1TiwRJxQZhRWrkoqE5X4kAktAWTN9UQzHhQX+fDrvDHtoZhtuLTqO2M/0pVL3AqgS WZDE5dkqyn0aFi7nG1tF4g7sZhEt7DwDAKUS8YXAacK5DoWaPY+hqalPhwC3O5ukajRR 5UcQ== X-Received: by 10.43.140.132 with SMTP id ja4mr36062013icc.4.1409148907195; Wed, 27 Aug 2014 07:15:07 -0700 (PDT) Original-Received: by 10.107.132.144 with HTTP; Wed, 27 Aug 2014 07:15:07 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.223.177 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:99415 Archived-At: 2014-08-27 17:18 GMT+04:00 Tu Hoang Do : > CEDET is not slow. It's reasonably fast given it is implemented in Emacs > Lisp. It needs time for parsing to build a database, so you see a message > printing this: parsing.... in the minibuffer. It needs parsing to > build up a database for smart completion. After the first time parsing, > completion happens instantly and you should enable Semanticdb minor mode to > save the parsing results, so CEDET won't have to parse the next time. CEDET > can handle project with the size of Emacs really well. I think even project > with more than a million lines of code. CEDET is the only viable solution > so far I found for real smart completion in Emacs. Other clang based > solution is pretty limited: you can only get completion from system header > and current directory, but not for your project. You have to add the > include paths to tell Clang where your project include paths are, and you > have to specify with absolute paths. It's really tedious. > No, it does not real smart. For example, please, try to M-x semantic-ia-complete-symbol-menu when you are in method implementation like this: void Class::method() { // M-x semantic-ia-complete-symbol-menu should show a menu // with all members in the scope. But nothing is shown. } Second example. Please, try to M-x semantic-ia-complete-symbol-menu when you are in void Class::method() { method2( // M-x semantic-ia-complete-symbol-menu after the "(" will // freeze Emacs to do some of stupid thinking. // Terrible, horrible and sad. And nothing more. } After this, I don't want to use CEDET without any sorry. Sorry. -- // Dmitriy.