From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Assignment of misc packages for emacs Date: Fri, 17 May 2002 13:29:40 -0600 (MDT) Sender: emacs-devel-admin@gnu.org Message-ID: <200205171929.g4HJTeW20527@aztec.santafe.edu> References: <200205050534.g455YfF01634@aztec.santafe.edu> <5xbsbumexh.fsf@kfs2.cua.dk> <200205141941.g4EJfud15293@aztec.santafe.edu> <5xvg9qmgzt.fsf@kfs2.cua.dk> <5x1ycdqehz.fsf@kfs2.cua.dk> Reply-To: rms@gnu.org NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1021664828 28947 127.0.0.1 (17 May 2002 19:47:08 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 17 May 2002 19:47:08 +0000 (UTC) Cc: miles@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 178ngy-0007Wm-00 for ; Fri, 17 May 2002 21:47:08 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 178ntb-0002Gk-00 for ; Fri, 17 May 2002 22:00:12 +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 178nSA-0003Z4-00; Fri, 17 May 2002 15:31:50 -0400 Original-Received: from pele.santafe.edu ([192.12.12.119]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 178nQ5-00038r-00; Fri, 17 May 2002 15:29:41 -0400 Original-Received: from aztec.santafe.edu (aztec [192.12.12.49]) by pele.santafe.edu (8.11.6+Sun/8.9.3) with ESMTP id g4HJTek10554; Fri, 17 May 2002 13:29:40 -0600 (MDT) Original-Received: (from rms@localhost) by aztec.santafe.edu (8.10.2+Sun/8.9.3) id g4HJTeW20527; Fri, 17 May 2002 13:29:40 -0600 (MDT) X-Authentication-Warning: aztec.santafe.edu: rms set sender to rms@aztec using -f Original-To: storm@cua.dk In-Reply-To: <5x1ycdqehz.fsf@kfs2.cua.dk> (storm@cua.dk) 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:4069 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:4069 > So it's basically equivalent to > > (defun mini-menu (menu) > (message (mapconcat #'cadr menu " ")) > (call-interactively (or (nth 2 (assoc (read-char) menu)) > (error "Unknown key")))) Essentially, yes. There are a few more twists to it, but you got the essentials right! Are you saying that this new feature is implemented using the HierarKey menu feature, as above? That is good. However, I was advocating for adding a very simple way for packages to query the user for "trivial" selections as an alternative to using keymaps and adding prompting at the same time... Could you send me the actual code?