From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Unknown Newsgroups: gmane.emacs.help Subject: Re: Word Completion by Association Date: Mon, 03 Mar 2003 23:52:24 GMT Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: main.gmane.org 1046735805 27549 80.91.224.249 (3 Mar 2003 23:56:45 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 3 Mar 2003 23:56:45 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18pznX-0007A3-00 for ; Tue, 04 Mar 2003 00:56:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18pzn5-0000CR-0A for gnu-help-gnu-emacs@m.gmane.org; Mon, 03 Mar 2003 18:56:15 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.uchicago.edu!yellow.newsread.com!netaxs.com!newsread.com!newsfeeds-atl2!news.webusenet.com!news03.bloor.is.net.cable.rogers.com!news01.bloor.is.net.cable.rogers.com.POSTED!not-for-mail Original-From: Le Wang Original-Newsgroups: gnu.emacs.help Original-Lines: 27 User-Agent: KNode/0.7.1 Original-NNTP-Posting-Host: 24.192.182.203 Original-X-Complaints-To: abuse@rogers.com Original-X-Trace: news01.bloor.is.net.cable.rogers.com 1046735544 24.192.182.203 (Mon, 03 Mar 2003 18:52:24 EST) Original-NNTP-Posting-Date: Mon, 03 Mar 2003 18:52:24 EST Original-Xref: shelby.stanford.edu gnu.emacs.help:110772 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:7273 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:7273 Artist wrote: > Hi I am looking for mechanism which allows me to complete the word > based on association. Example: I have only 4 words : [artist], > [google], [emacs], [gnu] > > then the 'representations' r , o, m, u should be enough to complete > the above words respectively. Now lets say that we add the word > [glass] in my set. Then 'glass' can be represented by 'l' and if we > add the word [late] it could be represented by 'lt'. It's like > shorthand for emacs or 'auto abbreviation'. > > The key is that emacs automatically defines the abbreviations and let > us know. > > Is it already possible? difficult? possible at all? Your questions are nothing if not interesting. ;) Have you given any thought as to how you would implement such a completion system. Currently substring completion is possible and it does most of what you ask for. See icomplete, mcomplete. -- Le