unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Masatake YAMATO <yamato@redhat.com>
Cc: emacs-devel@gnu.org
Subject: Re: Where the menu should be appeared when C-mouse-3 is triggered
Date: Fri, 20 Jul 2012 07:38:18 -0400	[thread overview]
Message-ID: <jwvsjcmofd4.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <20120720.135534.2139116803885399180.yamato@redhat.com> (Masatake YAMATO's message of "Fri, 20 Jul 2012 13:55:34 +0900 (JST)")

> With the patch f10 can show the same menu items as 
> C-mouse-3 shows. The menu is shows at point or mouse
> cursor; last-nonmenu-event is referred to decide the
> postion. The menu items reflects (current-buffer) when
> the menu is shown at point.

Sounds good.  Installed (except I removed point-pixel-position).

> I think a function showing menu at point may be useful
> other elisp program, so I introduced `point-pixel-position'
> and 'point' constant for POSITION parameter of `popup-menu'.

Maybe a better direction is to make popup-menu (and x-popup-menu, ...)
accept posn arguments, so you can just use things like (event-end
<event>) or (posn-at-point) to specify where to display it.  The
docstring of popup-menu seems to indicate that an `event' can be used,
but at least in my tests it doesn't seem to work.

Could you look at making a patch to do that (i.e. accept a posn,
or maybe an event)?


        Stefan



  reply	other threads:[~2012-07-20 11:38 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-19 18:41 [patch] showing menu bar temporarily when f10 is pressed Masatake YAMATO
2012-06-19 20:31 ` Lluís
2012-06-19 21:42 ` Stefan Monnier
2012-06-20  6:17   ` [patch v2] " Masatake YAMATO
2012-07-18 11:29     ` [patch v3] " Masatake YAMATO
2012-07-19  6:54       ` Stefan Monnier
2012-07-19  8:32         ` Where the menu should be appeared when C-mouse-3 is triggered (Was: [patch v3] showing menu bar temporarily when f10 is pressed) Masatake YAMATO
2012-07-19  9:07           ` Where the menu should be appeared when C-mouse-3 is triggered Stefan Monnier
2012-07-20  4:55             ` Masatake YAMATO
2012-07-20 11:38               ` Stefan Monnier [this message]
2012-07-20 11:56                 ` Masatake YAMATO
2012-07-28  9:31                   ` Masatake YAMATO
2012-08-09 11:13                     ` Masatake YAMATO
2012-08-10 12:44                       ` Stefan Monnier
2012-08-10 13:21                         ` Drew Adams
2012-08-10 13:52                         ` Masatake YAMATO
2012-08-10 14:47                         ` Stefan Monnier
2012-07-20 12:48                 ` Masatake YAMATO

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=jwvsjcmofd4.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=yamato@redhat.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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).