From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Riley Newsgroups: gmane.emacs.help Subject: Re: Semantic completion of C++ class members Date: Sun, 04 May 2014 02:44:44 +0200 Organization: aich tea tea pea dicky riley dot net Message-ID: <87fvkqfk3n.fsf@gmail.com> References: <86bef26e-2d5a-458d-8443-c8ce1fe174d5@googlegroups.com> <87wqe5ur0r.fsf@nl106-137-194.student.uu.se> Reply-To: help-gnu-emacs@gnu.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1399164330 7442 80.91.229.3 (4 May 2014 00:45:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 4 May 2014 00:45:30 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun May 04 02:45:24 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 1WgkYU-0004Dz-P2 for geh-help-gnu-emacs@m.gmane.org; Sun, 04 May 2014 02:45:22 +0200 Original-Received: from localhost ([::1]:51682 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WgkYU-0005qb-BP for geh-help-gnu-emacs@m.gmane.org; Sat, 03 May 2014 20:45:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46708) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WgkYE-0005ls-3T for help-gnu-emacs@gnu.org; Sat, 03 May 2014 20:45:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WgkY8-0000Yy-7e for help-gnu-emacs@gnu.org; Sat, 03 May 2014 20:45:06 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:56212) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WgkY8-0000Yo-17 for help-gnu-emacs@gnu.org; Sat, 03 May 2014 20:45:00 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WgkY4-0001TI-Vz for help-gnu-emacs@gnu.org; Sun, 04 May 2014 02:44:56 +0200 Original-Received: from f054130067.adsl.alicedsl.de ([78.54.130.67]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 04 May 2014 02:44:56 +0200 Original-Received: from rileyrg by f054130067.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 04 May 2014 02:44:56 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 49 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: f054130067.adsl.alicedsl.de X-Message-Smtp-Method: smtp smtp.gmail.com 587 rileyrg Mail-Copies-To: never User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:ZyQFdSnsd2FM9qj90VEyjzqN7Uc= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:97552 Archived-At: Emanuel Berg writes: > Jacob Gerlach writes: > >> My understanding of semantic mode is that it should >> offer completions based on class definitions. > > What does "semantic" mean in this context? Please reader to CEDET documentaton. > >> For example, given >> >> MyClass A; >> >> A.-|- > > "-|-"? > >> Alternatively, I have not tried to use anything like >> CEDET, so if a better solution is "just use CEDET" >> (or whatever else), I'm open to anything. > > Really? :) In that case, let me offer the same piece of > advice I always do in these matters. > > 1. If you cannot do it already, then learn to type - Typing quickly has nothing to do with context based completion of class variables and functions. > preferable as fast as you can think. (When you get > close, those two activities will merge more or less.) > > 2. Always make an effort to use short names for > everything, names that are descriptive and easy to > spell (and type). Doing this over and over, it'll be > second nature and you can even relax your memory a bit > - just "name" the thing again, and the same thing will > pop up (that won't work every time, but often enough). I'm intrigued to hear what you think any of that has to do with CEDET completion? C++ classes are frequently massive and complex and trying to code or maintain any form of large library based code base without this sort of semantic help/completion borders on crazy these days. -- Sent using Emacs/Gnus from home ...