From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: waterloo Newsgroups: gmane.emacs.help Subject: Re: How to make emacs switch input method automatically ? Date: Thu, 6 Aug 2009 13:49:52 +0800 Message-ID: <907065090908052249m5a2ae721v9b7cb28c953ada66@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=00221504874f414286047072b097 X-Trace: ger.gmane.org 1249537839 17814 80.91.229.12 (6 Aug 2009 05:50:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Aug 2009 05:50:39 +0000 (UTC) To: help-gnu-emacs@gnu.org, politza@googlemail.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 06 07:50:32 2009 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 1MYvrz-0003sK-St for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Aug 2009 07:50:32 +0200 Original-Received: from localhost ([127.0.0.1]:44434 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MYvrz-0004F9-Cn for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Aug 2009 01:50:31 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MYvrT-0004Du-4j for help-gnu-emacs@gnu.org; Thu, 06 Aug 2009 01:49:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MYvrO-00049w-AF for help-gnu-emacs@gnu.org; Thu, 06 Aug 2009 01:49:58 -0400 Original-Received: from [199.232.76.173] (port=46287 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MYvrO-00049k-72 for help-gnu-emacs@gnu.org; Thu, 06 Aug 2009 01:49:54 -0400 Original-Received: from mail-yx0-f172.google.com ([209.85.210.172]:35681) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MYvrN-0002Dj-Qp for help-gnu-emacs@gnu.org; Thu, 06 Aug 2009 01:49:53 -0400 Original-Received: by yxe2 with SMTP id 2so841333yxe.14 for ; Wed, 05 Aug 2009 22:49:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=SK9ZWxX4MIgLsegA8T7ZovA2zXpf4Uzd60yB8NKeZik=; b=vi/WZ1w31b5g5cwQWNLVXLnhj7yiMZZwfk2D1wSrgSeSGSkNlWEtxyo8QV++tHM3xD em0fbmnlnjCCRtvuCwlWaIHqyfrliiR/YViPYOdnW5Vt/heYWAlIYvRLlqCpoZHf7sxA 0o/AShsDln8dooyreVFw0Vps1oMU6xPlP/K7I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=COfRqDAwKMrsbGdU1lk/aSJ3xLNfR8jo0sXTiK/IDmfJBHLz+mfZucoEYUcyX73nfO ebknxBpssVWQh3/Q4leiezPZ6d9eYPlHkna9xK+aZqGB4tY1LEURgoQZdLdNj6az22Cl iROIgenFDJjNJ/aKUb2iSdcUFE0eQ4hebnbbo= Original-Received: by 10.231.36.68 with SMTP id s4mr3172339ibd.47.1249537792491; Wed, 05 Aug 2009 22:49:52 -0700 (PDT) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:66831 Archived-At: --00221504874f414286047072b097 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Thanks very much ! Now how to simulate `shift' key in elisp just like I stroke it ? How to know the current input state ? Below is my thought : I use scim . When I input chinese , It use `space' to choose the first character after I input `chinese pinyin'. So if we simulate `k ' (k and a space) , when the character before point is not `k ' I can know the current state is chinese. (This relate to character code problem) Is there any other better method? Thanks again. --00221504874f414286047072b097 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks very much !

Now how to simulate `shift' key in elisp just= like I stroke it ?

How to know the current input state ?

Bel= ow is my thought :
I use scim .=A0 When I input chinese , It=A0 use `spa= ce' to choose the first character after I input `chinese pinyin'. So if we simulate `k ' (k and a space) , when the character before poin= t is not `k '=A0 I can know the current state is chinese. (This relate = to character code problem)

Is there any other better method?

Thanks again.

--00221504874f414286047072b097--