all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David De La Harpe Golden <david@harpegolden.net>
To: Matthieu Moy <Matthieu.Moy@grenoble-inp.fr>
Cc: 6701@debbugs.gnu.org, Chong Yidong <cyd@stupidchicken.com>
Subject: bug#6701: 24.0.50; Cut and paste with mouse-3/mouse-2 no longer works
Date: Thu, 22 Jul 2010 21:33:11 +0100	[thread overview]
Message-ID: <4C48AB07.1050601@harpegolden.net> (raw)
In-Reply-To: <vpqpqyfq4wx.fsf@bauges.imag.fr>

On 22/07/10 09:47, Matthieu Moy wrote:
> Hi,
>
> The latests changes in the way selection works broke a nice feature
> (I'd say killer-feature ;-) ) of Emacs<= 23. Not only copy-paste
> works with mouse, but also _cut_-and-paste:
>


I confess I was aware of a problem in that area in conjunction with 
settings corresponding to the latest changes, though it had slipped my 
mind (comes from the days before the bug tracker, at least before it had 
stabilised):

It is the reason why, a couple of years ago, I proposed a setting to 
allow  some alternative behaviour for mouse-3 (mouse-save-then-kill):

http://lists.gnu.org/archive/html/emacs-devel/2008-02/msg01018.html

Unfortunately I doubt the patch applies cleanly right now owing to 
reworking of the mouse layer in the interim.  I can look at it this weekend.

Hopefully the _reason_ I proposed the change is becoming a bit clearer 
to people other than me now...

How I suggested mouse-3 should act at the time (Yes, this means learning 
to do an extra click for some operations, but
it makes mouse-3 actually useful with the new settings, at least when it 
hasn't been replaced by a context menu anyway):

first mouse-3 click: adjust region (only), thereby also adjusting 
primary when select-active-regions enabled (as it now is).

second mouse-3 click: copy region to kill-ring/clipboard

third mouse-3 click: cut region to kill-ring/clipboard (using same slot 
as copy to avoid duplication).

Note mouse-2 click will insert the cut region even though bound to 
mouse-yank-primary, since the first click will have put it there*.

* One caveat - this may also require certain of the 
no-zero-length-region fixes to work entirely correctly. (Apologies, 
Chong Yidong knows what I'm talking about here).






  reply	other threads:[~2010-07-22 20:33 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-22  8:47 bug#6701: 24.0.50; Cut and paste with mouse-3/mouse-2 no longer works Matthieu Moy
2010-07-22 20:33 ` David De La Harpe Golden [this message]
2010-07-22 21:21   ` Drew Adams
2010-07-22 22:12   ` Chong Yidong
2010-07-23  0:21     ` David De La Harpe Golden
2010-07-23 17:03       ` Chong Yidong
2010-07-31 21:30   ` Chong Yidong

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

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

  git send-email \
    --in-reply-to=4C48AB07.1050601@harpegolden.net \
    --to=david@harpegolden.net \
    --cc=6701@debbugs.gnu.org \
    --cc=Matthieu.Moy@grenoble-inp.fr \
    --cc=cyd@stupidchicken.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.