From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: read key sequence according to input method? Date: 15 May 2002 00:25:34 +0900 Sender: emacs-devel-admin@gnu.org Message-ID: <87wuu6rbtd.fsf@tc-1-100.kawasaki.gol.ne.jp> References: Reply-To: Miles Bader NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1021390023 32196 127.0.0.1 (14 May 2002 15:27:03 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 14 May 2002 15:27:03 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 177eCd-0008NB-00 for ; Tue, 14 May 2002 17:27:03 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 177eNi-00007o-00 for ; Tue, 14 May 2002 17:38:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 177eCl-0002jX-00; Tue, 14 May 2002 11:27:11 -0400 Original-Received: from smtp02.fields.gol.com ([203.216.5.132]) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 177eBF-0002aP-00; Tue, 14 May 2002 11:25:38 -0400 Original-Received: from tc-2-223.kawasaki.gol.ne.jp ([203.216.25.223] helo=tc-1-100.kawasaki.gol.ne.jp) by smtp02.fields.gol.com with esmtp (Magnetic Fields) id 177eBD-0001ua-00; Wed, 15 May 2002 00:25:36 +0900 Original-Received: by tc-1-100.kawasaki.gol.ne.jp (Postfix, from userid 1000) id 5D3AF30A7; Wed, 15 May 2002 00:25:34 +0900 (JST) Original-To: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-1?q?Gro=DFjohann?=) System-Type: i686-pc-linux-gnu In-Reply-To: Original-Lines: 25 X-Abuse-Complaints: abuse@gol.com Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:3926 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:3926 Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Gro=DFjohann) writes: > Yes, this looks quite nice. Thanks a lot! I'll continue that other > thread about replacing C-x 8 with something based on your suggestion. Ah, so that's what you want it for... I think that's even simpler; the following seems to actually work pretty well (though no doubt there are corner cases that need addressing): (defun insert-latin1-character () (interactive) (let ((prev-input-method current-input-method)) (unwind-protect (progn (activate-input-method 'latin-1-prefix) (apply #'insert (funcall input-method-function (read-event)))) (activate-input-method prev-input-method)))) One nice thing about the old implementation, though, is that you can get help by typing `C-h' during input... -Miles --=20 A zen-buddhist walked into a pizza shop and said, "Make me one with everything."