all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Drew Adams <drew.adams@oracle.com>
Cc: cyd@stupidchicken.com, 6956@debbugs.gnu.org
Subject: bug#6956: 24.0.50; pasting mouse selection in other session pastes only first word
Date: Sat, 04 Sep 2010 18:44:30 +0300	[thread overview]
Message-ID: <83y6bhh5sx.fsf@gnu.org> (raw)
In-Reply-To: <02F047848B344081A82C57995B4312C6@us.oracle.com>

> From: "Drew Adams" <drew.adams@oracle.com>
> Cc: <cyd@stupidchicken.com>, <6956@debbugs.gnu.org>
> Date: Sat, 4 Sep 2010 08:06:19 -0700
> 
> FWIW, though I seldom use Emacs on X Window these days, I used it for well a
> over a decade and I do not recall pasting with mouse-2 after selecting multiple
> things (words, lines, whatever) using mouse-1 + mouse-3 (or using any other
> mouse-selection method, for that matter) ever having done anything other than
> paste the entire selection.  Including pasting between Emacs sessions.  I do not
> believe this sane behavior is/was Windows-only.

It still works on X like you remember.  But it works because the
extended selection gets put into the PRIMARY selection, and mouse-2
pastes from there.  See Jan's response to my guess about this.

By contrast, on Windows, the (emulated) primary selection is not
accessible from other applications.

I'm awaiting Stefan or Chong to respond to my suggestions in this
thread.  If the decision is not to change anything on X, I will then
fix it for MS-Windows only, probably subject to a single option which
you will have to customize.

> IMO, when mouse-pasting after mouse-selecting, no one would ever want what is
> pasted to be something different from what s?he had selected.  The meaning of
> "drag" is irrelevant in this regard (though it might be relevant to some
> function names or code comments).

The problem is that on X, there are 2 different kinds of "pasting":
one from the clipboard, the other from PRIMARY.  The current
convention on X is that the mouse pastes from PRIMARY, while C-y
pastes from the clipboard.

"Drag" is relevant because Emacs puts the text you drag across into
the kill ring (when mouse-drag-copy-region is non-nil).  And anything
that goes to the kill ring automatically goes to the clipboard as
well.  By contrast, mouse-2 pastes only from PRIMARY.

And please, stop arguing with the principle.  Emacs operation on X wrt
selections and pasting has changed, and there's nothing you or me can
do about that, except making sure that there are options one can
customize to get the old behavior.  The default behavior on Windows
will need to follow the behavior on X, with some reasonable
compromises due to the fact that there's only the clipboard.  Again,
customizable options should exist to get you the old behavior on
Windows.  All I'm trying to do is get you what you want, and yet each
time I need to argue with you about this -- why?





  reply	other threads:[~2010-09-04 15:44 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-31 16:48 bug#6956: 24.0.50; pasting mouse selection in other session pastes only first word Drew Adams
2010-08-31 17:26 ` Eli Zaretskii
2010-08-31 18:13   ` Chong Yidong
2010-09-01 14:38     ` Eli Zaretskii
2010-09-04  7:18       ` Eli Zaretskii
2010-09-04  8:35         ` Jan Djärv
2010-09-04 11:07           ` Eli Zaretskii
2010-09-04 15:06             ` Drew Adams
2010-09-04 15:44               ` Eli Zaretskii [this message]
2010-09-04 15:15             ` Jan Djärv
2010-09-04 19:09             ` Chong Yidong
2010-09-04 20:35               ` David De La Harpe Golden
2010-09-04 21:38                 ` David De La Harpe Golden
2010-09-05  1:53                   ` Chong Yidong
2010-09-05  5:33                     ` David De La Harpe Golden
2010-09-05 14:36                     ` David De La Harpe Golden
2010-09-05  3:09                   ` Eli Zaretskii
2010-09-05  4:48                     ` David De La Harpe Golden
2010-09-05  5:06                       ` Eli Zaretskii
2010-09-04 17:06           ` David De La Harpe Golden
2010-08-31 18:16   ` Drew Adams
2010-09-16 20:02 ` Eli Zaretskii
2010-09-16 23:51   ` Drew Adams
2010-09-17  8:01     ` Eli Zaretskii
     [not found]       ` <3BE2421F73AD4292AE8375CA3328663D@us.oracle.com>
2010-09-17 16:14         ` Eli Zaretskii
2010-09-17 16:20           ` Drew Adams
2010-09-17 17:03             ` Eli Zaretskii
2010-09-20 18:47               ` Drew Adams
2010-09-20 19:18                 ` Eli Zaretskii
2010-09-20 20:19                   ` Drew Adams
2010-09-20 20:43                   ` Drew Adams
2010-09-20 20:52                     ` Eli Zaretskii
2010-09-20 21:41                       ` Drew Adams
2010-09-20 21:53                         ` Eli Zaretskii
2010-09-20 22:24                           ` Drew Adams
2010-09-21  4:08                             ` Eli Zaretskii
2010-09-21 14:20                               ` Drew Adams

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=83y6bhh5sx.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=6956@debbugs.gnu.org \
    --cc=cyd@stupidchicken.com \
    --cc=drew.adams@oracle.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.