From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: john@ankarstrom.se (John =?utf-8?Q?Ankarstr=C3=B6m?=) Newsgroups: gmane.emacs.help Subject: Re: F10 =?utf-8?Q?=E2=86=92?= menu Date: Sun, 28 May 2017 15:24:57 +0200 Message-ID: <87fufpt8pi.fsf@ankarstrom.se> References: <83poexkmdm.fsf@gnu.org> <288974EA-D49A-4AA6-B9B4-3362972B22F2@gmail.com> <4AA9230C-7682-4ADB-9C0D-B77F9687107A@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1495978589 1653 195.159.176.226 (28 May 2017 13:36:29 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 28 May 2017 13:36:29 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Jean-Christophe Helary Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun May 28 15:36:26 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dEyMr-0000Le-UD for geh-help-gnu-emacs@m.gmane.org; Sun, 28 May 2017 15:36:26 +0200 Original-Received: from localhost ([::1]:44017 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dEyMx-0004lS-FV for geh-help-gnu-emacs@m.gmane.org; Sun, 28 May 2017 09:36:31 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53567) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dEyBp-0002F3-0T for help-gnu-emacs@gnu.org; Sun, 28 May 2017 09:25:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dEyBk-0001FT-3e for help-gnu-emacs@gnu.org; Sun, 28 May 2017 09:25:01 -0400 Original-Received: from pusjkin.ankarstrom.se ([172.104.152.215]:44372) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dEyBj-0001FL-Qx for help-gnu-emacs@gnu.org; Sun, 28 May 2017 09:24:56 -0400 Original-Received: from DESKTOP-2MQA95O (c83-253-24-36.bredband.comhem.se [83.253.24.36]) by pusjkin.ankarstrom.se (Postfix) with ESMTPSA id BF7CE3EC86; Sun, 28 May 2017 15:24:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=ankarstrom.se; s=default; t=1495977892; bh=sUdguY0xw2QTUW+fZ6b13fBuvPvsw9pFF/7IN50HWbc=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=Ifj7HFfNmPsb3bt79bAvV+aiV5pG1Ah52DeoIgVV1VlBFCR/wP5StydQ1USWnfbOM 0CawsS1bozW3Htb3tqkxGYoyqHHm19masI3VCDK1rtVyXZ96TP8JpGlUTKcAZbhteX 0kq/VzZRYJDqouFZpxSMBraY4KfYZgpUKMpVwyRg= In-Reply-To: <4AA9230C-7682-4ADB-9C0D-B77F9687107A@gmail.com> (Jean-Christophe Helary's message of "Sun, 28 May 2017 21:57:02 +0900") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 172.104.152.215 X-Mailman-Approved-At: Sun, 28 May 2017 09:33:37 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:113211 Archived-At: Jean-Christophe Helary writes: >> I found a similar setting today: >>=20 >> (define-key global-map (kbd "C-") >> (lambda () >> (interactive) >> (x-popup-menu (list '(0 0) (selected-frame)) >> (mouse-menu-bar-map)))) > > Weird, none of the menu item trigger anything regardless of whether I use= only > the keyboard or if I use the mouse. > Only calling the items from the real menus does trigger something... I looked at the documentation for `x-popup-menu': > Pop up a deck-of-cards menu and return user=E2=80=99s selection. , as defined above, would only return the user's selection without executing it. For example, when selecting Help > Emacs Tutorial, the following is returned: > (help-menu emacs-tutorial) I'm not sure on how you'd go about executing that, but I'm sure there's a way. - John