all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: john@ankarstrom.se (John Ankarström)
To: Jean-Christophe Helary <jean.christophe.helary@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: F10 → menu
Date: Sun, 28 May 2017 17:18:42 +0200	[thread overview]
Message-ID: <878tlhrovh.fsf@ankarstrom.se> (raw)
In-Reply-To: <0397A86D-FD8A-4746-926E-989B0829375E@gmail.com> (Jean-Christophe Helary's message of "Mon, 29 May 2017 00:00:44 +0900")

Jean-Christophe Helary <jean.christophe.helary@gmail.com> writes:

> I'm on a MacBook Pro with a trackpad, so C-click is right-click and triggers the
> buffer menu (mouse-buffer-menu → C-down-mouse-1). And I can't do C-right-click.
> The click is a left click by default.
>
> But now, I see I can bind that C-click to the function you just defined... :)

Ah, I see. I remember that from using a Mac.

If you want to have the menu show up at the position of the mouse
cursor (like <C-down-mouse-3>), just remove the explicit position
from the call to `popup-menu':

--8<---------------cut here---------------start------------->8---
(defun mouse-menu-bar-open ()
  (interactive)
  (popup-menu (mouse-menu-bar-map)))

(global-set-key (kbd "<C-S-down-mouse-1>") #'mouse-menu-bar-open)
--8<---------------cut here---------------end--------------->8---

Above I set that to control + shift + left-click, but again,
maybe on a Mac trackpad that would be <S-down-mouse-3>.

- John



      reply	other threads:[~2017-05-28 15:18 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-25  3:11 F10 → menu Jean-Christophe Helary
2017-05-25  5:25 ` Alexis
2017-05-25  5:42   ` Jean-Christophe Helary
2017-05-25  5:54     ` Alexis
2017-05-25 15:05 ` Eli Zaretskii
2017-05-28 10:02   ` Jean-Christophe Helary
2017-05-28 11:46     ` John Ankarström
2017-05-28 12:50       ` Jean-Christophe Helary
2017-05-28 12:57     ` Jean-Christophe Helary
2017-05-28 13:24       ` John Ankarström
2017-05-28 13:55         ` Jean-Christophe Helary
2017-05-28 14:33           ` John Ankarström
2017-05-28 14:42             ` Jean-Christophe Helary
2017-05-28 14:54               ` John Ankarström
2017-05-28 15:00                 ` Jean-Christophe Helary
2017-05-28 15:18                   ` John Ankarström [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878tlhrovh.fsf@ankarstrom.se \
    --to=john@ankarstrom.se \
    --cc=help-gnu-emacs@gnu.org \
    --cc=jean.christophe.helary@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.