help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Any infrastructure to select one of a few options in Emacs core?


From: Emanuel Berg
Subject: Re: Any infrastructure to select one of a few options in Emacs core?
Date: Sat, 14 May 2016 06:20:43 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

"Pascal J. Bourguignon" <pjb@informatimago.com>
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 -                   




reply via email to

[Prev in Thread] Current Thread [Next in Thread]