From: Stephen Leake <stephen_leake@member.fsf.org>
To: emacs-devel@gnu.org
Subject: Re: popup-menu with keyboard menu
Date: Tue, 30 Sep 2008 02:49:08 -0400 [thread overview]
Message-ID: <uhc7y9li3.fsf@member.fsf.org> (raw)
In-Reply-To: <rbljxazq48.fsf@fencepost.gnu.org> (Glenn Morris's message of "Mon\, 29 Sep 2008 15\:52\:39 -0400")
Glenn Morris <rgm@gnu.org> writes:
> Stephen Leake wrote:
>
>> I'm calling popup-menu with a keyboard menu, rather than from a mouse
>> action.
>>
>> It's failing with "Wrong type argument: integerp, nil" if the mouse is
>> outside the Emacs frame (which it normally is, for me).
>
> Can you give a recipe starting from emacs -Q showing how to get this
> error?
Interestingly, I can't.
> I couldn't reproduce it, and x-popup-menu has code to handle this
> case.
The bug was in popup-menu, not x-popup-menu; the fix was to rely on
x-popup-menu to do the right thing.
But it turns out popup-menu doesn't do what I want anyway; it executes
the menu keymap as a GUI menu, not a keyboard menu. Which makes sense,
given the name :).
How do I invoke a keyboard menu from lisp?
--
-- Stephe
next prev parent reply other threads:[~2008-09-30 6:49 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-26 22:57 CVS HEAD still broken for OSX "make all install" for .app creation Randal L. Schwartz
2008-09-27 16:52 ` CVS HEAD still broken for OSX Adrian Robert
2008-09-27 19:48 ` popup-menu with keyboard menu Stephen Leake
2008-09-29 19:52 ` Glenn Morris
2008-09-30 6:49 ` Stephen Leake [this message]
2008-09-30 6:53 ` Glenn Morris
2008-09-30 11:31 ` Stephen Leake
2008-10-01 17:12 ` Glenn Morris
2008-09-28 17:33 ` CVS HEAD still broken for OSX Randal L. Schwartz
2008-09-29 21:34 ` Adrian Robert
2008-09-30 2:46 ` Randal L. Schwartz
2008-09-30 3:00 ` Randal L. Schwartz
2008-09-30 13:32 ` Adrian Robert
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=uhc7y9li3.fsf@member.fsf.org \
--to=stephen_leake@member.fsf.org \
--cc=emacs-devel@gnu.org \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.