unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#59077: mouse-3 regression
@ 2022-11-06 13:32 Angelo Borsotti
  2022-11-06 14:11 ` Eli Zaretskii
  2022-11-06 15:24 ` Gregory Heytings
  0 siblings, 2 replies; 7+ messages in thread
From: Angelo Borsotti @ 2022-11-06 13:32 UTC (permalink / raw)
  To: 59077

Hello,

I am running GNU Emacs 28.2 (build 2, x86_64-w64-mingw32)
 of 2022-09-13 on Windows 10 64 bits.
The mouse-3 functioning has changed with respect to the
previous version of emacs: how there is a need to click it
twice to cut the region.
How can I make emacs go back to its previous behavior,
i.e. have the mouse-3 button cut the region with one click
only?

Thank you
-Angelo Borsotti





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

* bug#59077: mouse-3 regression
  2022-11-06 13:32 bug#59077: mouse-3 regression Angelo Borsotti
@ 2022-11-06 14:11 ` Eli Zaretskii
  2022-11-06 14:33   ` Angelo Borsotti
  2022-11-06 15:24 ` Gregory Heytings
  1 sibling, 1 reply; 7+ messages in thread
From: Eli Zaretskii @ 2022-11-06 14:11 UTC (permalink / raw)
  To: Angelo Borsotti; +Cc: 59077

> From: Angelo Borsotti <angelo.borsotti@gmail.com>
> Date: Sun, 6 Nov 2022 14:32:03 +0100
> 
> I am running GNU Emacs 28.2 (build 2, x86_64-w64-mingw32)
>  of 2022-09-13 on Windows 10 64 bits.
> The mouse-3 functioning has changed with respect to the
> previous version of emacs: how there is a need to click it
> twice to cut the region.
> How can I make emacs go back to its previous behavior,
> i.e. have the mouse-3 button cut the region with one click
> only?

What was the Emacs version where you saw something different?  I see
the same behavior in all the versions back to Emacs 25:

  <mouse-3> (translated from <down-mouse-3> <mouse-3>) at that spot runs
  the command mouse-save-then-kill (found in global-map), which is an
  interactive native-compiled Lisp function in ‘mouse.el’.

  It is bound to <mouse-3>.

  (mouse-save-then-kill CLICK)

  Set the region according to CLICK; the second time, kill it.
                                     ^^^^^^^^^^^^^^^^^^^^^^^^
So this command always required double-click to actually cut the
region, and the binding of mouse-3 didn't change.





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

* bug#59077: mouse-3 regression
  2022-11-06 14:11 ` Eli Zaretskii
@ 2022-11-06 14:33   ` Angelo Borsotti
  2022-11-06 15:00     ` Eli Zaretskii
  0 siblings, 1 reply; 7+ messages in thread
From: Angelo Borsotti @ 2022-11-06 14:33 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 59077

Hi,

unfortunately, I do not  remember what version it was, I used it on Windows
32 bits, then I upgraded Windows to 64 bits, and reinstalled emacs using the
latest version.
However, I am one hundred percent sure that mouse-3 required only one click:
I use emacs every day, many hours each day.

Could you tell me how to obtain the killing with only one click?

Thank you
-Angelo Borsotti

On Sun, 6 Nov 2022 at 15:11, Eli Zaretskii <eliz@gnu.org> wrote:
>
> > From: Angelo Borsotti <angelo.borsotti@gmail.com>
> > Date: Sun, 6 Nov 2022 14:32:03 +0100
> >
> > I am running GNU Emacs 28.2 (build 2, x86_64-w64-mingw32)
> >  of 2022-09-13 on Windows 10 64 bits.
> > The mouse-3 functioning has changed with respect to the
> > previous version of emacs: how there is a need to click it
> > twice to cut the region.
> > How can I make emacs go back to its previous behavior,
> > i.e. have the mouse-3 button cut the region with one click
> > only?
>
> What was the Emacs version where you saw something different?  I see
> the same behavior in all the versions back to Emacs 25:
>
>   <mouse-3> (translated from <down-mouse-3> <mouse-3>) at that spot runs
>   the command mouse-save-then-kill (found in global-map), which is an
>   interactive native-compiled Lisp function in ‘mouse.el’.
>
>   It is bound to <mouse-3>.
>
>   (mouse-save-then-kill CLICK)
>
>   Set the region according to CLICK; the second time, kill it.
>                                      ^^^^^^^^^^^^^^^^^^^^^^^^
> So this command always required double-click to actually cut the
> region, and the binding of mouse-3 didn't change.





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

* bug#59077: mouse-3 regression
  2022-11-06 14:33   ` Angelo Borsotti
@ 2022-11-06 15:00     ` Eli Zaretskii
  0 siblings, 0 replies; 7+ messages in thread
From: Eli Zaretskii @ 2022-11-06 15:00 UTC (permalink / raw)
  To: Angelo Borsotti; +Cc: 59077

> From: Angelo Borsotti <angelo.borsotti@gmail.com>
> Date: Sun, 6 Nov 2022 15:33:31 +0100
> Cc: 59077@debbugs.gnu.org
> 
> unfortunately, I do not  remember what version it was, I used it on Windows
> 32 bits, then I upgraded Windows to 64 bits, and reinstalled emacs using the
> latest version.

FWIW, I don't think there was ever such a version.  Unless you or
someone else customized it so that it didn't work as it should by
default.

> However, I am one hundred percent sure that mouse-3 required only one click:
> I use emacs every day, many hours each day.

I don't see that in any version of Emacs, so I guess you had some
customizations to do that.

> Could you tell me how to obtain the killing with only one click?

Sorry, I don't know.  You could write your own command to bind to
mouse-3, I guess.  But I see no such command in Emacs OOTB.





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

* bug#59077: mouse-3 regression
  2022-11-06 13:32 bug#59077: mouse-3 regression Angelo Borsotti
  2022-11-06 14:11 ` Eli Zaretskii
@ 2022-11-06 15:24 ` Gregory Heytings
  2022-11-06 15:56   ` Angelo Borsotti
  1 sibling, 1 reply; 7+ messages in thread
From: Gregory Heytings @ 2022-11-06 15:24 UTC (permalink / raw)
  To: Angelo Borsotti; +Cc: 59077


>
> How can I make emacs go back to its previous behavior, i.e. have the 
> mouse-3 button cut the region with one click only?
>

Does (global-set-key (kbd "<mouse-3>") #'kill-region) do what you want?





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

* bug#59077: mouse-3 regression
  2022-11-06 15:24 ` Gregory Heytings
@ 2022-11-06 15:56   ` Angelo Borsotti
  2022-11-06 16:33     ` Gregory Heytings
  0 siblings, 1 reply; 7+ messages in thread
From: Angelo Borsotti @ 2022-11-06 15:56 UTC (permalink / raw)
  To: Gregory Heytings; +Cc: 59077

Hi Gergory,

> Does (global-set-key (kbd "<mouse-3>") #'kill-region) do what you want?

YESSS!!

Thank you very much!
-Angelo Borsotti

On Sun, 6 Nov 2022 at 16:24, Gregory Heytings <gregory@heytings.org> wrote:
>
>
> >
> > How can I make emacs go back to its previous behavior, i.e. have the
> > mouse-3 button cut the region with one click only?
> >
>
> Does (global-set-key (kbd "<mouse-3>") #'kill-region) do what you want?





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

* bug#59077: mouse-3 regression
  2022-11-06 15:56   ` Angelo Borsotti
@ 2022-11-06 16:33     ` Gregory Heytings
  0 siblings, 0 replies; 7+ messages in thread
From: Gregory Heytings @ 2022-11-06 16:33 UTC (permalink / raw)
  To: Angelo Borsotti; +Cc: 59077-done


>> Does (global-set-key (kbd "<mouse-3>") #'kill-region) do what you want?
>
> YESSS!!
>
> Thank you very much!
>

You're welcome.  Closing this bug.





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

end of thread, other threads:[~2022-11-06 16:33 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-06 13:32 bug#59077: mouse-3 regression Angelo Borsotti
2022-11-06 14:11 ` Eli Zaretskii
2022-11-06 14:33   ` Angelo Borsotti
2022-11-06 15:00     ` Eli Zaretskii
2022-11-06 15:24 ` Gregory Heytings
2022-11-06 15:56   ` Angelo Borsotti
2022-11-06 16:33     ` Gregory Heytings

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