From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#7691: 24.0.50; x-popup-menu with keymap - :help keyword Date: Mon, 20 Dec 2010 13:12:52 -0800 Message-ID: <533F867CDF704323995770A237B514FF@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1292880487 12156 80.91.229.12 (20 Dec 2010 21:28:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 20 Dec 2010 21:28:07 +0000 (UTC) To: 7691@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Dec 20 22:28:02 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PUnGw-0008OZ-SY for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 Dec 2010 22:28:02 +0100 Original-Received: from localhost ([127.0.0.1]:51866 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PUnGt-0007g3-DW for geb-bug-gnu-emacs@m.gmane.org; Mon, 20 Dec 2010 16:27:55 -0500 Original-Received: from [140.186.70.92] (port=42760 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PUnCS-0005ra-BE for bug-gnu-emacs@gnu.org; Mon, 20 Dec 2010 16:23:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PUnC9-0006a6-5W for bug-gnu-emacs@gnu.org; Mon, 20 Dec 2010 16:23:02 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53113) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PUnC9-0006a2-2k for bug-gnu-emacs@gnu.org; Mon, 20 Dec 2010 16:23:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PUmwg-00081A-Cq; Mon, 20 Dec 2010 16:07:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Dec 2010 21:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 7691 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.129287920830796 (code B ref -1); Mon, 20 Dec 2010 21:07:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 20 Dec 2010 21:06:48 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PUmwR-00080f-Ik for submit@debbugs.gnu.org; Mon, 20 Dec 2010 16:06:47 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PUmwQ-00080R-N0 for submit@debbugs.gnu.org; Mon, 20 Dec 2010 16:06:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PUn2i-0004lk-8g for submit@debbugs.gnu.org; Mon, 20 Dec 2010 16:13:17 -0500 Original-Received: from lists.gnu.org ([199.232.76.165]:51258) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PUn2i-0004lg-6M for submit@debbugs.gnu.org; Mon, 20 Dec 2010 16:13:16 -0500 Original-Received: from [140.186.70.92] (port=48647 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PUn2h-00008Y-1A for bug-gnu-emacs@gnu.org; Mon, 20 Dec 2010 16:13:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PUn2f-0004lE-5n for bug-gnu-emacs@gnu.org; Mon, 20 Dec 2010 16:13:14 -0500 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]:34269) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PUn2f-0004kv-0n for bug-gnu-emacs@gnu.org; Mon, 20 Dec 2010 16:13:13 -0500 Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id oBKLDAam021677 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 20 Dec 2010 21:13:12 GMT Original-Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id oBKLCU7O030000 for ; Mon, 20 Dec 2010 21:13:05 GMT Original-Received: from abhmt009.oracle.com by acsmt353.oracle.com with ESMTP id 891186361292879568; Mon, 20 Dec 2010 13:12:48 -0800 Original-Received: from dradamslap1 (/10.159.239.22) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 20 Dec 2010 13:12:47 -0800 X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcugiqnLTVQ038S7Tme5l2DBdVqgsA== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 20 Dec 2010 16:07:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:42676 Archived-At: `x-popup-menu's doc says that it accepts a keymap or a list of keymaps as its second arg, which it does. The advantage of using a keymap instead of the alternative "multiple panes" format as the second arg is that keymap keywords (e.g. :enable) are honored. 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 is true also if `tooltip-mode' is off (the help does not show in the minibuffer/echo area). There is this note in `(elisp) Pop-Up Menus': "Don't use `x-popup-menu' to display a menu if you could do the job with a prefix key defined with a menu keymap. If you use a menu keymap to implement a menu, `C-h c' and `C-h a' can see the individual items in that menu and provide help for them. If instead you implement the menu by defining a command that calls `x-popup-menu', the help facilities cannot know what happens inside that command, so they cannot give any help for the menu's items." I cannot tell if that note is supposed to speak to the limitation/bug I'm reporting. First, "use a menu keymap" is not the same thing as using a prefix key defined with a menu keymap. In the example I show above, I do "use a keymap". Second, what I'm looking for here is a tooltip displaying the :help string - not `C-h c' etc. Third, if that note is indeed meant to apply also to the limitation/bug I'm reporting, then I don't understand the reason given for that. If :enable, :visible, etc. can be handled, why couldn't :help also be handled? In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600) of 2010-12-20 on 3249CTO Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (4.4) --no-opt --cflags -Ic:/imagesupport/include'