From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Fwd: Alt+numpad to write special symbols Date: Wed, 30 Sep 2009 02:12:31 +0300 Organization: JURTA Message-ID: <87ocotqra8.fsf@mail.jurta.org> References: <77b6ce390909281749u14004a6cr1e6bdf4226c7f6df@mail.gmail.com> <77b6ce390909281815j1600f85by5837ca2bb4b1f7d@mail.gmail.com> <77b6ce390909281827x5325a009k32adde3c135428b1@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 1254266997 30892 80.91.229.12 (29 Sep 2009 23:29:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Sep 2009 23:29:57 +0000 (UTC) Cc: David Capello , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 30 01:29:50 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Msm8j-00023y-8M for ged-emacs-devel@m.gmane.org; Wed, 30 Sep 2009 01:29:49 +0200 Original-Received: from localhost ([127.0.0.1]:34724 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Msm8i-0006Sl-Nw for ged-emacs-devel@m.gmane.org; Tue, 29 Sep 2009 19:29:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Msm7W-0005cy-Ar for emacs-devel@gnu.org; Tue, 29 Sep 2009 19:28:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Msm7Q-0005aj-TQ for emacs-devel@gnu.org; Tue, 29 Sep 2009 19:28:33 -0400 Original-Received: from [199.232.76.173] (port=37854 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Msm7Q-0005ae-Pc for emacs-devel@gnu.org; Tue, 29 Sep 2009 19:28:28 -0400 Original-Received: from smtp-out2.starman.ee ([85.253.0.4]:46015 helo=mx2.starman.ee) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Msm7Q-0002xT-BZ for emacs-devel@gnu.org; Tue, 29 Sep 2009 19:28:28 -0400 X-Virus-Scanned: by Amavisd-New at mx2.starman.ee Original-Received: from mail.starman.ee (62.65.211.102.cable.starman.ee [62.65.211.102]) by mx2.starman.ee (Postfix) with ESMTP id 091743F40F2; Wed, 30 Sep 2009 02:28:20 +0300 (EEST) In-Reply-To: (Stefan Monnier's message of "Mon, 28 Sep 2009 23:13:37 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:115795 Archived-At: >> Another thing: I think it is impossible to emulate >> the Alt+keypad just with elisp code because I need >> to catch something like "Alt-unpressed" event. > > If you mean that "the alt-numpad" feature works by recognizing the > "alt-unpressed" event as the sign that you've finished entering the > number, then indeed, it can't be done in Elisp right now and would > require changes to provide access to the up/down events for key presses > (I actually did code up such a change at some point in the past, to > play with it: it might be doable without introducing too many problems). Like in GTK+ `Ctrl+Shift+U hex RET' http://en.wikipedia.org/wiki/Unicode_input we could finish entering the number with RET, e.g. `M-2 M-7 M-0 M-f RET'. Or expect a fixed-length four-digit number `M-2 M-7 M-0 M-f' where the last fourth digit finishes the sequence. In any case, your up/down events code would be useful for other purposes as well. -- Juri Linkov http://www.jurta.org/emacs/