bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#7691: 24.0.50; x-popup-menu with keymap - :help keyword


From: Lars Ingebrigtsen
Subject: bug#7691: 24.0.50; x-popup-menu with keymap - :help keyword
Date: Thu, 28 Apr 2016 11:50:06 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

"Drew Adams" <address@hidden> writes:

> And keywords seem to work OK - except for :help.  Example:
>
> (defun eee (event)
>   (interactive "e")
>   (x-popup-menu
>    event '(keymap "The Menu"
>     (foo menu-item "Foo" 'forward-char
>          :enable pop-up-frames
>          :help "WHY DOESN'T THIS SHOW UP?"))))
>
> (global-set-key [(control mouse-3)] nil)
> (global-set-key [(control down-mouse-3)] 'eee)
>
> Then `C-mouse-3'.  Turn `pop-up-frames' on and off to see that :enable
> works.
>
> But put the pointer over item `Foo' in the menu and you will not see the
> :help displayed. 

This seems like it has been fixed now.

(defun eee (event)
  (interactive "e")
  (x-popup-menu
   event '(keymap "The Menu"
    (foo menu-item "Foo" forward-char
         :enable pop-up-frames
         :help "WHY DOESN'T THIS SHOW UP?"))))

(global-set-key [(control mouse-3)] nil)
(global-set-key [(control down-mouse-3)] 'eee)

works for me.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





reply via email to

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