unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Killing buffers with mouse
  2007-02-23 18:15 cygwin succesfull straight build Eli Zaretskii
@ 2007-03-09  1:06 ` Angelo Graziosi
  2007-03-09 14:56   ` Chong Yidong
  2007-03-09 15:41   ` Eli Zaretskii
  0 siblings, 2 replies; 15+ messages in thread
From: Angelo Graziosi @ 2007-03-09  1:06 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel


I would ask if this behaviour I observed using Emacs-cvs is correct:

When the mouse pointer (an arrow) is on the 'X' icon (Discard current
buffer) of the toolbar, moving the wheel of the mouse, without clicking,
causes the killing of the buffer.

In this manner moving unintentionally the wheel can cause the killing of
many buffers.


Thanks,

   Angelo.

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

* Re: Killing buffers with mouse
  2007-03-09  1:06 ` Killing buffers with mouse Angelo Graziosi
@ 2007-03-09 14:56   ` Chong Yidong
  2007-03-09 15:15     ` Jan Djärv
  2007-03-09 15:41   ` Eli Zaretskii
  1 sibling, 1 reply; 15+ messages in thread
From: Chong Yidong @ 2007-03-09 14:56 UTC (permalink / raw)
  To: Angelo Graziosi; +Cc: Eli Zaretskii, emacs-devel

Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> writes:

> I would ask if this behaviour I observed using Emacs-cvs is correct:
>
> When the mouse pointer (an arrow) is on the 'X' icon (Discard current
> buffer) of the toolbar, moving the wheel of the mouse, without clicking,
> causes the killing of the buffer.
>
> In this manner moving unintentionally the wheel can cause the killing of
> many buffers.

Works fine for me with a GTK build.  Maybe this is a limitation of
certain toolkits.

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

* Re: Killing buffers with mouse
  2007-03-09 14:56   ` Chong Yidong
@ 2007-03-09 15:15     ` Jan Djärv
  2007-03-09 15:55       ` Stefan Monnier
  0 siblings, 1 reply; 15+ messages in thread
From: Jan Djärv @ 2007-03-09 15:15 UTC (permalink / raw)
  To: Chong Yidong; +Cc: Eli Zaretskii, Angelo Graziosi, emacs-devel



Chong Yidong skrev:
> Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> writes:
> 
>> I would ask if this behaviour I observed using Emacs-cvs is correct:
>>
>> When the mouse pointer (an arrow) is on the 'X' icon (Discard current
>> buffer) of the toolbar, moving the wheel of the mouse, without clicking,
>> causes the killing of the buffer.
>>
>> In this manner moving unintentionally the wheel can cause the killing of
>> many buffers.
> 
> Works fine for me with a GTK build.  Maybe this is a limitation of
> certain toolkits.

It does so with the native tool bar.  It is because any mouse down is used as 
mouse down, not only mouse down with button 1.  It is there in 21.4 as well. 
It is easily fixed, but is it a real bug?

	Jan D.

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

* Re: Killing buffers with mouse
  2007-03-09  1:06 ` Killing buffers with mouse Angelo Graziosi
  2007-03-09 14:56   ` Chong Yidong
@ 2007-03-09 15:41   ` Eli Zaretskii
  2007-03-09 16:46     ` Angelo Graziosi
  1 sibling, 1 reply; 15+ messages in thread
From: Eli Zaretskii @ 2007-03-09 15:41 UTC (permalink / raw)
  To: Angelo Graziosi; +Cc: emacs-devel

> Date: Fri, 9 Mar 2007 02:06:14 +0100 (MET)
> From: Angelo Graziosi <Angelo.Graziosi@roma1.infn.it>
> cc: emacs-devel@gnu.org
> 
> When the mouse pointer (an arrow) is on the 'X' icon (Discard current
> buffer) of the toolbar, moving the wheel of the mouse, without clicking,
> causes the killing of the buffer.

I don't see this in the native Windows version.  Could people please
try this on Unix?

Angelo, please tell what do you see in the buffer displayed by "C-h l"
after you move the wheel over that toolbar icon.  (That's a letter
ell, not the digit one in "C-h l".)

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

* Re: Killing buffers with mouse
  2007-03-09 15:15     ` Jan Djärv
@ 2007-03-09 15:55       ` Stefan Monnier
  2007-03-09 17:43         ` Jan Djärv
  2007-03-09 23:19         ` Kim F. Storm
  0 siblings, 2 replies; 15+ messages in thread
From: Stefan Monnier @ 2007-03-09 15:55 UTC (permalink / raw)
  To: Jan Djärv; +Cc: Chong Yidong, Angelo Graziosi, Eli Zaretskii, emacs-devel

> It does so with the native tool bar.  It is because any mouse down is used
> as mouse down, not only mouse down with button 1.  It is there in 21.4 as
> well. It is easily fixed, but is it a real bug?

I'd say that it is.  It's OK to accept buttons 1,2,3, but there's no benefit
in accepting buttons 4,5,6,7,8.... whereas there is a significant drawback
since those buttons are typically used for scrolling with touchpads
or wheels and thus aren't "clicks".


        Stefan


PS: I really hope that in post-22 we can refine the toolbar so that we can
put different bindings for different buttons and also different bindings for
the "down" and the "up" events.

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

* Re: Killing buffers with mouse
  2007-03-09 15:41   ` Eli Zaretskii
@ 2007-03-09 16:46     ` Angelo Graziosi
  2007-03-09 17:46       ` Eli Zaretskii
  2007-03-10 15:50       ` Richard Stallman
  0 siblings, 2 replies; 15+ messages in thread
From: Angelo Graziosi @ 2007-03-09 16:46 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Chong Yidong, Jan Djärv, Stefan Monnier, emacs-devel



On Fri, 9 Mar 2007, Eli Zaretskii wrote:

> > Date: Fri, 9 Mar 2007 02:06:14 +0100 (MET)
> > From: Angelo Graziosi <Angelo.Graziosi@roma1.infn.it>
> > cc: emacs-devel@gnu.org
> > 
> > When the mouse pointer (an arrow) is on the 'X' icon (Discard current
> > buffer) of the toolbar, moving the wheel of the mouse, without clicking,
> > causes the killing of the buffer.
> 
> I don't see this in the native Windows version.  Could people please
> try this on Unix?

I have seen the same thing on Linux-kubuntu (32 bit) and on Scientific
Linux (64 bit) (and on Cygwin 32 bit).

After moving the wheel (when the pointer is on the 'X' icon of the
toolbar) and the buffer is killed, I observe in the minibuffer:

   tool-bar kill-buffer

i.e. the same thing that happens when I kill the buffer clicking with
MOUSE-1 on that icon.

In other words, it seems that moving the wheel on that icon has the same
result of clicking with MOUSE-1 on it.

> 
> Angelo, please tell what do you see in the buffer displayed by "C-h l"
> after you move the wheel over that toolbar icon.  (That's a letter
> ell, not the digit one in "C-h l".)
> 

Regarding this point, after moving the wheel, C-h l (the lowercase of L),
I have an help buffer:

---------------------------------------------
<help-echo> <help-echo> <down-mouse-1> <mouse-1> <help-echo>
<down-mouse-3> <mouse-3> <double-down-mouse-3> <double-mouse-3>
<help-echo> <help-echo> <tool-bar> <kill-buffer> <help-echo>
<help-echo> <down-mouse-1> <drag-mouse-1> <help-echo>
<help-echo> <down-mouse-2> <mouse-2> <down-mouse-5>
<mouse-5> <help-echo> <help-echo> <help-echo> <tool-bar>
<kill-buffer> <help-echo> <help-echo> C-h l <help-echo>
<help-echo> <down-mouse-1> <mouse-1> <down-mouse-1>
<mouse-movement> <mouse-movement> <help-echo> <mouse-movement>
<mouse-movement> <mouse-movement> <mouse-movement>
<mouse-movement> <help-echo> <mouse-movement> <mouse-movement>
<drag-mouse-1> <help-echo> <help-echo> <help-echo>
<down-mouse-1> <mouse-1> <help-echo> <down-mouse-2>
<mouse-2> <help-echo> <down-mouse-1> <mouse-1> <help-echo>
<down> <return> <return> C-y <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <tool-bar>
<save-buffer> <help-echo> <help-echo> <down-mouse-3>
<mouse-3> <help-echo> <help-echo> <tool-bar> <open-file>
<help-echo> <up> <up> <up> <return> <help-echo> <tool-bar>
<open-file> <up> <up> <up> <return> <help-echo> <help-echo>
<help-echo> <tool-bar> <kill-buffer> C-h l
---------------------------------------------

but I am not sure that what you mean is what I have understood.


Cheers,

   Angelo.

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

* Re: Killing buffers with mouse
@ 2007-03-09 17:40 Angelo Graziosi
  0 siblings, 0 replies; 15+ messages in thread
From: Angelo Graziosi @ 2007-03-09 17:40 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Chong Yidong, Jan Djärv, Stefan Monnier, emacs-devel


It seems that also the other icons on the toolbar are affected by the
wheel of the mouse, i.e. moving the wheel on the icons is equivalent to
click with MOUSE-1 on the same icon.

For example moving the wheel on the icon called 'Read a directory, to
operate on its file' causes in the minibuf.:

   Dired (directory): /tmp/


and similar behaviour for the other icons.


   Angelo.

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

* Re: Killing buffers with mouse
  2007-03-09 15:55       ` Stefan Monnier
@ 2007-03-09 17:43         ` Jan Djärv
  2007-03-09 23:19         ` Kim F. Storm
  1 sibling, 0 replies; 15+ messages in thread
From: Jan Djärv @ 2007-03-09 17:43 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: Chong Yidong, Angelo Graziosi, Eli Zaretskii, emacs-devel

Stefan Monnier skrev:
>> It does so with the native tool bar.  It is because any mouse down is used
>> as mouse down, not only mouse down with button 1.  It is there in 21.4 as
>> well. It is easily fixed, but is it a real bug?
> 
> I'd say that it is.  It's OK to accept buttons 1,2,3, but there's no benefit
> in accepting buttons 4,5,6,7,8.... whereas there is a significant drawback
> since those buttons are typically used for scrolling with touchpads
> or wheels and thus aren't "clicks".
> 
> 

Ok, I've checked in a fix so we ignore buttons > 3 in the tool bar.

	Jan D.

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

* Re: Killing buffers with mouse
  2007-03-09 16:46     ` Angelo Graziosi
@ 2007-03-09 17:46       ` Eli Zaretskii
  2007-03-10 15:50       ` Richard Stallman
  1 sibling, 0 replies; 15+ messages in thread
From: Eli Zaretskii @ 2007-03-09 17:46 UTC (permalink / raw)
  To: Angelo Graziosi; +Cc: cyd, jan.h.d, monnier, emacs-devel

> Date: Fri, 9 Mar 2007 17:46:51 +0100 (MET)
> From: Angelo Graziosi <Angelo.Graziosi@roma1.infn.it>
> cc: Chong Yidong <cyd@stupidchicken.com>,
>         =?ISO-8859-1?Q?Jan_Dj=E4rv?= <jan.h.d@swipnet.se>,
>         Stefan Monnier <monnier@iro.umontreal.ca>, emacs-devel@gnu.org
> 
> > 
> > Angelo, please tell what do you see in the buffer displayed by "C-h l"
> > after you move the wheel over that toolbar icon.  (That's a letter
> > ell, not the digit one in "C-h l".)
> > 
> 
> Regarding this point, after moving the wheel, C-h l (the lowercase of L),
> I have an help buffer:
> 
> ---------------------------------------------
> <help-echo> <help-echo> <down-mouse-1> <mouse-1> <help-echo>
> <down-mouse-3> <mouse-3> <double-down-mouse-3> <double-mouse-3>
> <help-echo> <help-echo> <tool-bar> <kill-buffer> <help-echo>
> <help-echo> <down-mouse-1> <drag-mouse-1> <help-echo>
> <help-echo> <down-mouse-2> <mouse-2> <down-mouse-5>
> <mouse-5> <help-echo> <help-echo> <help-echo> <tool-bar>
> <kill-buffer> <help-echo> <help-echo> C-h l <help-echo>
> <help-echo> <down-mouse-1> <mouse-1> <down-mouse-1>
> <mouse-movement> <mouse-movement> <help-echo> <mouse-movement>
> <mouse-movement> <mouse-movement> <mouse-movement>
> <mouse-movement> <help-echo> <mouse-movement> <mouse-movement>
> <drag-mouse-1> <help-echo> <help-echo> <help-echo>
> <down-mouse-1> <mouse-1> <help-echo> <down-mouse-2>
> <mouse-2> <help-echo> <down-mouse-1> <mouse-1> <help-echo>
> <down> <return> <return> C-y <help-echo> <help-echo>
> <help-echo> <help-echo> <help-echo> <help-echo> <tool-bar>
> <save-buffer> <help-echo> <help-echo> <down-mouse-3>
> <mouse-3> <help-echo> <help-echo> <tool-bar> <open-file>
> <help-echo> <up> <up> <up> <return> <help-echo> <tool-bar>
> <open-file> <up> <up> <up> <return> <help-echo> <help-echo>
> <help-echo> <tool-bar> <kill-buffer> C-h l
> ---------------------------------------------
> 
> but I am not sure that what you mean is what I have understood.

That's exactly what I meant, thank you.

As seen from the rest of this thread, the problem has been identified
already, and it is not specific to Cygwin.

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

* Re: Killing buffers with mouse
  2007-03-09 15:55       ` Stefan Monnier
  2007-03-09 17:43         ` Jan Djärv
@ 2007-03-09 23:19         ` Kim F. Storm
  2007-03-10  9:35           ` Jan Djärv
  2007-03-10 16:00           ` Stefan Monnier
  1 sibling, 2 replies; 15+ messages in thread
From: Kim F. Storm @ 2007-03-09 23:19 UTC (permalink / raw)
  To: Stefan Monnier
  Cc: Chong Yidong, Jan Djärv, emacs-devel, Eli Zaretskii,
	Angelo Graziosi

Stefan Monnier <monnier@iro.umontreal.ca> writes:

> PS: I really hope that in post-22 we can refine the toolbar so that we can
> put different bindings for different buttons and also different bindings for
> the "down" and the "up" events.

Is that possible with e.g. GTK toolbar or W32 toolbar?

If not, it doesn't make much sense to do it just for the native toolbar.

-- 
Kim F. Storm <storm@cua.dk> http://www.cua.dk

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

* Re: Killing buffers with mouse
  2007-03-09 23:19         ` Kim F. Storm
@ 2007-03-10  9:35           ` Jan Djärv
  2007-03-10 16:00           ` Stefan Monnier
  1 sibling, 0 replies; 15+ messages in thread
From: Jan Djärv @ 2007-03-10  9:35 UTC (permalink / raw)
  To: Kim F. Storm
  Cc: Chong Yidong, Angelo Graziosi, Eli Zaretskii, Stefan Monnier,
	emacs-devel



Kim F. Storm skrev:
> Stefan Monnier <monnier@iro.umontreal.ca> writes:
> 
>> PS: I really hope that in post-22 we can refine the toolbar so that we can
>> put different bindings for different buttons and also different bindings for
>> the "down" and the "up" events.
> 
> Is that possible with e.g. GTK toolbar or W32 toolbar?
> 
> If not, it doesn't make much sense to do it just for the native toolbar.
> 

It is possible for GTK, I can't speek for W32.

	Jan D.

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

* Re: Killing buffers with mouse
  2007-03-09 16:46     ` Angelo Graziosi
  2007-03-09 17:46       ` Eli Zaretskii
@ 2007-03-10 15:50       ` Richard Stallman
  1 sibling, 0 replies; 15+ messages in thread
From: Richard Stallman @ 2007-03-10 15:50 UTC (permalink / raw)
  To: Angelo Graziosi; +Cc: eliz, jan.h.d, emacs-devel, cyd, monnier

    I have seen the same thing on Linux-kubuntu (32 bit) and on Scientific
    Linux (64 bit) (and on Cygwin 32 bit).

You're talking about versions of the GNU operating system.
Please do not call them "Linux" -- that's unfair to us.
Please call them GNU/Linux.  We are the system's principal
developers, so we deserve equal mention.

See http://www.gnu.org/gnu/gnu-linux-faq.html for more
explanation.

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

* Re: Killing buffers with mouse
  2007-03-09 23:19         ` Kim F. Storm
  2007-03-10  9:35           ` Jan Djärv
@ 2007-03-10 16:00           ` Stefan Monnier
  2007-03-10 23:07             ` Kim F. Storm
  1 sibling, 1 reply; 15+ messages in thread
From: Stefan Monnier @ 2007-03-10 16:00 UTC (permalink / raw)
  To: Kim F. Storm
  Cc: Chong Yidong, Jan Djärv, emacs-devel, Eli Zaretskii,
	Angelo Graziosi

>> PS: I really hope that in post-22 we can refine the toolbar so that we can
>> put different bindings for different buttons and also different bindings for
>> the "down" and the "up" events.
> Is that possible with e.g. GTK toolbar or W32 toolbar?

I don't know.

> If not, it doesn't make much sense to do it just for the native toolbar.

It might be a reason for someone not to spend time on it, but if someone
else decides it's important enough and comes up with a patch, I don't think
it should be grounds to reject the patch.


        Stefan

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

* Re: Killing buffers with mouse
  2007-03-10 16:00           ` Stefan Monnier
@ 2007-03-10 23:07             ` Kim F. Storm
  2007-03-11  1:32               ` Stefan Monnier
  0 siblings, 1 reply; 15+ messages in thread
From: Kim F. Storm @ 2007-03-10 23:07 UTC (permalink / raw)
  To: Stefan Monnier
  Cc: Angelo Graziosi, Chong Yidong, Jan Djärv, Eli Zaretskii,
	emacs-devel

Stefan Monnier <monnier@iro.umontreal.ca> writes:

> It might be a reason for someone not to spend time on it, but if someone
> else decides it's important enough and comes up with a patch, I don't think
> it should be grounds to reject the patch.

If we are moving towards GTK as default in 23.x, then it better work
with GTK (Jan says it can).  So whoever submits such a patch should
at least make it work with GTK too.

But if it doesn't work on some of the other platforms the use of such
extra features may be limited, as programmers might be reluctant to use
them.

-- 
Kim F. Storm <storm@cua.dk> http://www.cua.dk

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

* Re: Killing buffers with mouse
  2007-03-10 23:07             ` Kim F. Storm
@ 2007-03-11  1:32               ` Stefan Monnier
  0 siblings, 0 replies; 15+ messages in thread
From: Stefan Monnier @ 2007-03-11  1:32 UTC (permalink / raw)
  To: Kim F. Storm
  Cc: Angelo Graziosi, Chong Yidong, Jan Djärv, Eli Zaretskii,
	emacs-devel

> But if it doesn't work on some of the other platforms the use of such
> extra features may be limited, as programmers might be reluctant to
> use them.

Right.  But we're talking about the toolbar: just because there was no
toolbar under w32 until Emacs-22 didn't prevent its use.  All it provides is
other ways to do things, so if it's not available, it just means people have
to use menus or key-bindings.  No big problem.


        Stefan

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

end of thread, other threads:[~2007-03-11  1:32 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-09 17:40 Killing buffers with mouse Angelo Graziosi
  -- strict thread matches above, loose matches on Subject: below --
2007-02-23 18:15 cygwin succesfull straight build Eli Zaretskii
2007-03-09  1:06 ` Killing buffers with mouse Angelo Graziosi
2007-03-09 14:56   ` Chong Yidong
2007-03-09 15:15     ` Jan Djärv
2007-03-09 15:55       ` Stefan Monnier
2007-03-09 17:43         ` Jan Djärv
2007-03-09 23:19         ` Kim F. Storm
2007-03-10  9:35           ` Jan Djärv
2007-03-10 16:00           ` Stefan Monnier
2007-03-10 23:07             ` Kim F. Storm
2007-03-11  1:32               ` Stefan Monnier
2007-03-09 15:41   ` Eli Zaretskii
2007-03-09 16:46     ` Angelo Graziosi
2007-03-09 17:46       ` Eli Zaretskii
2007-03-10 15:50       ` Richard Stallman

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