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: Marcin Borkowski
Subject: Re: Any infrastructure to select one of a few options in Emacs core?
Date: Sat, 21 May 2016 22:49:46 +0200
User-agent: mu4e 0.9.16; emacs 25.1.50.1

On 2016-05-09, at 20:36, Pascal J. Bourguignon <pjb@informatimago.com> wrote:

> You can use a popup menu for that.
>
> (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)))))

Thanks a lot, I'll remember about `x-popup-menu', it might be useful one
day.  It's not what I like, though; I prefer to have everything
(including menus) in buffers.  (Well, almost everything.)

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



reply via email to

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