unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: David De La Harpe Golden <david@harpegolden.net>
To: Eli Zaretskii <eliz@gnu.org>
Cc: stephen@xemacs.org, miles@gnu.org, emacs-devel@gnu.org
Subject: Re: Selection changes in revno 100822
Date: Sun, 15 Aug 2010 20:50:23 +0100	[thread overview]
Message-ID: <4C6844FF.80602@harpegolden.net> (raw)
In-Reply-To: <83vd7bsqn6.fsf@gnu.org>

On 15/08/10 18:59, Eli Zaretskii wrote:
>> Date: Sun, 15 Aug 2010 18:27:37 +0100
>> From: David De La Harpe Golden<david@harpegolden.net>
>> CC: "Stephen J. Turnbull"<stephen@xemacs.org>, emacs-devel@gnu.org,
>>   miles@gnu.org
>>
>> On 15/08/10 16:20, Eli Zaretskii wrote:
>>
>>> As of yesterday, mouse-2 on Windows pastes from the clipboard (and
>>> falls back on the emulated PRIMARY if the clipboard is empty).
>>
>> Er... really? Did you mean paste from the emulated primary and fall back
>> to the clipboard?
>

Ah, w32 x-get-selection-value is only returning the clipboard the first 
time it is called, subsequent calls return nil if the clipboard is 
unchanged, it's following the interprogram-paste-function  protocol.

I thought you meant you were inserting the clipboard if the clipboard 
was nonempty every time, and was wondering how that made any sense given 
AFAIK the w32 clipboard is seldom empty except momentarily when it's 
just been emptied before an app puts something on it, so the emulated 
primary would basically never be inserted.

Still, I'm not at all sure this is what you wanted, even leaving aside 
higher-level "david thinks it's fundamentally wrong"* issues:

A C-y after such a mouse-2 won't insert the current w32 clipboard unless 
it has changed since the mouse-2, because it's already been "consumed" 
(put on w32 x-last-selected-text)   Nor will the mouse-2 have put it on 
the kill ring, so it won't be available via M-y either.
What happens when you press mouse-2 twice in a row when it's inserted 
from the w32 clipboard.

All a tad weird for my taste, but /I/ don't have to use it.

* I _still_ think it'd be better to bind mouse-2 back to 
mouse-yank-at-click, then supply customizations that allow control over 
whether mouse-yank-at-click gets from the primary, the clipboard (or 
both), and whether it side-effects the kill-ring (pushes what it just 
got onto it
as well as inserting it into the buffer).

Then on w32, w32-specific defaults to those customizations could mean 
mouse-2 could then get from the clipboard, maybe even side effect the 
kill-ring, until such a time as w32's primary is ready.

Seems I started proposing something like that around Feb 2008*, so, 
well, obviously I'm failing to communicate why it's desirable.

At the time, I used the variable names:

(mouse-yank-enable-kill-ring nil)
(mouse-yank-enable-system-clipboard nil)
(mouse-yank-enable-system-current-selection t)


* See (emacs-devel list archive isn't responding for me, sorry no link):

Message-ID: <8e24944a0802161938i736d4bb2x854e37a4042076bb@mail.gmail.com>
Date: Sun, 17 Feb 2008 03:38:14 +0000
From: "David De La Harpe Golden" <david.delaharpe.golden@gmail.com>
To: "Stefan Monnier" <monnier@iro.umontreal.ca>
Subject: Re: Improving X selection?
Cc: "Horsley, Tom" <Tom.Horsley@ccur.com>,
	"Stephen J. Turnbull" <stephen@xemacs.org>,
	"Jan D." <jan.h.d@swipnet.se>, rms@gnu.org, emacs-devel@gnu.org
In-Reply-To: <jwvk5lfczjk.fsf-monnier+emacs@gnu.org>





  reply	other threads:[~2010-08-15 19:50 UTC|newest]

Thread overview: 115+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-13 17:05 Selection changes in revno 100822 Eli Zaretskii
2010-08-14  1:08 ` Chong Yidong
2010-08-14  8:00   ` Eli Zaretskii
2010-08-14  8:24     ` Miles Bader
2010-08-14  9:16       ` Eli Zaretskii
2010-08-14 12:16         ` Miles Bader
2010-08-14 12:20           ` Eli Zaretskii
2010-08-14 12:35             ` Miles Bader
2010-08-14 13:02               ` Eli Zaretskii
2010-08-14 13:23                 ` Miles Bader
2010-08-14 13:27                   ` Eli Zaretskii
2010-08-14 13:32                     ` David De La Harpe Golden
2010-08-14 13:53                       ` Eli Zaretskii
2010-08-16  0:55                   ` Kenichi Handa
2010-08-14  9:46     ` Jan Djärv
2010-08-14 11:20       ` Eli Zaretskii
2010-08-14 13:54         ` Jan Djärv
2010-08-14 14:31         ` David De La Harpe Golden
2010-08-14 15:18           ` Eli Zaretskii
2010-08-14 17:21             ` David De La Harpe Golden
2010-08-14 19:04               ` Drew Adams
2010-08-14 22:16               ` Eli Zaretskii
2010-08-14 22:33                 ` David De La Harpe Golden
2010-08-14 22:58                   ` Eli Zaretskii
2010-08-14 23:42                     ` David De La Harpe Golden
2010-08-15  2:55                       ` Eli Zaretskii
2010-08-15 19:16                   ` James Cloos
2010-08-15 13:52                 ` Stephen J. Turnbull
2010-08-15 15:07                   ` Eli Zaretskii
2010-08-15 17:36                     ` Stephen J. Turnbull
2010-08-15 17:57                       ` Eli Zaretskii
2010-08-15 17:48                   ` Drew Adams
2010-08-15 18:16                     ` Eli Zaretskii
2010-08-15 19:29                       ` Drew Adams
2010-08-15 20:10                         ` Eli Zaretskii
2010-08-15 23:01                           ` Drew Adams
2010-08-16  3:01                             ` Eli Zaretskii
2010-08-16  3:42                     ` Stephen J. Turnbull
2010-08-16  5:23                       ` Eli Zaretskii
2010-08-16  6:10                         ` Stephen J. Turnbull
2010-08-16  8:11                           ` Manoj Srivastava
2010-08-16  8:25                             ` Miles Bader
2010-08-16  9:31                               ` Manoj Srivastava
2010-08-16  9:50                                 ` Miles Bader
2010-08-16 11:27                                   ` David Kastrup
2010-08-16 11:38                                     ` Jan Djärv
2010-08-14 22:43               ` Eli Zaretskii
2010-08-14 17:39             ` Jan Djärv
2010-08-14 21:52             ` Chong Yidong
2010-08-14 22:49               ` Eli Zaretskii
2010-08-15  1:11                 ` Miles Bader
2010-08-15  2:57                   ` Eli Zaretskii
2010-08-15 15:05                     ` Chong Yidong
2010-08-15 15:14                       ` Eli Zaretskii
2010-08-16  2:35                         ` Chong Yidong
2010-08-16  2:50                           ` David Kastrup
2010-08-16  3:05                             ` Eli Zaretskii
2010-08-16  7:07                               ` David Kastrup
2010-08-16  8:57                                 ` Jan Djärv
2010-08-16  9:18                                 ` Eli Zaretskii
2010-08-16  9:28                                   ` Miles Bader
2010-08-16  6:53                             ` Jan Djärv
2010-08-16  7:09                               ` David Kastrup
2010-08-16  8:52                                 ` Jan Djärv
2010-08-15  4:48                   ` Drew Adams
2010-08-15  5:31                     ` Miles Bader
2010-08-15  6:06                     ` Eli Zaretskii
2010-08-15 14:04                   ` Stephen J. Turnbull
2010-08-15 15:20                     ` Eli Zaretskii
2010-08-15 17:27                       ` David De La Harpe Golden
2010-08-15 17:59                         ` Eli Zaretskii
2010-08-15 19:50                           ` David De La Harpe Golden [this message]
2010-08-15 20:19                             ` Eli Zaretskii
2010-08-15 20:40                               ` David De La Harpe Golden
2010-08-15 21:13                                 ` Eli Zaretskii
2010-08-15 21:42                                   ` David De La Harpe Golden
2010-08-15 22:55                                     ` Drew Adams
2010-08-16  3:09                                     ` Eli Zaretskii
2010-08-15 16:57                     ` David De La Harpe Golden
2010-08-15 19:19                   ` James Cloos
2010-08-16 11:06                   ` Stefan Monnier
2010-08-15  4:48               ` Drew Adams
2010-08-15  6:01                 ` Eli Zaretskii
2010-08-15  7:19                   ` Jan Djärv
2010-08-15  8:26                     ` Miles Bader
2010-08-15  9:27                     ` Eli Zaretskii
2010-08-15 10:25                       ` Jan Djärv
2010-08-15 12:48                         ` David De La Harpe Golden
2010-08-15  7:22                   ` Thierry Volpiatto
2010-08-15  9:30                     ` Eli Zaretskii
2010-08-16 11:03               ` Stefan Monnier
2010-08-16 11:17                 ` Eli Zaretskii
2010-08-16 13:47                   ` Stefan Monnier
2010-08-16 19:00                     ` Eli Zaretskii
2010-08-16 22:44                       ` Stefan Monnier
2010-08-17  2:43                         ` Stephen J. Turnbull
2010-08-17  7:10                           ` Eli Zaretskii
2010-08-17  2:56                         ` Eli Zaretskii
2010-08-17 15:12                           ` Chong Yidong
2010-08-17 15:39                             ` Miles Bader
2010-08-17 16:10                               ` Miles Bader
2010-08-17 16:45                             ` Eli Zaretskii
2010-08-17 16:50                               ` Miles Bader
2010-08-17 18:14                                 ` Eli Zaretskii
2010-08-17 21:07                                   ` David De La Harpe Golden
2010-08-17 21:35                             ` David De La Harpe Golden
2010-08-18  2:12                               ` Miles Bader
2010-08-18 22:28                             ` James Cloos
2010-08-14 12:28     ` Johan Bockgård
2010-08-14 12:58       ` Eli Zaretskii
2010-08-14 15:59     ` Eli Zaretskii
2010-08-14 18:49       ` David De La Harpe Golden
2010-08-14 18:54         ` David De La Harpe Golden
2010-08-14 22:23         ` Eli Zaretskii
2010-08-14 22:39           ` 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=4C6844FF.80602@harpegolden.net \
    --to=david@harpegolden.net \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=miles@gnu.org \
    --cc=stephen@xemacs.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).