From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: Using quail input methods to translate buffer text. Date: Sat, 08 Jul 2006 09:54:05 +0900 Message-ID: <87u05shq6q.fsf@catnip.gol.com> References: <87k66rlqys.fsf@heslin.eclipse.co.uk> <87y7v5fvp2.fsf@dur.ac.uk> <8764i9caau.fsf@heslin.eclipse.co.uk> <87zmfkhqfm.fsf@catnip.gol.com> Reply-To: Miles Bader NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1152320066 25144 80.91.229.2 (8 Jul 2006 00:54:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 8 Jul 2006 00:54:26 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 08 02:54:25 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Fz15U-000669-55 for ged-emacs-devel@m.gmane.org; Sat, 08 Jul 2006 02:54:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fz15T-0000MJ-Mr for ged-emacs-devel@m.gmane.org; Fri, 07 Jul 2006 20:54:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fz15I-0000M4-Dv for emacs-devel@gnu.org; Fri, 07 Jul 2006 20:54:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fz15H-0000Ls-2D for emacs-devel@gnu.org; Fri, 07 Jul 2006 20:54:11 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fz15G-0000Lp-TS for emacs-devel@gnu.org; Fri, 07 Jul 2006 20:54:10 -0400 Original-Received: from [203.216.5.72] (helo=smtp02.dentaku.gol.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1Fz15m-0003AS-GY; Fri, 07 Jul 2006 20:54:43 -0400 Original-Received: from 203-216-98-193.dsl.gol.ne.jp ([203.216.98.193] helo=catnip.gol.com) by smtp02.dentaku.gol.com with esmtpa (Dentaku) id 1Fz15C-0000Cx-GM; Sat, 08 Jul 2006 09:54:06 +0900 Original-Received: by catnip.gol.com (Postfix, from userid 1000) id 0CAC72F66; Sat, 8 Jul 2006 09:54:05 +0900 (JST) Original-To: Peter Heslin System-Type: i686-pc-linux-gnu In-Reply-To: <87zmfkhqfm.fsf@catnip.gol.com> (Miles Bader's message of "Sat, 08 Jul 2006 09:48:45 +0900") Original-Lines: 19 X-Abuse-Complaints: abuse@gol.com 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 Xref: news.gmane.org gmane.emacs.devel:56755 Archived-At: I wrote: > using the `japanese' input method, and yours seems to simply not work > at all -- or at least I can't see what it's doing: it simply returns > nil (and doesn't insert anything in the buffer). I was wrong here: your code _does_ work properly for Japanese -- the problem was that it expects the BEG and END arguments to be in proper order (and I did that for my latin-1-postfix test but not the japanese test). It also does have the advantage (over Kenichi's code) that it doesn't require "\r" to be appended to the input string. -Miles -- /\ /\ (^.^) (")") *This is the cute kitty virus, please copy this into your sig so it can spread.