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.bugs Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? Date: Fri, 06 Aug 2010 00:50:00 +0100 Message-ID: <4C5B4E28.4090808@harpegolden.net> References: <4C55EF50.3080100@alice.it> <4C5645A1.7000500@harpegolden.net> <87y6coby49.fsf@stupidchicken.com> <4C572AE6.7070104@harpegolden.net> <87wrs8ohnp.fsf@stupidchicken.com> <4C573A2A.3030007@harpegolden.net> <8762zphkaw.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1281053304 26865 80.91.229.12 (6 Aug 2010 00:08:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 6 Aug 2010 00:08:24 +0000 (UTC) Cc: 6774@debbugs.gnu.org, Angelo Graziosi To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 06 02:08:23 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1OhAU2-0004gu-Ky for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 Aug 2010 02:08:22 +0200 Original-Received: from localhost ([127.0.0.1]:38146 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OhAU1-000087-TM for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Aug 2010 20:08:21 -0400 Original-Received: from [140.186.70.92] (port=49799 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OhATt-00005N-3O for bug-gnu-emacs@gnu.org; Thu, 05 Aug 2010 20:08:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OhATr-0003PV-Tj for bug-gnu-emacs@gnu.org; Thu, 05 Aug 2010 20:08:12 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35565) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OhATr-0003PO-Qx for bug-gnu-emacs@gnu.org; Thu, 05 Aug 2010 20:08:11 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OhACJ-0006rs-6W; Thu, 05 Aug 2010 19:50:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: David De La Harpe Golden Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Aug 2010 23:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6774 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.128105217226385 (code B ref 6774); Thu, 05 Aug 2010 23:50:02 +0000 Original-Received: (at 6774) by debbugs.gnu.org; 5 Aug 2010 23:49:32 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OhABo-0006rW-CZ for submit@debbugs.gnu.org; Thu, 05 Aug 2010 19:49:32 -0400 Original-Received: from harpegolden.net ([65.99.215.13]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OhABn-0006rR-8A for 6774@debbugs.gnu.org; Thu, 05 Aug 2010 19:49:31 -0400 Original-Received: from [87.198.55.108] (87-198-55-108.ptr.magnet.ie [87.198.55.108]) (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 ESMTPSA id 78F4068474; Fri, 6 Aug 2010 00:49:59 +0100 (IST) User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100620 Icedove/3.0.5 In-Reply-To: <8762zphkaw.fsf@stupidchicken.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 05 Aug 2010 19:50:03 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:39272 Archived-At: On 05/08/10 03:20, Chong Yidong wrote: > > It would be nice to leave boring selections alone, > but it doesn't seem worth it if a lot of new infrastructure > has to be added to handle this. > Well, complexity mostly arose from doing it while preserving vestiges of the existing lazy approach. Yes, the laziness seemed elegant, but I'm concerned it's a dead end - it may be easier to get everything right by starting out by setting the selection to a string when we want it set to something new, and not setting it when we don't (thereby preventing the select_window problems by not doing anything). That would also mean the w32/ns select layers would need less work. Then, [re-]reducing consing would be a desirable performance-enhancing optimization, but could still be approached via a lazy span reference into a buffer that gets stringified at pre-modification or when/if (os) selection servicing asks for it, only with the span acting as more of a drop-in replacement for the strings the selection is being set to in part 1, rather than being directly related to the mark/point.