unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: David De La Harpe Golden <david@harpegolden.net>
To: Sam Steingold <sds@gnu.org>
Cc: Chong Yidong <cyd@stupidchicken.com>, emacs-devel@gnu.org
Subject: Re: mouse paste completely broken
Date: Wed, 28 Jul 2010 00:44:34 +0100	[thread overview]
Message-ID: <4C4F6F62.7060500@harpegolden.net> (raw)
In-Reply-To: <4C4F48CC.3040900@gnu.org>

On 27/07/10 21:59, Sam Steingold wrote:
> the situation is much worse than I first thought.

Emacs kill/yank default interactions with x11 selections on the 
development trunk (not the stable branch) were recently changed to [try 
to] act like recent x11 apps.  So, there are both genuine bugs being 
shaken out and intentional behavioural differences to deal with***.

... But there are definitely real problems switching frames/windows with 
active regions, what you describe is wrong, certainly from a usefulness 
perspective and after accounting for any intentional differences.

A (yes, stupid) workaround is to left click once in window X after 
selecting text in that window X before middle clicking in the other 
window Y.

I for one do intend to look at this and various issues on the various 
gui platforms (x11/ns/w32) in the area that have been made painfully 
obvious by the defaults changes, but as usual I don't have much time 
until this weekend (it is a long weekend...).

Note that I can replicate similar issues in emacs 23.2, really:

emacs -Q
C-x 3
shift-select "is for notes" in LHS *scratch*. It is highlighted.
C-x o to RHS *scratch*

Everything from the start of "is for notes" to the end of the buffer is 
highlighted, because that's where the point was in the other window, and 
select-window is "naive" (it just warps to the point saved in the the 
window).

A fix for select-active-regions somewhat similar to the zero-length 
regions fix proposed approach should certainly be possible - really we 
don't want to propagate the active region of a newly switched-to-window 
until it "really" changes anew post-restoration.

*** In the meantime, if you just want things the way they were, please 
note only defaults were changed, reversion to previous behaviour is 
fairly straightforward.  Right now, applying the settings below will do 
that (unless you used the menu bar cut/copy/paste, in which case they 
need to be rebound too):

1. customize group killing:

x-select-enable-clipboard nil  ; t on w32.
x-select-enable-primary t      ;
select-active-regions nil

2. customize group mouse:
mouse-drag-copy-region t

3. rebind:

(global-set-key [mouse-2] 'mouse-yank-at-click)















  reply	other threads:[~2010-07-27 23:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-26 19:46 weird interaction between save-interprogram-paste-before-kill & mouse-autoselect-window Sam Steingold
2010-07-27 20:59 ` mouse paste completely broken Sam Steingold
2010-07-27 23:44   ` David De La Harpe Golden [this message]
2010-07-28 10:03     ` Stephen Berman
2010-08-02  3:20       ` David De La Harpe Golden

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=4C4F6F62.7060500@harpegolden.net \
    --to=david@harpegolden.net \
    --cc=cyd@stupidchicken.com \
    --cc=emacs-devel@gnu.org \
    --cc=sds@gnu.org \
    /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 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).