From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: read-event question Date: Fri, 14 Apr 2006 11:55:21 +0200 Organization: Programmerer Ingebrigtsen Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1145008624 17996 80.91.229.2 (14 Apr 2006 09:57:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 14 Apr 2006 09:57:04 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 14 11:57:01 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FUL2r-0003Bp-2W for ged-emacs-devel@m.gmane.org; Fri, 14 Apr 2006 11:56:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FUL2p-0008G5-HI for ged-emacs-devel@m.gmane.org; Fri, 14 Apr 2006 05:56:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FUL2Y-0008DJ-Vt for emacs-devel@gnu.org; Fri, 14 Apr 2006 05:56:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FUL2U-00089T-6i for emacs-devel@gnu.org; Fri, 14 Apr 2006 05:56:34 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FUL2T-00089K-UP for emacs-devel@gnu.org; Fri, 14 Apr 2006 05:56:29 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FUL7o-0006PC-An for emacs-devel@gnu.org; Fri, 14 Apr 2006 06:02:01 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FUL1x-00033h-Qd for emacs-devel@gnu.org; Fri, 14 Apr 2006 11:55:57 +0200 Original-Received: from quimbies.gnus.org ([80.91.231.2]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 14 Apr 2006 11:55:57 +0200 Original-Received: from larsi by quimbies.gnus.org with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 14 Apr 2006 11:55:57 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-To: emacs-devel@gnu.org Original-Lines: 19 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: quimbies.gnus.org Mail-Copies-To: never X-Now-Playing: Clan of Xymox's _Medusa_: "Louise" User-Agent: Gnus/5.110005 (No Gnus v0.5) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:KM+J+mmKVN3BX+gosYpOjACyOtA= 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:52862 Archived-At: 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 number? -- (domestic pets only, the antidote for overdose, milk.) larsi@gnus.org * Lars Magne Ingebrigtsen