From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Nordl=F6w?= Newsgroups: gmane.emacs.help Subject: Re: how to get the exhaustive list of auto completions while editing in .c or .cpp file. Date: Thu, 20 Nov 2008 02:47:09 -0800 (PST) Organization: http://groups.google.com Message-ID: <7bb81a94-4618-4830-81ae-02a8e17e8f62@33g2000yqm.googlegroups.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1227181275 20151 80.91.229.12 (20 Nov 2008 11:41:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Nov 2008 11:41: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 Thu Nov 20 12:42:17 2008 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 1L37vM-0001fh-9a for geh-help-gnu-emacs@m.gmane.org; Thu, 20 Nov 2008 12:42:16 +0100 Original-Received: from localhost ([127.0.0.1]:32910 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L37uA-0007Ip-9I for geh-help-gnu-emacs@m.gmane.org; Thu, 20 Nov 2008 06:41:02 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!33g2000yqm.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 31 Original-NNTP-Posting-Host: 150.227.15.253 Original-X-Trace: posting.google.com 1227178030 4279 127.0.0.1 (20 Nov 2008 10:47:10 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 20 Nov 2008 10:47:10 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 33g2000yqm.googlegroups.com; posting-host=150.227.15.253; posting-account=ytJKAgoAAAA1tg4ScoRszebXiIldA5vg User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; sv-SE; rv:1.9.0.4) Gecko/2008111318 Ubuntu/8.10 (intrepid) Firefox/3.0.4, gzip(gfe), gzip(gfe) X-HTTP-Via: 1.1 ip1-w.foi.se:8080 (IronPort-WSA/5.6.0-623) Original-Xref: news.stanford.edu gnu.emacs.help:164625 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:59964 Archived-At: On 20 Nov, 04:55, "Anand S. Dhankshirur" wrote: > I have one more question > GVIM, provides the auto completions with the exhaustive list of all the > possibilities. > while typing in .c file > (for example GS_AM_ will give all the auto completions for all the > tokens strating with GS_AM.) > In emacs also M-/ gives the completions which are there in current buffer= . > Furhter it gives the case insensitive one.(the cases are ignored). > But it will not give the completions from the TAGS file > It does not consider other files and buffers. > Is there any way to do it in emacs.? Add the following to .emacs (provide 'hippie-exp) And the customize the variable hippie-expand-try-functions-list like for example (setq hippie-expand-try-functions-list '(try-expand-dabbrev-visible ;from visible parts of all windows try-expand-dabbrev ;from current buffer try-expand-dabbrev-all-buffers ;from all other buffers try-expand-tag ;Note: Expand from "TAGS" table. ) Then finally do M-x hippie-expand /Nordl=F6w