From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.help Subject: Re: Any infrastructure to select one of a few options in Emacs core? Date: Mon, 09 May 2016 16:37:54 +0000 Message-ID: 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; charset=UTF-8 X-Trace: ger.gmane.org 1462811909 30441 80.91.229.3 (9 May 2016 16:38:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 9 May 2016 16:38:29 +0000 (UTC) Cc: Help Gnu Emacs mailing list To: Marcin Borkowski , Drew Adams , Oleh Krehel Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon May 09 18:38:28 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 1azoCR-0005ft-2d for geh-help-gnu-emacs@m.gmane.org; Mon, 09 May 2016 18:38:27 +0200 Original-Received: from localhost ([::1]:42168 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1azoCQ-0002Rn-Hu for geh-help-gnu-emacs@m.gmane.org; Mon, 09 May 2016 12:38:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47255) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1azoCA-0002Li-JL for help-gnu-emacs@gnu.org; Mon, 09 May 2016 12:38:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1azoC5-0004vG-2E for help-gnu-emacs@gnu.org; Mon, 09 May 2016 12:38:09 -0400 Original-Received: from mail-oi0-x22a.google.com ([2607:f8b0:4003:c06::22a]:32801) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1azoC4-0004v4-TO for help-gnu-emacs@gnu.org; Mon, 09 May 2016 12:38:04 -0400 Original-Received: by mail-oi0-x22a.google.com with SMTP id v145so216455951oie.0 for ; Mon, 09 May 2016 09:38:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=96jX3fXDIqPTCyMCIVBHkspwAhXc62IDPes5zBfgjJE=; b=sKqRO4fTK5qxj5sHTKAz0nkNWAImKMuy4RbBIAsRa0x2ytO3XZPijXulxzI6a1py1i 8mxKurutOFOKWk/wntjQzk622S7Q9hmSpjH8swaKlm7NKWQgYnUmXsUQhP6lcIcTwk5l 1ZdcrSUirBzgALbcc6gq8nrjxIHllIdUeVW+MxUEhycnQDBunUeFcSF/msurnkQ0ZzDC fVuDQqW9+HoGUOiH4VDXfrJZWcKtLnDRooOwLNzKZUC6abuGLw8Jr6TI7Y5mKKqbjGx1 PIp7ydwJtvyoGhWmN9bpkmgEcaRiN5rgoEjEa8XNuu6wRI1iZz5B4WpzUJGFwte8GCGk m6EA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=96jX3fXDIqPTCyMCIVBHkspwAhXc62IDPes5zBfgjJE=; b=g1kBC0cpaGWw7GsmfhV7sx7b10Ih4OJ7vTe36ghmxQtPBiO8KBVINJ4HBxSdsp2upF jJ5Pr2GsA6nMu5X2SuwJuVr2B8Z0zEX6HQKCodBbw4yoslsqfNYmA3lLmdDRv9YOxQLn b6N2lXyIJYLPVvZjyktu6ieaDxsL3mGYYW/SfJZWT3MPNl7j1SzuAiF+nriWMblJm597 29LRKkCiz2cJwc5BQSg89jPc97IraURnteF9mBITXU45vP9uy0c86AhKr6mm2H6XHIub RjtsYb4mOyNoa0p9ovgOLn9YHKuReA5iSKXJo8QD7dTpA9t3PgaFabSvF7/UOqc9kCPJ vwPg== X-Gm-Message-State: AOPr4FUujzWIfZMn+iLL0Op8T0koTyUvTQM/latO2fYT/qp8VZ3/2XlAMW7WfqthvPUVf+31yBXFbOB9/uVjKQ== X-Received: by 10.202.203.147 with SMTP id b141mr2435108oig.159.1462811884367; Mon, 09 May 2016 09:38:04 -0700 (PDT) In-Reply-To: <87h9e7ck96.fsf@mbork.pl> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4003:c06::22a X-Content-Filtered-By: Mailman/MimeDel 2.1.21 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:109912 Archived-At: 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. -- -- Kaushal Modi