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: Mon, 28 Jan 2008 19:52:59 +0000 Message-ID: <8e24944a0801281152w733c977akda93089a52701219@mail.gmail.com> References: <8e24944a0710161629r1ec1afadj60352dc92c264217@mail.gmail.com> 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 1201550002 20275 80.91.229.12 (28 Jan 2008 19:53:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Jan 2008 19:53:22 +0000 (UTC) To: rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 28 20:53:43 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 1JJa2w-0007zM-PY for ged-emacs-devel@m.gmane.org; Mon, 28 Jan 2008 20:53:35 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JJa2V-000863-Vm for ged-emacs-devel@m.gmane.org; Mon, 28 Jan 2008 14:53:08 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JJa2S-00084T-19 for emacs-devel@gnu.org; Mon, 28 Jan 2008 14:53:04 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JJa2P-00081d-L5 for emacs-devel@gnu.org; Mon, 28 Jan 2008 14:53:02 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JJa2P-00081X-IS for emacs-devel@gnu.org; Mon, 28 Jan 2008 14:53:01 -0500 Original-Received: from el-out-1112.google.com ([209.85.162.183]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JJa2P-0001se-BQ for emacs-devel@gnu.org; Mon, 28 Jan 2008 14:53:01 -0500 Original-Received: by el-out-1112.google.com with SMTP id m34so319434ele.10 for ; Mon, 28 Jan 2008 11:53:00 -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:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=Rg1+7NVxK24ij1bRAdzlLP5w7dBk1cFXWaX1UKrZVpk=; b=PeHoSZ4OCBwLNfC0ej02NwTW06FXY9acSmQB/IvMcn7bD8tNxvPqVbYmJkArC51w1uQ2RwJtIIbW04Bm6UfDUETEGxWtmM7RSMxk2uKlsYtI7eqTdRMaRv1iOPR/QG85djgu/6KBxEeb/WQSfxIQXeYA70ZCiKDn/Hu9tLijw/w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=TTUjtAISjgji8gBNlYksxkmDoW9zS6sq9ZnRkqe38SW7Cqzx6zRCXd7+/8PjVqysnMCgpdALTP0ciB47djn3DGLhLLGf3xGlJkp0EReIFcKMCTATCRQTxCKnWl//aMaOp9jJY91fP5EVM+CTb8nofwhFxXqFkslhrbPDoSY2Ry4= Original-Received: by 10.142.90.8 with SMTP id n8mr2654071wfb.84.1201549979345; Mon, 28 Jan 2008 11:52:59 -0800 (PST) Original-Received: by 10.142.111.4 with HTTP; Mon, 28 Jan 2008 11:52:59 -0800 (PST) In-Reply-To: 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:87723 Archived-At: On 25/12/2007, Richard Stallman wrote: > Please forgive the delay in this response. It was not easy for me to > read and understand your message, and I was rather rushed when it > arrived, so I put it off. Now I have more time. > Thanks for applying the changes, and argh, in turn, please forgive me! I don't like the strange gmail web interface (particularly when applied to a high-traffic lists...l), only just found your reply :-( > If I understand right, your scheme is that mouse clicks should set > and access the primary selection, but not the kill ring or the clipboard; > meanwhile, the kill ring keystroke commands should access the clipboard > in parallel with the kill ring. > Did I understand correctly? > Essentially, but see *** about setting of the primary selection. > I would not be entirely happy with that, because I would rather have > some way to interact with the primary selection from the keyboard. *** Well, indeed. In part 3 of the hack, where I used activate-mark-hook (used in transient-mark-mode), by the description of activate-mark-hook, I was expecting activate-mark-hook to be called and therefore primary to be set whenever the mouse IOR the keyboard was used to set or adjust the active region and transient-mark-mode was on, but it doesn't seem to quite work as intended (not sure as yet whether that's my fault or a bug, should investigate further I guess). If it were working as I expected, it would reflect the behaviour of other recent X11 applications, where using the keyboard to highlight sets primary just like using the mouse does. I realise you're probably not using transient-mark-mode, though. But if x-select-enable-primary is non-nil, then x-select-text* propagates back out to primary, so you can still affect primary from the keyboard if you want, just use different settings. Even more flexibility (and potential for confusion...) might be to have 4 (6? - secondary :-) separate x-select-enable-[primary|clipboard]-for-[cut|paste] settings, in case people want things squirted out to primary but not sucked in from it and so on.