unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: David De La Harpe Golden <david@harpegolden.net>
Cc: emacs-devel@gnu.org
Subject: Re: mouse-yank-primary and bug #7699
Date: Wed, 22 Dec 2010 06:09:05 -0500	[thread overview]
Message-ID: <E1PVMZ7-00036R-L9@fencepost.gnu.org> (raw)
In-Reply-To: <4D114EF0.8090706@harpegolden.net> (message from David De La Harpe Golden on Wed, 22 Dec 2010 01:05:52 +0000)

> Date: Wed, 22 Dec 2010 01:05:52 +0000
> From: David De La Harpe Golden <david@harpegolden.net>
> 
> > My question is: could switching the order do the wrong thing on X?
> 
> I expect so. See discussions under #6635, #6802.  x-get-selection-value 
> (or the x-selection-value-internal it calls) is doing the relevant dance 
> to get unicode.

Thanks (both to you and Jan) for the pointers and the feedback.

What is still unclear to me (but not entirely relevant to the issue at
hand in bug #7699) is why do we call x-get-selection at all, when
x-get-selection-value returns nil?  What situation does this second
call take care of?  (I'm asking because my conclusion both from
reading the X implementation and from your responses, and also from
discussions archived in bugs #6635 and #6802, is that x-get-selection
is roughly a limited variant of x-get-selection-value, in that it
supports less data types.  But I'm probably still missing something.)

> Anyway, mutating the new binding of mouse-2 until it acts like a creepy 
> zombie version of the old binding seems ...a relatively awkward path to 
> take.

The bug report I'm talking about was not about restoring Emacs 23
behavior of mouse-2.  It is about having mouse-2 in Emacs 24 paste the
w32 emulated "primary selection", at least when the selection was made
in the same Emacs session (which is the limit of what we can currently
do on Windows).  I believe that on X, Drew's recipe works as expected,
i.e. the mouse-selected text is pasted, not the text in the clipboard.
I'm trying to do the same on Windows, without any rebinding of keys.



  parent reply	other threads:[~2010-12-22 11:09 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-21 19:29 mouse-yank-primary and bug #7699 Eli Zaretskii
2010-12-22  1:05 ` David De La Harpe Golden
2010-12-22  1:38   ` Drew Adams
2010-12-22  3:16     ` David De La Harpe Golden
2010-12-22  4:18       ` Drew Adams
2010-12-22 11:13         ` Eli Zaretskii
2010-12-22 15:11           ` Drew Adams
2010-12-22 19:04             ` Eli Zaretskii
2010-12-22 19:09               ` Drew Adams
2010-12-22 11:09   ` Eli Zaretskii [this message]
2010-12-22 15:16     ` David De La Harpe Golden
2010-12-22 15:38       ` David De La Harpe Golden
2010-12-22 19:23         ` Eli Zaretskii
2010-12-22 21:37           ` David De La Harpe Golden
2010-12-23  4:01             ` Eli Zaretskii
2010-12-22 19:17       ` Eli Zaretskii
2010-12-22 22:10         ` David De La Harpe Golden
2010-12-23  4:03           ` Eli Zaretskii
2010-12-23  7:32             ` Jan D.
2010-12-23  9:08               ` Eli Zaretskii
2010-12-23 14:28                 ` Stefan Monnier
2010-12-23 16:38                 ` David De La Harpe Golden
2010-12-22  6:47 ` Jan Djärv

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=E1PVMZ7-00036R-L9@fencepost.gnu.org \
    --to=eliz@gnu.org \
    --cc=david@harpegolden.net \
    --cc=emacs-devel@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).