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: Assignment of misc packages for emacs Date: 19 May 2002 20:57:26 +0900 Sender: emacs-devel-admin@gnu.org Message-ID: <87sn4otknt.fsf@tc-1-100.kawasaki.gol.ne.jp> References: <200205050534.g455YfF01634@aztec.santafe.edu> <5xbsbumexh.fsf@kfs2.cua.dk> <200205141941.g4EJfud15293@aztec.santafe.edu> <5xvg9qmgzt.fsf@kfs2.cua.dk> <200205151927.g4FJRRW26103@rum.cs.yale.edu> <5x3cwr4q7m.fsf@kfs2.cua.dk> <87g00rd74y.fsf@tc-1-100.kawasaki.gol.ne.jp> Reply-To: Miles Bader NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1021809597 23718 127.0.0.1 (19 May 2002 11:59:57 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 19 May 2002 11:59:57 +0000 (UTC) Cc: "Stefan Monnier" , rms@gnu.org, assign@gnu.org, 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 179PLx-0006AR-00 for ; Sun, 19 May 2002 13:59:57 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 179PZO-0006yl-00 for ; Sun, 19 May 2002 14:13:50 +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 179PMG-0007yP-00; Sun, 19 May 2002 08:00:16 -0400 Original-Received: from smtp02.fields.gol.com ([203.216.5.132]) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 179PJm-0007tU-00; Sun, 19 May 2002 07:57:43 -0400 Original-Received: from tc-2-246.kawasaki.gol.ne.jp ([203.216.25.246] helo=tc-1-100.kawasaki.gol.ne.jp) by smtp02.fields.gol.com with esmtp (Magnetic Fields) id 179PJi-00043R-00; Sun, 19 May 2002 20:57:39 +0900 Original-Received: by tc-1-100.kawasaki.gol.ne.jp (Postfix, from userid 1000) id 4C35930B5; Sun, 19 May 2002 20:57:26 +0900 (JST) Original-To: storm@cua.dk (Kim F. Storm) System-Type: i686-pc-linux-gnu In-Reply-To: <87g00rd74y.fsf@tc-1-100.kawasaki.gol.ne.jp> Original-Lines: 18 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:4116 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:4116 So can someone tell me how to define `HierarKey' menus? The elisp manual seems to suggest that the following should work: (progn (defvar menu-map) (setq menu-map (make-sparse-keymap "This is a prompt")) (local-set-key "&" menu-map) (define-key menu-map "1" '(menu-item "Insert 1" (lambda () (interactive) (insert "1")))) (define-key menu-map "2" '(menu-item "Insert 2" (lambda () (interactive) (insert "2"))))) and that then hitting the `&' key should give me a menu in the echo area -- but it doesn't it just displays `&-' like any other key prefix. Thanks, -Miles -- Yo mama's so fat when she gets on an elevator it HAS to go down.