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: 16 May 2002 10:19:48 +0900 Sender: emacs-devel-admin@gnu.org Message-ID: 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: Miles Bader NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1021512261 28168 127.0.0.1 (16 May 2002 01:24:21 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 16 May 2002 01:24:21 +0000 (UTC) Cc: 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 178A0D-0007KD-00 for ; Thu, 16 May 2002 03:24:21 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 178ABz-00049E-00 for ; Thu, 16 May 2002 03:36:31 +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 178A0B-0001e8-00; Wed, 15 May 2002 21:24:19 -0400 Original-Received: from tyo201.gate.nec.co.jp ([202.32.8.214]) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 1789y8-0001ZD-00; Wed, 15 May 2002 21:22:12 -0400 Original-Received: from mailgate4.nec.co.jp ([10.7.69.197]) by TYO201.gate.nec.co.jp (8.11.6/3.7W01080315) with ESMTP id g4G1LkV13727; Thu, 16 May 2002 10:21:46 +0900 (JST) Original-Received: from mailsv.nec.co.jp (mailgate51.nec.co.jp [10.7.69.190]) by mailgate4.nec.co.jp (8.11.6/3.7W-MAILGATE-NEC) with ESMTP id g4G1LjR08708; Thu, 16 May 2002 10:21:45 +0900 (JST) Original-Received: from mcsss2.ucom.lsi.nec.co.jp ([10.30.114.133]) by mailsv.nec.co.jp (8.11.6/3.7W-MAILSV-NEC) with ESMTP id g4G1Jru06887; Thu, 16 May 2002 10:21:11 +0900 (JST) Original-Received: from mcspd15.ucom.lsi.nec.co.jp (mcspd15 [10.30.114.174]) by mcsss2.ucom.lsi.nec.co.jp (8.10.2+Sun/3.7Wlsi_mx_6.0) with ESMTP id g4G1JqK27338; Thu, 16 May 2002 10:19:52 +0900 (JST) Original-Received: by mcspd15.ucom.lsi.nec.co.jp (Postfix, from userid 31295) id 4F5B037C8; Thu, 16 May 2002 10:19:48 +0900 (JST) Original-To: storm@cua.dk (Kim F. Storm) System-Type: i686-pc-linux-gnu Blat: Foop In-Reply-To: <5x1ycdqehz.fsf@kfs2.cua.dk> Original-Lines: 27 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:3984 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:3984 storm@cua.dk (Kim F. Storm) writes: > 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... Sure. There already quite a few existing `mini menus' in emacs, e.g., the query-replace `what should I do' prompt, and the various things in Gnus (the gnus implemenation is particularly nice, I think). They are generally slightly different than your code in that they don't usually call a function based on the result, but rather just do some dispatch on their own, but the concept is similar. Additionally, most of them seem to have a help function, so if you hit `?' or `C-h', a help buffer is popped up. So, perhaps we should think of unifying these all in some way, rather than adding yet-another different implementation of the same thing. Since most of the other cases (that I can think of) don't do a funcall, what you want could be a layer on top of some shared `menu display and prompting' function. Maybe such a merge isn't a good idea, but I think it should at least be thought about... -Miles -- Would you like fries with that?