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, 18 Aug 2008 19:47:46 +0100 Message-ID: <48A9C3D2.5050408@harpegolden.net> References: <20071012105022.6c8b174a@tweety> <874pgtfw1y.fsf@jbms.ath.cx> <4713067D.2060504@swipnet.se> <87fy0cdvr6.fsf@jbms.ath.cx> <471467FF.5070005@swipnet.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1219085516 22586 80.91.229.12 (18 Aug 2008 18:51:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Aug 2008 18:51:56 +0000 (UTC) Cc: tom.horsley@ccur.com, rms@gnu.org, emacs-devel@gnu.org, Stefan Monnier , =?ISO-8859-1?Q?Jan_Dj=E4rv?= , Jeremy Maitin-Shepard To: =?ISO-8859-1?Q?Ren=E9_Kyllingstad?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 18 20:52: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 1KV9qR-0007J6-Kf for ged-emacs-devel@m.gmane.org; Mon, 18 Aug 2008 20:52:48 +0200 Original-Received: from localhost ([127.0.0.1]:50619 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KV9pU-00080E-F8 for ged-emacs-devel@m.gmane.org; Mon, 18 Aug 2008 14:51:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KV9lm-0006YB-Qs for emacs-devel@gnu.org; Mon, 18 Aug 2008 14:47:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KV9ll-0006XJ-4B for emacs-devel@gnu.org; Mon, 18 Aug 2008 14:47:58 -0400 Original-Received: from [199.232.76.173] (port=33977 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KV9lk-0006XE-Ua for emacs-devel@gnu.org; Mon, 18 Aug 2008 14:47:57 -0400 Original-Received: from harpegolden.net ([65.99.215.13]:54078) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KV9lf-0000TI-Gh; Mon, 18 Aug 2008 14:47:51 -0400 Original-Received: from golden1.harpegolden.net (unknown [86.45.11.81]) (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 ESMTP id 950508176; Mon, 18 Aug 2008 19:47:48 +0100 (IST) User-Agent: Mozilla-Thunderbird 2.0.0.16 (X11/20080724) In-Reply-To: X-Enigmail-Version: 0.95.0 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:102604 Archived-At: Ren=E9 Kyllingstad wrote: > * Stefan Monnier: >>> Please ignore this if it's already been hammered to death, but what >>> about using C-Insert/Shift-Insert for the clipboard? >> =20 >> That would make a lot of sense to me, >=20 > I guess you're waiting for a patch. Would anyone who has assigned > copyrights be willing to do this? >=20 Context: Emacs already binds S-delete/C-insert/S-insert. Though AFAIK they do the same thing - including affecting the same X selection(s) - as C-w/M-w/C-y (or C-x/C-c/C-v in CUA mode) Now, I guess what was meant was C-w/M-w/C-y to interact with PRIMARY X Selection and emacs kill-ring and S-Delete/C-Insert/S-Insert to interact with CLIPBOARD X Selection and emacs kill-ring. It'd be yet another peculiar emacs cut/copy/paste thing, still not meeting fd.o-accustomed user expectations, though at least allowing separate handling of primary and clipboard without involving menu/toolbar= . Not exactly hard to do, mind. If x-select-enable-primary is globally t , and x-select-enable-clipboard is globally nil (IIRC the defaults, so that C-w/M-w/C-y affect PRIMARY), then the following achieves it - (global-set-key [S-delete] 'clipboard-kill-region) (global-set-key [C-insert] 'clipboard-kill-ring-save) (global-set-key [S-insert] 'clipboard-yank) [in-tree, it'd need to be changed in bindings.el and maybe s-region.el and maybe emulation/pc-select.el ] It's definitely kind of handy, but IMO not as handy as my patch. But I would say that :-) It'd also be mildly backward-incompatible (unless complicated by allowing customization I guess), though I would guess virtually no-one would mind. [Yes, I know we are in feature-freeze...]