From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: Any infrastructure to select one of a few options in Emacs core? Date: Sat, 14 May 2016 06:20:43 +0200 Message-ID: <86lh3d5kys.fsf@student.uu.se> References: <87shxrczlt.fsf@mbork.pl> <12f1c4cf-ee4a-444e-bfc3-1e703d3ad50d@default> <87h9e7ck96.fsf@mbork.pl> <878tzjcg3x.fsf@mbork.pl> <86f9c662-a9ec-4bf5-ab0d-8f66d4e0fcf5@default> <877ff3cdec.fsf@mbork.pl> <87wpn3axix.fsf@kuiper.lan.informatimago.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1463421120 5341 80.91.229.3 (16 May 2016 17:52:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 May 2016 17:52:00 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon May 16 19:51:49 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 1b2MgE-00077g-4l for geh-help-gnu-emacs@m.gmane.org; Mon, 16 May 2016 19:51:46 +0200 Original-Received: from localhost ([::1]:45605 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2MgD-0006zK-DT for geh-help-gnu-emacs@m.gmane.org; Mon, 16 May 2016 13:51:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37422) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2Mfg-0006oV-Tn for help-gnu-emacs@gnu.org; Mon, 16 May 2016 13:51:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b2Mfb-0000PF-Bh for help-gnu-emacs@gnu.org; Mon, 16 May 2016 13:51:12 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:36806) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2Mfb-0000Og-4Z for help-gnu-emacs@gnu.org; Mon, 16 May 2016 13:51:07 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1b1R8R-0004zE-Hj for help-gnu-emacs@gnu.org; Sat, 14 May 2016 06:25:03 +0200 Original-Received: from c-9ce1e655.08-680-7570702.cust.bredbandsbolaget.se ([85.230.225.156]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 14 May 2016 06:25:03 +0200 Original-Received: from embe8573 by c-9ce1e655.08-680-7570702.cust.bredbandsbolaget.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 14 May 2016 06:25:03 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 19 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-9ce1e655.08-680-7570702.cust.bredbandsbolaget.se Mail-Copies-To: never User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) Cancel-Lock: sha1:xyD6rIrTCGnBMDM5tX/x/au6RC4= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:109988 Archived-At: "Pascal J. Bourguignon" writes: > (let ((options '("spam" "ham" "eggs"))) > (x-popup-menu (let ((mp (mouse-position))) (list > (list (cadr mp) (cddr mp)) (selected-window))) > (list "menu" (cons "What would yuo like to eat?" > (mapcar (lambda (option) (cons option option)) > options))))) Cute, but is there any reason not to use the ordinary minibuffer/echo area area for this as for everything else? The whole thing with Emacs, or at least part of the whole thing, is to have a uniform interface. -- underground experts united .... http://user.it.uu.se/~embe8573 Emacs Gnus Blogomatic ......... http://user.it.uu.se/~embe8573/blogomatic - so far: 29 Blogomatic articles -