all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: David Capello <davidcapello@gmail.com>, emacs-devel@gnu.org
Subject: Re: Fwd: Alt+numpad to write special symbols
Date: Wed, 30 Sep 2009 02:12:31 +0300	[thread overview]
Message-ID: <87ocotqra8.fsf@mail.jurta.org> (raw)
In-Reply-To: <jwvy6ny5ttb.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Mon, 28 Sep 2009 23:13:37 -0400")

>> 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/




  reply	other threads:[~2009-09-29 23:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-29  0:49 Alt+numpad to write special symbols David Capello
2009-09-29  0:57 ` Juanma Barranquero
     [not found]   ` <77b6ce390909281815j1600f85by5837ca2bb4b1f7d@mail.gmail.com>
2009-09-29  1:27     ` Fwd: " David Capello
2009-09-29  3:13       ` Stefan Monnier
2009-09-29 23:12         ` Juri Linkov [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-09-30  1:40 MON KEY

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ocotqra8.fsf@mail.jurta.org \
    --to=juri@jurta.org \
    --cc=davidcapello@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.