From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: Assignment of misc packages for emacs Date: 17 May 2002 23:42:55 +0200 Sender: emacs-devel-admin@gnu.org Message-ID: <5x4rh6a1sw.fsf@kfs2.cua.dk> 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> <200205171929.g4HJTeW20527@aztec.santafe.edu> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1021668306 3762 127.0.0.1 (17 May 2002 20:45:06 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 17 May 2002 20:45:06 +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 178ob4-0000yZ-00 for ; Fri, 17 May 2002 22:45:06 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 178oni-0003Vf-00 for ; Fri, 17 May 2002 22:58:11 +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 178obC-0002Kc-00; Fri, 17 May 2002 16:45:14 -0400 Original-Received: from mail.filanet.dk ([195.215.206.179]) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 178oYJ-00019P-00; Fri, 17 May 2002 16:42:15 -0400 Original-Received: from kfs2.cua.dk.cua.dk (unknown [10.1.82.3]) by mail.filanet.dk (Postfix) with SMTP id 7826B7C016; Fri, 17 May 2002 20:42:13 +0000 (GMT) Original-To: rms@gnu.org In-Reply-To: <200205171929.g4HJTeW20527@aztec.santafe.edu> Original-Lines: 32 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.50 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:4072 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:4072 Richard Stallman writes: > > 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. Since I wasn't aware of the HierarKey feature, it isn't... (neither is the above code). But I'll change it to do that. BTW, I've searched the documentation, lisp files, and source files, it is very vague about these HierarKey menues... > > 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? I'll play some more with the HierarKey feature before I do that. -- Kim F. Storm http://www.cua.dk