From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: announcing thaiword.el? Date: Sat, 26 Mar 2005 10:06:17 +0900 (JST) Message-ID: <200503260106.KAA20718@etlken.m17n.org> References: <20050325.081838.163323532.wl@gnu.org> <20050325.232613.73792307.wl@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1111799451 31435 80.91.229.2 (26 Mar 2005 01:10:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 26 Mar 2005 01:10:51 +0000 (UTC) Cc: emacs-devel@gnu.org, monnier@iro.umontreal.ca, rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 26 02:10:48 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DEzow-0001bn-7O for ged-emacs-devel@m.gmane.org; Sat, 26 Mar 2005 02:10:34 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DF04W-00058d-KD for ged-emacs-devel@m.gmane.org; Fri, 25 Mar 2005 20:26:40 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DF03h-0004lw-83 for emacs-devel@gnu.org; Fri, 25 Mar 2005 20:25:49 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DF03Z-0004gw-JE for emacs-devel@gnu.org; Fri, 25 Mar 2005 20:25:44 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DF03X-0004fX-Ax for emacs-devel@gnu.org; Fri, 25 Mar 2005 20:25:39 -0500 Original-Received: from [192.47.44.130] (helo=tsukuba.m17n.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1DEzkp-0000H0-S7; Fri, 25 Mar 2005 20:06:20 -0500 Original-Received: from nfs.m17n.org (nfs.m17n.org [192.47.44.7]) by tsukuba.m17n.org (8.12.3/8.12.3/Debian-7.1) with ESMTP id j2Q16HdY019121; Sat, 26 Mar 2005 10:06:18 +0900 Original-Received: from etlken.m17n.org (etlken.m17n.org [192.47.44.125]) by nfs.m17n.org (8.12.3/8.12.3/Debian-7.1) with ESMTP id j2Q16HDI026561; Sat, 26 Mar 2005 10:06:17 +0900 Original-Received: (from handa@localhost) by etlken.m17n.org (8.8.8+Sun/3.7W-2001040620) id KAA20718; Sat, 26 Mar 2005 10:06:17 +0900 (JST) Original-To: Werner LEMBERG In-reply-to: <20050325.232613.73792307.wl@gnu.org> (message from Werner LEMBERG on Fri, 25 Mar 2005 23:26:13 +0100 (CET)) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/22.0.50 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: news.gmane.org gmane.emacs.devel:35182 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:35182 In article <20050325.232613.73792307.wl@gnu.org>, Werner LEMBERG writes: > As a compromise I suggest that M-f and M-b are mapped to > thai-forward-word and thai-backward-word, respectively, as soon as we > enter the Thai environment. This should be a two-liner or so for the > experienced Emacs Lisp hacker (which I'm not, unfortunately). We can do that by setup-function and exit-function of a language environment. setup-function value is a function to call to switch to this language environment. exit-function value is a function to call to leave this language environment. But, I'm not an expert of key-binding. Could someone tell me what is the right way to rebind all keys that are currently bound to forward-word to thai-forward-word, and bind them back to the orignal later? --- Ken'ichi HANDA handa@m17n.org