opensubscriber
   Find in this group all groups
 
Unknown more information…

e : emacs-devel@gnu.org 19 July 2012 • 5:07PM -0400

Re: Where the menu should be appeared when C-mouse-3 is triggered
by Stefan Monnier

REPLY TO AUTHOR
 
REPLY TO GROUP




> I don't this is easy to fix.

> For KEYBOARD USER it is nice to popped up at point.
> Howto, it is not nice for MOUSE USER.

We can easily check what kind of event was used to run the command and
then decide whether to popup near point or near the mouse.

Such distinction is already used to decide whether to use a dialog-ox or
the minibuffer to read a file-name.

> Emacs has many useful commands(mouse oriented commands) which are
> expected to be triggered from MOUSE. Some of them, including
> C-mouse-3, are not suitable for keyboard operatoin.

It's currently unsuitable, but we can make it suitable.

> I'd like to introduce `bring-mouse-to-point' for fill the gap.
> How do you think `bring-mouse-to-point'?

I think that moving the mouse is *evil*.

> I hope this is included to Emacs officially.

I'm not sure it's of wide appeal, but I don't expect users to write code
like the one you quoted, so there should be an easier way to do it.
E.g. a function which translates the window-relative coordinates of
a `posn' into frame- or display-relative coordinates.


        Stefan


Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.