From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.help Subject: Re: Any infrastructure to select one of a few options in Emacs core? Date: Mon, 09 May 2016 17:40:37 +0200 Message-ID: <87h9e7ck96.fsf@mbork.pl> References: <87shxrczlt.fsf@mbork.pl> <12f1c4cf-ee4a-444e-bfc3-1e703d3ad50d@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1462809526 21135 80.91.229.3 (9 May 2016 15:58:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 9 May 2016 15:58:46 +0000 (UTC) Cc: Help Gnu Emacs mailing list To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon May 09 17:58:34 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aznIq-0001A6-Tz for geh-help-gnu-emacs@m.gmane.org; Mon, 09 May 2016 17:41:01 +0200 Original-Received: from localhost ([::1]:41951 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aznIq-0002qE-AC for geh-help-gnu-emacs@m.gmane.org; Mon, 09 May 2016 11:41:00 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60655) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aznIf-0002oC-Br for help-gnu-emacs@gnu.org; Mon, 09 May 2016 11:40:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aznIb-0000iR-0d for help-gnu-emacs@gnu.org; Mon, 09 May 2016 11:40:48 -0400 Original-Received: from mail.mojserwer.eu ([2a01:5e00:2:52::8]:33012) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aznIa-0000i9-Gn for help-gnu-emacs@gnu.org; Mon, 09 May 2016 11:40:44 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id 0CE9EB519EA; Mon, 9 May 2016 17:40:41 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Original-Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id epWg6SzrMjS5; Mon, 9 May 2016 17:40:38 +0200 (CEST) Original-Received: from localhost (98-171.echostar.pl [213.156.98.171]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 6DA5EB519E8; Mon, 9 May 2016 17:40:38 +0200 (CEST) User-agent: mu4e 0.9.13; emacs 25.1.50.9 In-reply-to: <12f1c4cf-ee4a-444e-bfc3-1e703d3ad50d@default> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2a01:5e00:2:52::8 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:109911 Archived-At: On 2016-05-09, at 16:13, Drew Adams wrote: >> is there anything in core Emacs (i.e., no Melpa, and preferably no Elpa) >> to facilitate selecting one of a few (say, up to 10) options, each >> described in 2-3 lines of text? (I know about the Widget library, but >> I'd prefer something more lightweight.) > > Dunno what you mean. There is menu-bar menu `Options' (which) > you can add to. There is Customize, which you can add to > with `defcustom'. > > Specify "facilitate selection one of a few options". Sorry for being imprecise. I'd like to have (kind of) a menu, perhaps in a temporary buffer, displaying a list of options and giving a way to select one of them. Like, say clocking into one of recently clocked tasks in Org, or the main manu in mu4e, or the possible corrections in ispell etc. It seems that a lot of packages use their own mechanism to do something like that; now that I think of it, I guess it would be nice to have a "canonical" way. One advantage would be that by customizing this "default" way, the user could define his/her preferred way of showing the menu/selecting the option for _all_ applications using it. WDYT? Is there anything like that in Emacs? -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Faculty of Mathematics and Computer Science Adam Mickiewicz University