From: Glenn Morris <rgm@gnu.org>
To: Stephen Leake <stephen_leake@member.fsf.org>
Cc: emacs-devel@gnu.org
Subject: Re: popup-menu with keyboard menu
Date: Mon, 29 Sep 2008 15:52:39 -0400 [thread overview]
Message-ID: <rbljxazq48.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <uod29gyjv.fsf_-_@member.fsf.org> (Stephen Leake's message of "Sat, 27 Sep 2008 15:48:36 -0400")
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?
I couldn't reproduce it, and x-popup-menu has code to handle this
case.
Perhaps you are on Windows, since the version of x-popup-menu in
w32menu.c seems to be missing the relevant part from the xmenu.c
version.
/* If a click happens in an external tool bar or a detached
tool bar, x and y is NIL. In that case, use the current
mouse position. This happens for the help button in the
tool bar. Ideally popup-menu should pass NIL to
this function, but it doesn't. */
if (NILP (x) && NILP (y))
get_current_pos_p = 1;
next prev parent reply other threads:[~2008-09-29 19:52 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 [this message]
2008-09-30 6:49 ` Stephen Leake
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=rbljxazq48.fsf@fencepost.gnu.org \
--to=rgm@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=stephen_leake@member.fsf.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.