From: Martin Stemplinger <mstemplingerNOSPAM@gmx.de>
Subject: Re: Example using x-popup-menu needed
Date: Sat, 18 Oct 2003 15:45:39 +0200 [thread overview]
Message-ID: <uhe26y7zw.fsf@gmx.de> (raw)
In-Reply-To: jwv7k33pr1s.fsf-monnier+gnu.emacs.help@vor.iro.umontreal.ca
On Fr Okt 17 2003 at 22:14, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
> You mean (x-popup-menu
> t (list menu-title
> (cons menu-title
> (mapcar (lambda (item)
> (if (consp item) item
> (cons item item)))
> item-list))))
>
>
> You mean
>
> (call-interactively
> (choose-from-menu "Commands"
> '(("Copy C-insert" . copy-region-as-kill)
> ("Goto Line" . goto-line)
> ("Paste/Yank S-insert" . yank)
> ("Redo" . redo)
> ("Search Files" . grep)
> ("Undo C-_" . undo)
> ("Word Completion M-/" . dabbrev-expand))))
>
>> (global-set-key [mouse-3] 'right-popup)
>
> If you define `right-popup' as a menu keymap, you'll save yourself
> the trouble of calling the commands and you'll get the hotkeys for free.
>
>
> Stefan
Would you mind to post a complete example? I tried to insert your code
but obviously made some mistake :-(
Thanks
Martin
--
Remove NOSPAM to reply by mail
next prev parent reply other threads:[~2003-10-18 13:45 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-17 5:38 Example using x-popup-menu needed Dave Neubart
2003-10-17 13:41 ` Barman Brakjoller
2003-10-17 16:11 ` Bruce Ingalls
2003-10-17 16:32 ` Martin Stemplinger
2003-10-17 18:14 ` Bruce Ingalls
2003-10-17 16:50 ` Ian Zimmerman
2003-10-17 18:11 ` Bruce Ingalls
2003-10-17 20:07 ` Stefan Monnier
2003-10-17 20:07 ` Kevin Rodgers
2003-10-17 21:26 ` Kevin Rodgers
2003-10-17 20:14 ` Stefan Monnier
2003-10-18 13:45 ` Martin Stemplinger [this message]
2003-12-02 20:50 ` Kai Grossjohann
2003-12-03 18:29 ` Kevin Rodgers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=uhe26y7zw.fsf@gmx.de \
--to=mstemplingernospam@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).