unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#7641: use more familiar left-mouse... names
@ 2010-12-14 23:43 jidanni
  2010-12-15  4:00 ` Eli Zaretskii
  2010-12-27 12:51 ` bug#7641: use more familiar names for mouse events Dani Moncayo
  0 siblings, 2 replies; 6+ messages in thread
From: jidanni @ 2010-12-14 23:43 UTC (permalink / raw)
  To: 7641

I think the general public are more familiar with right-mouse
center-mouse left-mouse than these names.

Maybe the could be made into aliases to show the public.

Maybe it would work no matter if the user has configured the mouse for
right handers or left.

      Click <mouse-2> on a completion to select it.
      In this buffer, type RET to select the completion near point.






^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#7641: use more familiar left-mouse... names
  2010-12-14 23:43 bug#7641: use more familiar left-mouse... names jidanni
@ 2010-12-15  4:00 ` Eli Zaretskii
  2010-12-27 12:51 ` bug#7641: use more familiar names for mouse events Dani Moncayo
  1 sibling, 0 replies; 6+ messages in thread
From: Eli Zaretskii @ 2010-12-15  4:00 UTC (permalink / raw)
  To: jidanni; +Cc: 7641-done

> From: jidanni@jidanni.org
> Date: Wed, 15 Dec 2010 07:43:03 +0800
> Cc: 
> 
> I think the general public are more familiar with right-mouse
> center-mouse left-mouse than these names.

Except that in Emacs, they could be remapped (e.g., mouse-3 could be a
simultaneous click on both left and right buttons).  If we use left,
right, and center, the manual could be simply wrong for some
configurations.

I'm closing the bug report.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#7641: use more familiar names for mouse events
  2010-12-14 23:43 bug#7641: use more familiar left-mouse... names jidanni
  2010-12-15  4:00 ` Eli Zaretskii
@ 2010-12-27 12:51 ` Dani Moncayo
  2010-12-27 15:24   ` David De La Harpe Golden
  2010-12-27 16:05   ` Stefan Monnier
  1 sibling, 2 replies; 6+ messages in thread
From: Dani Moncayo @ 2010-12-27 12:51 UTC (permalink / raw)
  To: 7641, Eli Zaretskii; +Cc: jidanni

>> I think the general public are more familiar with right-mouse
>> center-mouse left-mouse than these names.
>
> Except that in Emacs, they could be remapped (e.g., mouse-3 could be a
> simultaneous click on both left and right buttons).  If we use left,
> right, and center, the manual could be simply wrong for some
> configurations.
>

I don't understand this quite well.

The manual already associates mouse-X events with left, middle and
right buttons [1][2][3], So, if you remap any of these events, the
manual will be wrong anyway.

Am I missing something?.

I any case, I really think that (`mouse-left', `mouse-middle' and
`mouse-right') would be a much clearer/intuitive/simpler interface,
because mouse-1 will refer to left mouse button in most cases. The
manual could describe their normal meanings (as it does now), and also
state that these events can be remapped.

IOW, this level of abstraction in the mouse events names seems like
unnecessary to me.



[1] [(emacs) Mouse Commands].
   The most basic mouse command is `mouse-set-point', which is called
by clicking with the left mouse button, `Mouse-1', in the text area of
a window. [...]

[2] [(emacs) Mouse Commands].
   Clicking with the middle mouse button, `Mouse-2', moves point to the
position [...].

[3] [(emacs) Mouse Commands].
   Clicking with the right mouse button, `Mouse-3', runs the command
`mouse-save-then-kill'.


-- 
Dani Moncayo





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#7641: use more familiar names for mouse events
  2010-12-27 12:51 ` bug#7641: use more familiar names for mouse events Dani Moncayo
@ 2010-12-27 15:24   ` David De La Harpe Golden
  2010-12-27 16:05   ` Stefan Monnier
  1 sibling, 0 replies; 6+ messages in thread
From: David De La Harpe Golden @ 2010-12-27 15:24 UTC (permalink / raw)
  To: Dani Moncayo; +Cc: 7641, jidanni

On 27/12/10 12:51, Dani Moncayo wrote:

> Am I missing something?.

Probably that the numbering comes from X11 where it's conventional, it's 
not something emacs just made up.  And there's potentially
4,5,6,7...









^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#7641: use more familiar names for mouse events
  2010-12-27 12:51 ` bug#7641: use more familiar names for mouse events Dani Moncayo
  2010-12-27 15:24   ` David De La Harpe Golden
@ 2010-12-27 16:05   ` Stefan Monnier
  2010-12-27 17:26     ` Dani Moncayo
  1 sibling, 1 reply; 6+ messages in thread
From: Stefan Monnier @ 2010-12-27 16:05 UTC (permalink / raw)
  To: Dani Moncayo; +Cc: 7641, jidanni

>>> I think the general public are more familiar with right-mouse
>>> center-mouse left-mouse than these names.
>> Except that in Emacs, they could be remapped (e.g., mouse-3 could be a
>> simultaneous click on both left and right buttons).  If we use left,
>> right, and center, the manual could be simply wrong for some
>> configurations.
> I don't understand this quite well.

Simple: mouse-3 is the button which X-windows defines as the button
number 3.  Depending on your configuration and on the kind of input
device you're using, it may be the right mouse button or it could be
... anything else.

So it's OK for the manual to say that mouse-1 is usually the left mouse
button, but it would be wrong for Emacs and its manual to always use
mouse-left in place of mouse-1.


        Stefan





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#7641: use more familiar names for mouse events
  2010-12-27 16:05   ` Stefan Monnier
@ 2010-12-27 17:26     ` Dani Moncayo
  0 siblings, 0 replies; 6+ messages in thread
From: Dani Moncayo @ 2010-12-27 17:26 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: 7641, jidanni

On Mon, Dec 27, 2010 at 17:05, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
>>>> I think the general public are more familiar with right-mouse
>>>> center-mouse left-mouse than these names.
>>> Except that in Emacs, they could be remapped (e.g., mouse-3 could be a
>>> simultaneous click on both left and right buttons).  If we use left,
>>> right, and center, the manual could be simply wrong for some
>>> configurations.
>> I don't understand this quite well.
>
> Simple: mouse-3 is the button which X-windows defines as the button
> number 3.  Depending on your configuration and on the kind of input
> device you're using, it may be the right mouse button or it could be
> ... anything else.
>
> So it's OK for the manual to say that mouse-1 is usually the left mouse
> button, but it would be wrong for Emacs and its manual to always use
> mouse-left in place of mouse-1.
>
I didn't know it. Thanks


-- 
Dani Moncayo





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-12-27 17:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-14 23:43 bug#7641: use more familiar left-mouse... names jidanni
2010-12-15  4:00 ` Eli Zaretskii
2010-12-27 12:51 ` bug#7641: use more familiar names for mouse events Dani Moncayo
2010-12-27 15:24   ` David De La Harpe Golden
2010-12-27 16:05   ` Stefan Monnier
2010-12-27 17:26     ` Dani Moncayo

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).