From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David De La Harpe Golden Newsgroups: gmane.emacs.devel Subject: Re: Selection changes in revno 100822 Date: Sun, 15 Aug 2010 20:50:23 +0100 Message-ID: <4C6844FF.80602@harpegolden.net> References: <834oeyv3ww.fsf@gnu.org> <87mxsqyp98.fsf@stupidchicken.com> <83zkwptyij.fsf@gnu.org> <4C66660D.3090603@swipnet.se> <83sk2htp82.fsf@gnu.org> <4C66A8C5.4040203@harpegolden.net> <83hbixte8c.fsf@gnu.org> <87wrrs276x.fsf@stupidchicken.com> <8339ugu7vt.fsf@gnu.org> <87lj881xzf.fsf@catnip.gol.com> <871va0rmzp.fsf@uwakimon.sk.tsukuba.ac.jp> <4C682389.8030807@harpegolden.net> <83vd7bsqn6.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1281905396 10158 80.91.229.12 (15 Aug 2010 20:49:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 15 Aug 2010 20:49:56 +0000 (UTC) Cc: stephen@xemacs.org, miles@gnu.org, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 15 22:49:53 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Okk9N-0002zJ-AC for ged-emacs-devel@m.gmane.org; Sun, 15 Aug 2010 22:49:53 +0200 Original-Received: from localhost ([127.0.0.1]:59183 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OkjuQ-0007Rx-65 for ged-emacs-devel@m.gmane.org; Sun, 15 Aug 2010 16:34:22 -0400 Original-Received: from [140.186.70.92] (port=56145 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OkjmE-0002C0-9d for emacs-devel@gnu.org; Sun, 15 Aug 2010 16:25:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OkjDw-0000RK-0z for emacs-devel@gnu.org; Sun, 15 Aug 2010 15:50:30 -0400 Original-Received: from harpegolden.net ([65.99.215.13]:45096) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OkjDu-0000Qr-DV; Sun, 15 Aug 2010 15:50:26 -0400 Original-Received: from [87.198.55.170] (87-198-55-170.ptr.magnet.ie [87.198.55.170]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "David De La Harpe Golden", Issuer "David De La Harpe Golden Personal CA rev 3" (verified OK)) by harpegolden.net (Postfix) with ESMTPSA id 0603A683AB; Sun, 15 Aug 2010 20:50:20 +0100 (IST) User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100620 Icedove/3.0.5 In-Reply-To: <83vd7bsqn6.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:128751 Archived-At: On 15/08/10 18:59, Eli Zaretskii wrote: >> Date: Sun, 15 Aug 2010 18:27:37 +0100 >> From: David De La Harpe Golden >> CC: "Stephen J. Turnbull", 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" To: "Stefan Monnier" Subject: Re: Improving X selection? Cc: "Horsley, Tom" , "Stephen J. Turnbull" , "Jan D." , rms@gnu.org, emacs-devel@gnu.org In-Reply-To: