From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: Emacs learning curve Date: Sun, 11 Jul 2010 18:49:03 -0400 Message-ID: <87d3utws68.fsf@stupidchicken.com> References: <10954D02-E217-49F3-8824-757DA34074AB@gmail.com> <83zkxzakr0.fsf@gnu.org> <83pqyva8ms.fsf@gnu.org> <87630n6odf.fsf@lola.goethe.zz> <874og670l0.fsf@gmx.de> <87k4p257ho.fsf@mail.jurta.org> <87fwzqyn4j.fsf@catnip.gol.com> <878w5igcto.fsf@stupidchicken.com> <4C3A069D.2000804@harpegolden.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1278888564 22047 80.91.229.12 (11 Jul 2010 22:49:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 11 Jul 2010 22:49:24 +0000 (UTC) Cc: Juri Linkov , Sebastian Rose , emacs-devel@gnu.org, Tom , Miles Bader To: David De La Harpe Golden Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 12 00:49:22 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 1OY5Kr-0008P7-8p for ged-emacs-devel@m.gmane.org; Mon, 12 Jul 2010 00:49:21 +0200 Original-Received: from localhost ([127.0.0.1]:57615 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OY5Kq-0002Tx-S2 for ged-emacs-devel@m.gmane.org; Sun, 11 Jul 2010 18:49:20 -0400 Original-Received: from [140.186.70.92] (port=59326 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OY5Kj-0002Ts-Gi for emacs-devel@gnu.org; Sun, 11 Jul 2010 18:49:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OY5Kh-0002Yz-CJ for emacs-devel@gnu.org; Sun, 11 Jul 2010 18:49:13 -0400 Original-Received: from pantheon-po45.its.yale.edu ([130.132.50.79]:50545) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OY5Kf-0002Ye-IU; Sun, 11 Jul 2010 18:49:09 -0400 Original-Received: from furry (173-14-147-246-NewEngland.hfc.comcastbusiness.net [173.14.147.246]) (authenticated bits=0) by pantheon-po45.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o6BMn4WX016098 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 11 Jul 2010 18:49:04 -0400 Original-Received: by furry (Postfix, from userid 1000) id F34ABC011; Sun, 11 Jul 2010 18:49:03 -0400 (EDT) In-Reply-To: <4C3A069D.2000804@harpegolden.net> (David De La Harpe Golden's message of "Sun, 11 Jul 2010 18:59:57 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 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:127071 Archived-At: David De La Harpe Golden writes: >> Thanks for reminding me: is there any reason x-select-enable-clipboard >> isn't t by default? > > Because it will do an incredibly annoying thing unless you also > reconfigure certain other settings: > > If you want emacs cut and paste to act like other recent X11 apps: > > (setq mouse-drag-copy-region nil) > (setq x-select-enable-primary nil > (setq x-select-enable-clipboard to t) > (setq select-active-regions to t) > (global-set-key [mouse-2] 'mouse-yank-primary) Yes, this is what I have in mind. I remember that we postphoned these changes during Emacs 23, because not all the necessary code was in place at the time. To summarize: C-w and M-w should copy to the clipboard and set the primary in addition to updating the kill-ring. shift-selection and mouse-dragging should set/update the primary, leaving the clipboard and the kill-ring alone. mouse-2 should yank the primary. The main downside, IIRC, is that some users may not want C-w in Emacs to clobber the clipboard. I can understand how this may be a concern, since the Emacs kill-ring is much more flexible than the clipboard. But this seems to be something for advanced users to worry about; for the default, we ought to stick close to X11 "standards").