From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Selection changes in revno 100822 Date: Sun, 15 Aug 2010 01:49:58 +0300 Message-ID: <8339ugu7vt.fsf@gnu.org> 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> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1281826333 16061 80.91.229.12 (14 Aug 2010 22:52:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 14 Aug 2010 22:52:13 +0000 (UTC) Cc: jan.h.d@swipnet.se, emacs-devel@gnu.org, david@harpegolden.net To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 15 00:52:11 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 1OkPaF-0001dB-Bn for ged-emacs-devel@m.gmane.org; Sun, 15 Aug 2010 00:52:11 +0200 Original-Received: from localhost ([127.0.0.1]:39154 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OkPaE-0000IU-J6 for ged-emacs-devel@m.gmane.org; Sat, 14 Aug 2010 18:52:10 -0400 Original-Received: from [140.186.70.92] (port=41627 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OkPa7-0000HI-NK for emacs-devel@gnu.org; Sat, 14 Aug 2010 18:52:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OkPa6-0007KU-F0 for emacs-devel@gnu.org; Sat, 14 Aug 2010 18:52:03 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:63588) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OkPa6-0007KL-6J for emacs-devel@gnu.org; Sat, 14 Aug 2010 18:52:02 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0L7500200Z1LYH00@a-mtaout21.012.net.il> for emacs-devel@gnu.org; Sun, 15 Aug 2010 01:52:00 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([77.126.102.143]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L75002W6ZINSX80@a-mtaout21.012.net.il>; Sun, 15 Aug 2010 01:52:00 +0300 (IDT) In-reply-to: <87wrrs276x.fsf@stupidchicken.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) 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:128712 Archived-At: > From: Chong Yidong > Cc: David De La Harpe Golden , jan.h.d@swipnet.se, > emacs-devel@gnu.org > Date: Sat, 14 Aug 2010 17:52:22 -0400 > > Eli Zaretskii writes: > > > May I suggest to step back and post a clear set of requirements for > > when Emacs should and shouldn't put selected text into the primary > > selection and into the clipboard? Forget the w32 case for now; let's > > just spell out the requirements for X. > > Here is a summary of the current scheme: > > 1. Each time the mark is deactivated, the selected text is added to > the primary selection. If deactivation occurs as a result of a buffer > modification, the text that is added is the text in the region prior > to the modification. > > 2. If the region is temporarily active after a command (e.g. after a > mouse drag or shift selection), the selected text is added to the > primary selection, even if the mark is not deactivated. > > 3. If you deactivate the mark with C-g, the selected text is not added > to the primary selection. This is not the level on which I wanted to discuss this. You are describing the behavior in terms of deactivating the mark, which is an implementation detail. I'm sure you have a very clear idea when the mark gets deactivated, but my idea about that is somewhat vague, and I'm quite sure many users have no idea at all about that. >From the user's perspective, there are several ways of selecting text: with C-SPS (with or without transient-mark-mode), with shift-selection, and with the mouse. Let's talk on this level: which methods should set the primary and which shouldn't, and why?