GNU bug report logs - #8176
24.0.50; GUI toolkit differences

Previous Next

Package: emacs;

Reported by: Tim Cross <theophilusx <at> gmail.com>

Date: Sat, 5 Mar 2011 04:14:02 UTC

Severity: minor

Tags: fixed

Found in version 24.0.50

Fixed in version 24.1

Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #32 received at 8176 <at> debbugs.gnu.org (full text, mbox):

From: Jason Rumney <jasonr <at> gnu.org>
To: Tim Cross <theophilusx <at> gmail.com>
Cc: Lars Magne Ingebrigtsen <larsi <at> gnus.org>, 8176 <at> debbugs.gnu.org
Subject: Re: bug#8176: 24.0.50; GUI toolkit differences
Date: Wed, 06 Jul 2011 23:12:48 +0800
Tim Cross <theophilusx <at> gmail.com> writes:

>>> The following code was evaluated within the scratch buffer. I confirmed
>>> it works fine under emacs 24 built with lucid, but fails to work when
>>> built with GTK2+. Others reported it worked find under win32, but failed
>>> on ns.
>>>
>>> (defun tx-greet ()
>>>   (interactive)
>>>   (message "Hello Tim!"))
>>>
>>> (defun tx-menu ()
>>>   (interactive)
>>>   (define-key lisp-interaction-mode-map [menu-bar tx]
>>>     '(menu-item "TX Test" tx-greet)))

I think the situation on W32 is more complex (but I don't have Windows
in front of me to check for sure).  I think the above will work if the
command is in a menu-bar menu, but not in a popup menu.





This bug report was last modified 14 years and 6 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.