[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

read-event question

From: Lars Magne Ingebrigtsen
Subject: read-event question
Date: Fri, 14 Apr 2006 11:55:21 +0200
User-agent: Gnus/5.110005 (No Gnus v0.5) Emacs/22.0.50 (gnu/linux)

I'm having a really trivial problem, but I haven't been able to find
the answer in the Emacs or Emacs-Lisp manuals.  I'm sure I'm just
looking in the wrong place.

Here's the problem: I'm using `read-event' to, well, read a user
event.  I want to do something when the user enters `M-n', but I just
can't seem to find a way to translate `M-n' into whatever `read-event'
returns (or vice versa).

Using `read-event' and tapping `M-n' returns a large integer:

(read-event) => 134217838

Is there some function I can use to map [(meta n)] or whatever to this

(domestic pets only, the antidote for overdose, milk.)
  address@hidden * Lars Magne Ingebrigtsen

reply via email to

[Prev in Thread] Current Thread [Next in Thread]