From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Newsgroups: gmane.emacs.bugs Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? Date: Tue, 17 Aug 2010 10:24:16 +0200 Message-ID: <4C6A4730.5090609@swipnet.se> References: <4C55EF50.3080100@alice.it> <4C573A2A.3030007@harpegolden.net> <8762zphkaw.fsf@stupidchicken.com> <4C5B4E28.4090808@harpegolden.net> <87fwyr3glm.fsf@stupidchicken.com> <4C5C7915.7080407@harpegolden.net> <87hbj6jj7o.fsf@stupidchicken.com> <4C5DE6C7.5080706@harpegolden.net> <87vd7kcx52.fsf@stupidchicken.com> <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=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1282034351 11667 80.91.229.12 (17 Aug 2010 08:39:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 17 Aug 2010 08:39:11 +0000 (UTC) Cc: cyd@stupidchicken.com, 6774@debbugs.gnu.org, angelo.graziosi@alice.it To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 17 10:39:03 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 1OlHhF-0008HC-1z for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Aug 2010 10:39:01 +0200 Original-Received: from localhost ([127.0.0.1]:57631 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OlHhD-0003qX-Vn for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Aug 2010 04:39:00 -0400 Original-Received: from [140.186.70.92] (port=46389 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OlHh7-0003qP-Fd for bug-gnu-emacs@gnu.org; Tue, 17 Aug 2010 04:38:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OlHh5-0007SL-Pe for bug-gnu-emacs@gnu.org; Tue, 17 Aug 2010 04:38:53 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51478) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OlHh5-0007SH-N3 for bug-gnu-emacs@gnu.org; Tue, 17 Aug 2010 04:38:51 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OlHSj-0002G8-KV; Tue, 17 Aug 2010 04:24:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 Aug 2010 08:24:01 +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.12820334008676 (code B ref 6774); Tue, 17 Aug 2010 08:24:01 +0000 Original-Received: (at 6774) by debbugs.gnu.org; 17 Aug 2010 08:23:20 +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 1OlHS4-0002Ft-1z for submit@debbugs.gnu.org; Tue, 17 Aug 2010 04:23:20 -0400 Original-Received: from smtprelay-h32.telenor.se ([213.150.131.5]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OlHS1-0002Fo-Lt for 6774@debbugs.gnu.org; Tue, 17 Aug 2010 04:23:18 -0400 Original-Received: from ipb3.telenor.se (ipb3.telenor.se [195.54.127.166]) by smtprelay-h32.telenor.se (Postfix) with ESMTP id 3EE95E8DA3 for <6774@debbugs.gnu.org>; Tue, 17 Aug 2010 10:24:18 +0200 (CEST) X-SENDER-IP: [85.225.45.35] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnI3ADrkaUxV4S0jPGdsb2JhbACDFYRSmFMMAQEBATUtqlmSRIEigyJzBA X-IronPort-AV: E=Sophos;i="4.55,381,1278280800"; d="scan'208";a="562591842" Original-Received: from c-232de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.35]) by ipb3.telenor.se with ESMTP; 17 Aug 2010 10:24:17 +0200 Original-Received: from [172.20.199.2] (gaffa [172.20.199.2]) by coolsville.localdomain (Postfix) with ESMTP id 75F3A7FA05A; Tue, 17 Aug 2010 10:24:16 +0200 (CEST) User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6 In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 17 Aug 2010 04:24:01 -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:39562 Archived-At: 2010-08-17 09:17, Eli Zaretskii skrev: >> Date: Tue, 17 Aug 2010 07:52:19 +0200 >> From: Jan Dj=C3=A4rv >> Cc: cyd@stupidchicken.com, 6774@debbugs.gnu.org, angelo.graziosi@alice= .it >> >> I think we should add a hook to redisplay that gets called whenever >> selection is non-zero. Then that hook can do the right thing. > > What do you mean by "selection is non-zero"? Does it mean that region > should be highlighted during this redisplay cycle? Or does it mean > something else? > > And when do you want the hook to be called? at the end of redisplay? > at the beginning? in the middle? It was said that only redisplay knows if the regions is non-empty and=20 hightlighted. Called where it is appropriate, I haven't looked at it in=20 detail yet. I guess at the end. The conditions are something like 1. The region is different from previous redisplay. 2. The region is not empty. 3. The region is hightlighted. > > And why a hook? do we want to do in that hook anything except set some > selection, like PRIMARY? If we only want to set a selection, we can > do that directly. Yes, but given all the variables that can influence what to do, I just th= ought=20 it better to hand it off out of redisplay. Jan D.