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 19:10:10 +0200 Message-ID: <878tzjcg3x.fsf@mbork.pl> References: <87shxrczlt.fsf@mbork.pl> <12f1c4cf-ee4a-444e-bfc3-1e703d3ad50d@default> <87h9e7ck96.fsf@mbork.pl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1462814376 7420 80.91.229.3 (9 May 2016 17:19:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 9 May 2016 17:19:36 +0000 (UTC) Cc: Help Gnu Emacs mailing list , Oleh Krehel To: Kaushal Modi Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon May 09 19:19:29 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 1azohY-00050U-1u for geh-help-gnu-emacs@m.gmane.org; Mon, 09 May 2016 19:10:36 +0200 Original-Received: from localhost ([::1]:42392 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1azohW-0005lc-91 for geh-help-gnu-emacs@m.gmane.org; Mon, 09 May 2016 13:10:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33104) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1azohK-0005iK-Ey for help-gnu-emacs@gnu.org; Mon, 09 May 2016 13:10:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1azohF-0003nv-CG for help-gnu-emacs@gnu.org; Mon, 09 May 2016 13:10:21 -0400 Original-Received: from mail.mojserwer.eu ([2a01:5e00:2:52::8]:43667) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1azohF-0003na-4m for help-gnu-emacs@gnu.org; Mon, 09 May 2016 13:10:17 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id 8AA7DB51DC5; Mon, 9 May 2016 19:10:13 +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 EQQUBkEXbTA0; Mon, 9 May 2016 19:10:11 +0200 (CEST) Original-Received: from localhost (98-171.echostar.pl [213.156.98.171]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 02CF7B4EBEC; Mon, 9 May 2016 19:10:10 +0200 (CEST) User-agent: mu4e 0.9.13; emacs 25.1.50.9 In-reply-to: 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:109913 Archived-At: On 2016-05-09, at 18:37, Kaushal Modi wrote: > On Mon, May 9, 2016 at 11:41 AM Marcin Borkowski wrote: > >> 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? > > > I haven't used it directly. But someone please correct me if I am wrong; > doesn't the inbuilt completing-read already do this? > > Packages like ivy.el have ivy-completing-read which conforms to the default > completing-read, and can be easily used to enhance that. Yes and no. I thought about it, and rejected the idea: I want all the options to be visible without pressing TAB. Also, each option might need more than one line (and the number of lines may vary between options), so I don't like the idea of using minibuffer at all. Thanks anyway, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Faculty of Mathematics and Computer Science Adam Mickiewicz University