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 11:14:36 -0400 Message-ID: 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> <8339ugu7vt.fsf@gnu.org> <87lj881xzf.fsf@catnip.gol.com> <83y6c8shuy.fsf@gnu.org> <87bp93sypi.fsf@stupidchicken.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1281885290 20952 80.91.229.12 (15 Aug 2010 15:14:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 15 Aug 2010 15:14:50 +0000 (UTC) Cc: emacs-devel@gnu.org, miles@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 15 17:14:49 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 1Okev6-0000jA-Sm for ged-emacs-devel@m.gmane.org; Sun, 15 Aug 2010 17:14:45 +0200 Original-Received: from localhost ([127.0.0.1]:33537 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Okev6-0007gi-4X for ged-emacs-devel@m.gmane.org; Sun, 15 Aug 2010 11:14:44 -0400 Original-Received: from [199.232.76.173] (port=37025 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Okev0-0007gd-MQ for emacs-devel@gnu.org; Sun, 15 Aug 2010 11:14:38 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Okeuz-0003jt-KK for emacs-devel@gnu.org; Sun, 15 Aug 2010 11:14:38 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:47144) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Okeuz-0003jo-Dk for emacs-devel@gnu.org; Sun, 15 Aug 2010 11:14:37 -0400 Original-Received: from eliz by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1Okeuy-0002x5-7u; Sun, 15 Aug 2010 11:14:36 -0400 In-reply-to: <87bp93sypi.fsf@stupidchicken.com> (message from Chong Yidong on Sun, 15 Aug 2010 11:05:45 -0400) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:128742 Archived-At: > From: Chong Yidong > Cc: Miles Bader , emacs-devel@gnu.org > Date: Sun, 15 Aug 2010 11:05:45 -0400 > > >> If you _see_ a selected region in Emacs (no matter how it was > >> selected), it's available as the primary for pasting in other apps. > > > > That's something I had in mid, too, so I very much agree. > > It's a convincing argument, leaving the issue of efficiency aside for > the moment. The rule, however, should be something like: > > >> If you _change_ a selected region in Emacs (no matter how it was > >> selected), it's available as the primary. > > That's because if you make a selected region in one application, and > then select some text in a second application, the second application > grabs primary. But this is a norm on X, isn't it? Primary selection is ephemeral; if you want more persistence, you should use the clipboard. Right? Why should Emacs behave differently? > Anyway, we can give this a try as the default. Yes, let's do it! > Instead of "lazy" setting, we can provide an optional (non-default) > value of select-active-regions, where only shift-selection and > mouse-dragging sets primary, while C-SPC + motion does not. Yes, except that C-SPC+motion _should_ do it when transient-mark-mode is on (which it is, by default).