From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? Date: Wed, 18 Aug 2010 09:24:32 +0200 Message-ID: References: <4C55EF50.3080100@alice.it> <4C6038B9.1090508@swipnet.se> <4C615BB9.8030905@swipnet.se> <4C61938B.5080302@swipnet.se> <4C68FBF7.1080104@swipnet.se> <4C6A2393.9030309@swipnet.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1282117156 16893 80.91.229.12 (18 Aug 2010 07:39:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 18 Aug 2010 07:39:16 +0000 (UTC) Cc: cyd@stupidchicken.com, 6774@debbugs.gnu.org, angelo.graziosi@alice.it To: Kenichi Handa Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 18 09:39:14 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 1OldEu-0007Ke-1M for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Aug 2010 09:39:12 +0200 Original-Received: from localhost ([127.0.0.1]:59243 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OldEt-0006bI-9v for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Aug 2010 03:39:11 -0400 Original-Received: from [140.186.70.92] (port=47523 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OldEg-0006Z7-Q4 for bug-gnu-emacs@gnu.org; Wed, 18 Aug 2010 03:39:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OldEf-0006t1-8c for bug-gnu-emacs@gnu.org; Wed, 18 Aug 2010 03:38:58 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54387) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OldEf-0006sx-3H for bug-gnu-emacs@gnu.org; Wed, 18 Aug 2010 03:38:57 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Old0E-0007s9-6H; Wed, 18 Aug 2010 03:24:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Aug 2010 07:24: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.128211622430245 (code B ref 6774); Wed, 18 Aug 2010 07:24:02 +0000 Original-Received: (at 6774) by debbugs.gnu.org; 18 Aug 2010 07:23:44 +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 1Olczw-0007rm-Fm for submit@debbugs.gnu.org; Wed, 18 Aug 2010 03:23:44 -0400 Original-Received: from impaqm3.telefonica.net ([213.4.138.3]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Olczh-0007rT-TO for 6774@debbugs.gnu.org; Wed, 18 Aug 2010 03:23:43 -0400 Original-Received: from IMPmailhost5.adm.correo ([10.20.102.126]) by IMPaqm3.telefonica.net with bizsmtp id vhoG1e01R2jdgqJ3PjQZTf; Wed, 18 Aug 2010 09:24:33 +0200 Original-Received: from ceviche.home ([83.61.35.93]) by IMPmailhost5.adm.correo with BIZ IMP id vjQY1e00220aCvn1ljQYvz; Wed, 18 Aug 2010 09:24:33 +0200 X-Brightmail-Tracker: AAAAAA== X-TE-authinfo: authemail="monnier$movistar.es" |auth_email="monnier@movistar.es" X-TE-AcuTerraCos: auth_cuTerraCos="cosuitnetc01" Original-Received: by ceviche.home (Postfix, from userid 20848) id 0A7FB660F0; Wed, 18 Aug 2010 09:24:32 +0200 (CEST) In-Reply-To: (Kenichi Handa's message of "Tue, 17 Aug 2010 21:57:14 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 18 Aug 2010 03:24:02 -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:39600 Archived-At: >> Because the behavior we want is that "if the user has seen the region >> highlighted, then it has been selected". > Ah, I see. You wrote: >> I just really don't want to see it implemented in >> set_point_both, and I'm not excited to seeing it in >> command_loop_1 either. > So, are you happy with seeing that in redisplay? Yes. And I'd be even much happier if it is in Elisp, via a hook that can be used for other things as well (well, the x-set-selection wouldn't be on the hook, so that the hook stays nil by default, but the redisplay code could call a (before|after)-redisplay Elisp function which can do that x-set-selection as well as run a hook). > If so, the call of x-set-selection in command_loop_1 for > handling shift-selection should also go to redisplay. Yes. > At least the current place is not good because it doesn't pay > attention to point-adjustment done after "finilize:" label. When it > is done in redisplay, that bug is automatically fixed. Exactly, Stefan