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: Improving X selection? Date: Thu, 7 Feb 2008 18:07:53 +0000 Message-ID: <8e24944a0802071007u7a6a6d3cl9e98f93489fa8f1e@mail.gmail.com> References: <8e24944a0802030338i1ce3397yba581ffedbe2f118@mail.gmail.com> <47A5B737.8000804@swipnet.se> <8e24944a0802030512t77c4ca20s6d059df50295ebd2@mail.gmail.com> <8e24944a0802041302n45064c4fm2ac428ceda204254@mail.gmail.com> <47A80B57.3050402@swipnet.se> <8e24944a0802061957re4baf7cr9560fa3496be56b4@mail.gmail.com> <8e24944a0802070815n18dea273j5c3962235d91ca8e@mail.gmail.com> <87bq6sir34.fsf@uwakimon.sk.tsukuba.ac.jp> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1202407766 13546 80.91.229.12 (7 Feb 2008 18:09:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 Feb 2008 18:09:26 +0000 (UTC) Cc: "Horsley, Tom" , "Jan D." , emacs-devel@gnu.org, Stefan Monnier , rms@gnu.org To: "Stephen J. Turnbull" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 07 19:09:48 2008 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.50) id 1JNBAj-0000e2-SX for ged-emacs-devel@m.gmane.org; Thu, 07 Feb 2008 19:08:30 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JNBAH-00040J-9y for ged-emacs-devel@m.gmane.org; Thu, 07 Feb 2008 13:08:01 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JNBAC-0003zQ-JT for emacs-devel@gnu.org; Thu, 07 Feb 2008 13:07:56 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JNBAB-0003yu-4h for emacs-devel@gnu.org; Thu, 07 Feb 2008 13:07:56 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JNBAA-0003yr-V1 for emacs-devel@gnu.org; Thu, 07 Feb 2008 13:07:54 -0500 Original-Received: from rn-out-0910.google.com ([64.233.170.185]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JNBAA-0004It-Ij for emacs-devel@gnu.org; Thu, 07 Feb 2008 13:07:54 -0500 Original-Received: by rn-out-0910.google.com with SMTP id e11so1673389rng.0 for ; Thu, 07 Feb 2008 10:07:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=YZ2BvFb/4s352neRwVJIj2xYuL401Dit/+Vbx9bTa3Y=; b=aottuq1q0QcsVVAOZKwJAEjZ9zCtqICmQHvxgGzN/sCR+sU6945CS7kKv+LbF/N+9nO45xlLwm8WEZYZyXbN4rXdRMs36xYDs/aGOumz2h6ojfx7UQOQw6kua0cpB/uRJFHP1nFQ/yFiZBtPENE5PhbXuGjwhzAfTDx7J8w0AXU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=MYo/VsODlRlvURQNhcX3gZJ91Nv3E9xlsk5S40qTjGh2Kvly56/bBesBvA8tN4jSa9i4pvarmtEKTgPfRgl2+L2wzLtj42jHVtUjB+lDmUnJewguuemP4IhWVNKj58HSoQIn1nmnhDpcB9VhhIiPl9+5vXgGrUrFrNU3k9U/lgs= Original-Received: by 10.142.215.5 with SMTP id n5mr2075522wfg.161.1202407673160; Thu, 07 Feb 2008 10:07:53 -0800 (PST) Original-Received: by 10.142.111.4 with HTTP; Thu, 7 Feb 2008 10:07:53 -0800 (PST) In-Reply-To: <87bq6sir34.fsf@uwakimon.sk.tsukuba.ac.jp> Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 (Google crawlbot) 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:88442 Archived-At: On 07/02/2008, Stephen J. Turnbull wrote: > How does middle-button *affect* clipboard and/or kill-ring? Do you > mean something like "consult"? > Consult clipboard, affect kill ring. With existing emacs unpatched mouse-yank-at-click, the kill-ring is affected (since the yank uses current-kill which uses the interprogram-paste-function, potentially /pushing onto/ kill ring.) As I realised some users probably like middle-button inserted text being subsequently available on the kill ring (it is after all current emacs behaviour!), I allowed two ways for mouse-yank-at-click to work. If mouse-yank-at-click-source is yank, then a kill-ring yank (and thereby current-kill and interprogram-paste-function) is used, and if it is lightins, then the interpgroam-lightins-function is used and the kill ring is not touched. With the extended x-select-enable-clipboard and x-select-enable-primary, it is possible to specify whether clipboard or primary or both should be pulled in with (the X11 implementations of) interprogram-paste-function or interprogram-lightins-function. This allows both all historic emacs customizations and intended behaviour.