From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Stewart Newsgroups: gmane.emacs.help Subject: Re: How to make emacs switch input method automatically ? Date: Thu, 06 Aug 2009 14:13:33 +0800 Message-ID: <87ws5h8o6q.fsf@ubuntu.domain> References: <907065090908052249m5a2ae721v9b7cb28c953ada66@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1249542565 28176 80.91.229.12 (6 Aug 2009 07:09:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Aug 2009 07:09:25 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 06 09:09:18 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 1MYx6D-0002j3-T1 for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Aug 2009 09:09:18 +0200 Original-Received: from localhost ([127.0.0.1]:55282 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MYx6D-000609-Bc for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Aug 2009 03:09:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MYx5V-0005rK-02 for help-gnu-emacs@gnu.org; Thu, 06 Aug 2009 03:08:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MYx5Q-0005mf-A2 for help-gnu-emacs@gnu.org; Thu, 06 Aug 2009 03:08:32 -0400 Original-Received: from [199.232.76.173] (port=58218 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MYx5Q-0005mQ-76 for help-gnu-emacs@gnu.org; Thu, 06 Aug 2009 03:08:28 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:40368) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MYx5P-0001mP-PO for help-gnu-emacs@gnu.org; Thu, 06 Aug 2009 03:08:27 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MYx5O-0007b8-4s for help-gnu-emacs@gnu.org; Thu, 06 Aug 2009 03:08:26 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MYx5J-00074m-I6 for help-gnu-emacs@gnu.org; Thu, 06 Aug 2009 07:08:21 +0000 Original-Received: from 116.18.175.159 ([116.18.175.159]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 06 Aug 2009 07:08:21 +0000 Original-Received: from lazycat.manatee by 116.18.175.159 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 06 Aug 2009 07:08:21 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 19 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 116.18.175.159 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:OLHvSFuHrDBwGNzI4R+zxFSdXzw= X-Detected-Operating-System: by mx20.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:66834 Archived-At: waterloo writes: > 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? http://www.emacswiki.org/cgi-bin/emacs/ScimBridge_Chinese ? -- Andy