From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: netawater Newsgroups: gmane.emacs.help Subject: Re: How to use elisp's closure Date: Tue, 17 Jun 2008 21:02:46 +0800 Organization: Bentium Ltd. (CN99) Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1213795537 9447 80.91.229.12 (18 Jun 2008 13:25:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Jun 2008 13:25:37 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 18 15:26:21 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 1K8xg4-00044u-VC for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Jun 2008 15:26:21 +0200 Original-Received: from localhost ([127.0.0.1]:50878 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K8xfG-0003C5-D2 for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Jun 2008 09:25:30 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!goblin1!goblin.stu.neva.ru!fu-berlin.de!news.cn99.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 30 Original-NNTP-Posting-Host: 58.25.216.163 Original-X-Trace: news.cn99.com 1213707762 1644 58.25.216.163 (17 Jun 2008 13:02:42 GMT) Original-X-Complaints-To: usenet@news.cn99.com Original-NNTP-Posting-Date: Tue, 17 Jun 2008 13:02:42 +0000 (UTC) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) Cancel-Lock: sha1:sUdE0CKLQShd0D8JReZ8jyqE9tg= Original-Xref: news.stanford.edu gnu.emacs.help:159572 X-Mailman-Approved-At: Wed, 18 Jun 2008 09:23:08 -0400 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:54942 Archived-At: beaubert writes: > On Monday 16 June 2008 16:15:21 netawater wrote: >> In most usual modes, TAB key is bound to an indent function and >> M-TAB key is bound to a complete symbol function. >> I want to write a function if cursor is at the end of word then >> try to complete symbol, else indent. It is my function. >> > Have a look at my previous post about tabkey2.el > It may be interesting for what you want to do ... > > > > -- > François BEAUBERT > ENSIAME/LME > Bureau A9 > Université de Valenciennes - Le Mont Houy - 59313 Valenciennes Cedex 9 > Téléphone: (0/33)3 27 51 19 72 > Télécopie: (0/33)3 27 51 19 61 > Mel: francois.beaubert@univ-valenciennes.fr > > -- > Ce message a été vérifié par MailScanner > pour des virus ou des polluriels et rien de > suspect n'a été trouvé. Thanks, I took a glance at your code, you have done a great job. But I think I still need set tabkey2-preferred variable for different buffer based on your work.