From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?fran=E7ois_Bourgneuf?= Newsgroups: gmane.emacs.help Subject: Re: anyone knows automatic completation elisp script? Date: Mon, 25 Apr 2005 16:35:38 +0200 Message-ID: <426D003A.8050802@groupe-mma.fr> References: <20050425123011.GA5078@mail.lvying.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1403803208==" X-Trace: sea.gmane.org 1114439533 9451 80.91.229.2 (25 Apr 2005 14:32:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 25 Apr 2005 14:32:13 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 25 16:32:11 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DQ4cP-0005iy-0r for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Apr 2005 16:31:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DQ4hw-00073R-7u for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Apr 2005 10:37:08 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DQ4hh-00073E-W8 for help-gnu-emacs@gnu.org; Mon, 25 Apr 2005 10:36:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DQ4he-000732-3h for help-gnu-emacs@gnu.org; Mon, 25 Apr 2005 10:36:53 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DQ4he-0006cj-0l for help-gnu-emacs@gnu.org; Mon, 25 Apr 2005 10:36:50 -0400 Original-Received: from [195.101.229.226] (helo=zwa7221c.societe.mma.fr) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DQ4ju-0001u8-7w for help-gnu-emacs@gnu.org; Mon, 25 Apr 2005 10:39:10 -0400 Original-Received: from [10.200.40.198] ([10.200.40.198]) by zw67216c.societe.mma.fr with Microsoft SMTPSVC(5.0.2195.6713); Mon, 25 Apr 2005 16:35:38 +0200 User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: fr, en Original-To: help-gnu-emacs@gnu.org In-Reply-To: <20050425123011.GA5078@mail.lvying.org> X-OriginalArrivalTime: 25 Apr 2005 14:35:39.0000 (UTC) FILETIME=[0CE92F80:01C549A4] 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:26023 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:26023 --===============1403803208== Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit You can use the abbrev-mode
After you have switched to this mode, type automatic then C-x a g, Emacs will ask you for global abbrev, type auto.
Now each time you type auto<SPACE> it will be replaced by automatic.

If you do C-x a l instead of C-x a g, the abbrev will be save only for the major mode you are in.

If you use these commands with a number prefix, the abbrev will define the n words before the place where the cursor is.

The abbrevs will be saved in ~/.abbrev_defs when you leave Emacs (you'll be asked for a confirmation).

bour9.

litchi a dit le 25/04/2005 14:30:
I wander anyone who knows an automatic completation tools~?
I mean if I want to input the word automatic
and I have inputed four characters a,u,t and o
then the rest (m,a,t,i,c) can be pushed to the screen automatilly
---need no complete command such as M-/

If only one word (eg, only the word automatic) matches the regular expression ^auto 
no other words such as automatilly(this also match ^auto) exists in this buffer 
then we can use some keys to accept the auto completation(eg,<TAB>)
then if also some other matches,We can use some keys to change the one we wanted from
all the matches, eg, M-/.

Best regards
Litchi from China~~~

--
It takes a strong man to save himself, and a great man to save another.
IBM ThinkPad T23 hiweed0.6
fetchmail+procmail+mutt+msmtp vim7+emacs22+mule


_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

  
--===============1403803208== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Help-gnu-emacs mailing list Help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs --===============1403803208==--