emacs-devel
[Top][All Lists]
Advanced

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

Re: popup-menu with keyboard menu


From: Stephen Leake
Subject: Re: popup-menu with keyboard menu
Date: Tue, 30 Sep 2008 02:49:08 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (windows-nt)

Glenn Morris <address@hidden> 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




reply via email to

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