From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? Resent-From: Angelo Graziosi Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 01 Aug 2010 22:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6774 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 6774@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs Received: via spool by submit@debbugs.gnu.org id=B.128070023521843 (code B ref -1); Sun, 01 Aug 2010 22:04:02 +0000 Received: (at submit) by debbugs.gnu.org; 1 Aug 2010 22:03:55 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OfgdP-0005gF-Gj for submit@debbugs.gnu.org; Sun, 01 Aug 2010 18:03:55 -0400 Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OfgdO-0005g9-3N for submit@debbugs.gnu.org; Sun, 01 Aug 2010 18:03:54 -0400 Received: from lists.gnu.org ([199.232.76.165]:37663) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ofgdj-0003AF-9O for submit@debbugs.gnu.org; Sun, 01 Aug 2010 18:04:15 -0400 Received: from [140.186.70.92] (port=34714 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ofgdh-0005K3-Os for bug-gnu-emacs@gnu.org; Sun, 01 Aug 2010 18:04:14 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RECEIVED_FROM_WINDOWS_HOST, T_RP_MATCHES_RCVD autolearn=no version=3.3.1 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ofgdf-0001kT-W1 for bug-gnu-emacs@gnu.org; Sun, 01 Aug 2010 18:04:13 -0400 Received: from smtp207.alice.it ([82.57.200.103]:46424) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ofgdf-0001js-RI for bug-gnu-emacs@gnu.org; Sun, 01 Aug 2010 18:04:11 -0400 Received: from [82.57.168.7] (82.57.168.7) by smtp207.alice.it (8.5.124.08) id 4C1A26CF02D80E9A for bug-gnu-emacs@gnu.org; Mon, 2 Aug 2010 00:04:09 +0200 Message-ID: <4C55EF50.3080100@alice.it> Date: Mon, 02 Aug 2010 00:04:00 +0200 From: Angelo Graziosi User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.2.7) Gecko/20100713 Thunderbird/3.1.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: Windows 98 (1) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -5.1 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.4 (------) It seems that with recent trunk sources (also with the last, rev.100958), cutting with C-w and then pasting with mouse-2 does not work. To reproduce: 1. emacs -Q & 2. In the 'scratch' buffer double click on some text, 'buffer', for example. 3. Now cut it: C-w 4. Go to the bottom of the buffer and paste with mouse-2: empty! I can paste only with C-y. If at step 3. I use M-w (Copy), then pasting with mouse-2 works. The above occurs with GNU/Linux Kubuntu 10.04 and Cygwin builds (GTK) of Emacs. For example, on Kubuntu, one can cut with C-x and the paste with mouse-2 (Konqueror, Kate,...) Ciao, Angelo. From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? 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: Mon, 02 Aug 2010 04:12: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: To: Angelo Graziosi Cc: 6774@debbugs.gnu.org, Chong Yidong Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.12807223191031 (code B ref 6774); Mon, 02 Aug 2010 04:12:02 +0000 Received: (at 6774) by debbugs.gnu.org; 2 Aug 2010 04:11:59 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OfmNb-0000Ga-DX for submit@debbugs.gnu.org; Mon, 02 Aug 2010 00:11:59 -0400 Received: from harpegolden.net ([65.99.215.13]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OfmNZ-0000GT-Le for 6774@debbugs.gnu.org; Mon, 02 Aug 2010 00:11:58 -0400 Received: from [87.198.55.208] (87-198-55-208.ptr.magnet.ie [87.198.55.208]) (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 5445868474; Mon, 2 Aug 2010 05:12:16 +0100 (IST) Message-ID: <4C5645A1.7000500@harpegolden.net> Date: Mon, 02 Aug 2010 05:12:17 +0100 From: David De La Harpe Golden User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100620 Icedove/3.0.5 MIME-Version: 1.0 References: <4C55EF50.3080100@alice.it> In-Reply-To: <4C55EF50.3080100@alice.it> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.8 (--) On 01/08/10 23:04, Angelo Graziosi wrote: > It seems that with recent trunk sources (also with the last, > rev.100958), cutting with C-w and then pasting with mouse-2 does not > work. To reproduce: > > 1. emacs -Q & > > 2. In the 'scratch' buffer double click on some text, 'buffer', for > example. > > 3. Now cut it: C-w > > 4. Go to the bottom of the buffer and paste with mouse-2: empty! > > I can paste only with C-y. If at step 3. I use M-w (Copy), then pasting > with mouse-2 works. > Yes, there's a problem here - I guess emacs is keeping primary bound to a span that's become zero-length. Again. N.B. your case ideally would work in emacs much like in KDE - but emacs still has teething problems and sometimes manages to make primary a zero-length string.[this is already "fixed" in the horrible selx branch] > For example, on Kubuntu, one can cut with C-x and the paste with mouse-2 > (Konqueror, Kate,...) Not exactly - not quite what's really going on. There's a spec for how this is supposed to work, and KDE follows it.* When you have _selected_ the text in KDE before hitting C-x, it is made available as the "primary" x11 selection (referred to as "the selection" in klipper*) C-x makes the text available as the CLIPBOARD x11 selection while removing it from the body of the document. (and it's still available on PRIMARY too, where emacs fails). mouse-2 inserts what's in PRIMARY in KDE. So in KDE, try selecting more/different text, _without_ hitting C-x or C-c. This will change only PRIMARY. Hitting mouse-2 again will insert the _new_ PRIMARY. Then hitting C-v will insert the old CLIPBOARD. To update the clipboard you always have to C-x or C-c. (* though the situation is further complicated by klipper, the KDE clipboard daemon, which can be configured to do various strange things in this area, I mean KDE's out-of-box defaults). From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? References: <4C55EF50.3080100@alice.it> In-Reply-To: <4C55EF50.3080100@alice.it> Resent-From: Angelo Graziosi Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 Aug 2010 13:34: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: To: bug-gnu-emacs Received: via spool by submit@debbugs.gnu.org id=B.128075602119867 (code B ref -1); Mon, 02 Aug 2010 13:34:02 +0000 Received: (at submit) by debbugs.gnu.org; 2 Aug 2010 13:33:41 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ofv9A-0005AO-OC for submit@debbugs.gnu.org; Mon, 02 Aug 2010 09:33:41 -0400 Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ofv98-0005AJ-Ed for submit@debbugs.gnu.org; Mon, 02 Aug 2010 09:33:39 -0400 Received: from lists.gnu.org ([199.232.76.165]:48949) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ofv9V-0000FH-SM for submit@debbugs.gnu.org; Mon, 02 Aug 2010 09:34:01 -0400 Received: from [140.186.70.92] (port=55323 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ofv9U-0006tu-9r for bug-gnu-emacs@gnu.org; Mon, 02 Aug 2010 09:34:01 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RECEIVED_FROM_WINDOWS_HOST, T_RP_MATCHES_RCVD autolearn=no version=3.3.1 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ofv9T-0005NO-45 for bug-gnu-emacs@gnu.org; Mon, 02 Aug 2010 09:34:00 -0400 Received: from smtp205.alice.it ([82.57.200.101]:38416) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ofv9S-0005NB-R7 for bug-gnu-emacs@gnu.org; Mon, 02 Aug 2010 09:33:59 -0400 Received: from [82.57.152.29] (82.57.152.29) by smtp205.alice.it (8.5.124.08) id 4C1A264502E31D76 for bug-gnu-emacs@gnu.org; Mon, 2 Aug 2010 15:33:56 +0200 Message-ID: <4C56C93A.8010608@alice.it> Date: Mon, 02 Aug 2010 15:33:46 +0200 From: Angelo Graziosi User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.2.7) Gecko/20100713 Thunderbird/3.1.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: Windows 98 (1) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -6.4 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.4 (------) Il 02/08/2010 6.12, David De La Harpe Golden ha scritto: > On 01/08/10 23:04, Angelo Graziosi wrote: >> It seems that with recent trunk sources (also with the last, >> rev.100958), cutting with C-w and then pasting with mouse-2 does not >> work. To reproduce: >> >> 1. emacs -Q & >> >> 2. In the 'scratch' buffer double click on some text, 'buffer', for >> example. >> >> 3. Now cut it: C-w >> >> 4. Go to the bottom of the buffer and paste with mouse-2: empty! >> >> I can paste only with C-y. If at step 3. I use M-w (Copy), then pasting >> with mouse-2 works. >> > > Yes, there's a problem here - I guess emacs is keeping primary bound to > a span that's become zero-length. Again. > > N.B. your case ideally would work in emacs much like in KDE - but emacs > still has teething problems and sometimes manages to make primary a > zero-length string.[this is already "fixed" in the horrible selx branch] > >> For example, on Kubuntu, one can cut with C-x and the paste with mouse-2 >> (Konqueror, Kate,...) > > Not exactly - not quite what's really going on. There's a spec for how > this is supposed to work, and KDE follows it.* > > When you have _selected_ the text in KDE before hitting C-x, it is made > available as the "primary" x11 selection (referred to as "the selection" > in klipper*) > > C-x makes the text available as the CLIPBOARD x11 selection while > removing it from the body of the document. (and it's still available on > PRIMARY too, where emacs fails). > > mouse-2 inserts what's in PRIMARY in KDE. > > So in KDE, try selecting more/different text, _without_ hitting C-x or > C-c. This will change only PRIMARY. > > Hitting mouse-2 again will insert the _new_ PRIMARY. > > Then hitting C-v will insert the old CLIPBOARD. To update the clipboard > you always have to C-x or C-c. > > (* though the situation is further complicated by klipper, the KDE > clipboard daemon, which can be configured to do various strange things > in this area, I mean KDE's out-of-box defaults). I do not doubt that, internally, things are different. Anyway, from the 'End User' point of view, C-w/mouse-2 (in Emacs) should behave in the same way of C-X/mouse-2 (in other X applications like Konqueror, Kate etc.) BTW, if I add the step: 1.1 I choose: Options | C-x/.../C-v Cut and Paste (CUA) then C-x/mouse-2, in Emacs still does not work! So, at the moment, Emacs, in this regard (Copy/Paste), from the 'End User' point of view, behaves differently from other X applications. Ciao, Angelo. From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? 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: Mon, 02 Aug 2010 14:52: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: To: Angelo Graziosi Cc: 6774@debbugs.gnu.org, Chong Yidong Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.128076071422095 (code B ref 6774); Mon, 02 Aug 2010 14:52:02 +0000 Received: (at 6774) by debbugs.gnu.org; 2 Aug 2010 14:51:54 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OfwMr-0005kK-Ct for submit@debbugs.gnu.org; Mon, 02 Aug 2010 10:51:53 -0400 Received: from harpegolden.net ([65.99.215.13]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OfwMq-0005kE-0Z for 6774@debbugs.gnu.org; Mon, 02 Aug 2010 10:51:52 -0400 Received: from [87.198.55.208] (87-198-55-208.ptr.magnet.ie [87.198.55.208]) (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 B2E8468474; Mon, 2 Aug 2010 15:52:11 +0100 (IST) Message-ID: <4C56DB9C.5040405@harpegolden.net> Date: Mon, 02 Aug 2010 15:52:12 +0100 From: David De La Harpe Golden User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100620 Icedove/3.0.5 MIME-Version: 1.0 References: <4C55EF50.3080100@alice.it> <4C5645A1.7000500@harpegolden.net> <4C56C8F0.2010104@alice.it> In-Reply-To: <4C56C8F0.2010104@alice.it> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.8 (--) On 02/08/10 14:32, Angelo Graziosi wrote: > I do not doubt that, internally, things are different. Anyway, from the > 'End User' point of view, Well, the whole area is end-user visible. > C-w/mouse-2 (in Emacs) > > should behave in the same way of > > C-X/mouse-2 (in other X applications like Konqueror, Kate etc.) > Well, beware Chong Yidong has already brought to light other recent X applications where that doesn't work - try it in GNOME gedit... That said, I think the KDE Kate type behaviour is obviously more useful, more common, and more in keeping with the intent of the spec if not the letter, and the one to aim for. > So, at the moment, Emacs, in this regard (Copy/Paste), from the 'End > User' point of view, behaves differently from other X applications. Undoubtedly. It didn't historically behave like other (recent*) X applications either though. In the specific case of C-w directly followed by mouse-2 it may have appeared to but something quite different was going on behind the scenes. This attempt to make it do so is relatively new (well what's really new is that it was switched on by default, exposing it to a greater userbase and exposing a host of problems...). If you are interested to try the experimental branch I mentioned you'll probably find it acts more sensibly in this area: bzr branch lp:~ddlhg/emacs/selx It's just not in a fit state for inclusion wholesale in emacs at time of writing, but you might be able to say if it's the behaviour you expect, and then maybe we can find a somewhat saner way to actually implement it. > BTW, if I add the step: > 1.1 I choose: Options | C-x/.../C-v Cut and Paste (CUA) > then C-x/mouse-2, in Emacs still does not work! Nor would it be expected to, until the underlying issue is addressed. All (well not all, but for our present purposes) CUA mode does is make C-x/C-c/C-v in emacs act like C-w/M-w/C-y in eamcs. Note this is THE major problem with the unhelpful "oh just turn on cua mode" response emacs newbies sometimes get to their whining about "cut and paste not working right". The problem isn't the bindings: If %(emacs' C-w/M-w/C-y) doesn't act like $(other apps' C-x/C-c/C-v), then making &(emacs' C-x/C-c/C-y) act like %(emacs' C-w/M-y/C-y) still doesn't make &(emacs' C-x/C-c/C-y) act like $(other apps' C-x/C-c/C-v) * It's worth bearing in mind that emacs has been around a _lot_ longer than these newfangled standardisations, and many long-time emacs users actively prefer the now-quirky emacs historic behaviour. From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 Aug 2010 19:42: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: To: David De La Harpe Golden Cc: 6774@debbugs.gnu.org, Angelo Graziosi Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.12807780992344 (code B ref 6774); Mon, 02 Aug 2010 19:42:02 +0000 Received: (at 6774) by debbugs.gnu.org; 2 Aug 2010 19:41:39 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Og0tG-0000bl-Mv for submit@debbugs.gnu.org; Mon, 02 Aug 2010 15:41:39 -0400 Received: from pantheon-po23.its.yale.edu ([130.132.50.117]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Og0tE-0000bd-N3 for 6774@debbugs.gnu.org; Mon, 02 Aug 2010 15:41:37 -0400 Received: from furry (dhcp128036014221.central.yale.edu [128.36.14.221]) (authenticated bits=0) by pantheon-po23.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o72JfwJT022435 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 2 Aug 2010 15:41:59 -0400 Received: by furry (Postfix, from userid 1000) id D1F03C013; Mon, 2 Aug 2010 15:41:58 -0400 (EDT) From: Chong Yidong References: <4C55EF50.3080100@alice.it> <4C5645A1.7000500@harpegolden.net> Date: Mon, 02 Aug 2010 15:41:58 -0400 In-Reply-To: <4C5645A1.7000500@harpegolden.net> (David De La Harpe Golden's message of "Mon, 02 Aug 2010 05:12:17 +0100") Message-ID: <87y6coby49.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -2.7 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) David De La Harpe Golden writes: > Yes, there's a problem here - I guess emacs is keeping primary bound > to a span that's become zero-length. Again. After thinking about this, my opinion is that the Emacs command loop---or rather prepare_to_modify_buffer in insdel.c---should make a copy of the primary selection before running before-change-functions. Then, deactivate-mark should check if the resulting string is empty; and, if so, set the primary to that saved copy. I haven't looked at your branch; is this the approach you implemented? From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? 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: Mon, 02 Aug 2010 20:31: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: To: Chong Yidong Cc: 6774@debbugs.gnu.org, Angelo Graziosi Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.12807810123784 (code B ref 6774); Mon, 02 Aug 2010 20:31:01 +0000 Received: (at 6774) by debbugs.gnu.org; 2 Aug 2010 20:30:12 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Og1eF-0000yz-Qj for submit@debbugs.gnu.org; Mon, 02 Aug 2010 16:30:12 -0400 Received: from harpegolden.net ([65.99.215.13]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Og1eD-0000yb-E0 for 6774@debbugs.gnu.org; Mon, 02 Aug 2010 16:30:10 -0400 Received: from [87.198.55.208] (87-198-55-208.ptr.magnet.ie [87.198.55.208]) (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 BB99268474; Mon, 2 Aug 2010 21:30:29 +0100 (IST) Message-ID: <4C572AE6.7070104@harpegolden.net> Date: Mon, 02 Aug 2010 21:30:30 +0100 From: David De La Harpe Golden User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100620 Icedove/3.0.5 MIME-Version: 1.0 References: <4C55EF50.3080100@alice.it> <4C5645A1.7000500@harpegolden.net> <87y6coby49.fsf@stupidchicken.com> In-Reply-To: <87y6coby49.fsf@stupidchicken.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -1.5 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.8 (--) On 02/08/10 20:41, Chong Yidong wrote: > David De La Harpe Golden writes: > >> Yes, there's a problem here - I guess emacs is keeping primary bound >> to a span that's become zero-length. Again. > > After thinking about this, my opinion is that the Emacs command > loop---or rather prepare_to_modify_buffer in insdel.c---should make a > copy of the primary selection before running before-change-functions. > Then, deactivate-mark should check if the resulting string is empty; > and, if so, set the primary to that saved copy. > > I haven't looked at your branch; is this the approach you implemented? Not reallym, though my branch certainly ended up altering the command loop to save a copy of the primary selection before commands - doing that where you say may be more selective to commands that are going to modify, and therefore more efficient. Does your way work properly in a multi-window context on its own, though? I suspect not -that it will deactivate-mark on "boring" restored active regions (see below) and set the selection to the "boring" region, confounding user expectations, because the restored region could be non-empty. So I'll try and have a go explaining the key points of the branch, then, bearing in mind it was focussed mostly on making multi-window/frame stuff work, and the zero length fixes came along for the ride. On the whole, grabbing it locally and giving it a go may be worthwhile, might be faster than reading the below! At this stage, the sheer length of the explanation below suggests the approach is just too ugly. I may be stuck in a rut on it (the trouble is it _does_ give quite nice results...). Just doing it eagerly may be better. However, one of the non-efficiency reasons for the laziness was because certain gestures in emacs are really effectively "long running commands" that you can stop and switch to another application in the middle of (track-mouse...), and something happening purely before/after commands can leave the region stale, and the laziness skirted that. The thing is, if you use focus-follows-mouse between frames, or mouse autoselect-window between emacs windows, you select_window without going through "normal channels", so trying to do _anything_ smart in deactivate-mark tends to break - e.g. the mark is being deactivated in a window different to the last window bound to the selection. The selx branch just forces the selection to a string if it's lazy-bound to a window and emacs still owns it on deactivate mark. 1. Introduce a save/restore of mark and mark-active state as well as point on select_window window switching. The restore would be controversial, but could easily be made optional - the saving is the important bit for our purposes, the restore is a "new feature". This bit might be independently a nice feature, at least. 2. Allow selections to be lazy-bound to window rather than buffer. (this is unfinished - in both window and buffer cases should really walk the selection_alist and force the lazy selections before deletion of the window/buffer. When the selection is bound to a window, it is the span between the window-mark and window-point. 3. Introduce a x-force-lazy-selection to force a selection to a string if it is lazy-bound to a buffer. This is currently only a placeholder inefficient implementation, doing it even if unnecessary (i.e. selection is already a string), it could be made more efficient by checking if forcing is necessary - but owing to the split of the code between C and Lisp, that would probably mean moving it to C. 4. Introduce a notion of the region being "interesting" or "boring". If a region is zero-length _or_ matching the saved boring region extent, consider it boring. 6. make select_window set the region boring when it restores the region. This preserves temporal ordering of selection with respect to user explicit selection actions rather than programmatic restores. 5. If select-active-region is called, test if the region is interesting. If it isn't (boring/zero), don't select, just set a "select-active-region-maybe" flag. If it isn't boring, set it to the current window. 6. Before each command in the command loop, if select-active-region maybe, check again if the region is interesting. 7. Force the primary selection (ideally this would be more efficient as in 3), effectively freezing off a string. 8. After each command, call select-active-region again to check if the region is interesting and "thaw". 9. In deactivate mark, force the selection in case it's lazy. Since we can't actually tell if we're in the window that the selection was bound to, it's _un_safe to use buffer-substring, have to go through x-force-lazy-selection. From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? 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: Mon, 02 Aug 2010 20:33: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: To: Chong Yidong Cc: 6774@debbugs.gnu.org, Angelo Graziosi Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.12807811603877 (code B ref 6774); Mon, 02 Aug 2010 20:33:01 +0000 Received: (at 6774) by debbugs.gnu.org; 2 Aug 2010 20:32:40 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Og1gd-00010T-Bv for submit@debbugs.gnu.org; Mon, 02 Aug 2010 16:32:40 -0400 Received: from harpegolden.net ([65.99.215.13]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Og1gb-00010O-Rj for 6774@debbugs.gnu.org; Mon, 02 Aug 2010 16:32:38 -0400 Received: from [87.198.55.208] (87-198-55-208.ptr.magnet.ie [87.198.55.208]) (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 B6DFC68474; Mon, 2 Aug 2010 21:32:58 +0100 (IST) Message-ID: <4C572B7C.9000602@harpegolden.net> Date: Mon, 02 Aug 2010 21:33:00 +0100 From: David De La Harpe Golden User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100620 Icedove/3.0.5 MIME-Version: 1.0 References: <4C55EF50.3080100@alice.it> <4C5645A1.7000500@harpegolden.net> <87y6coby49.fsf@stupidchicken.com> <4C572AE6.7070104@harpegolden.net> In-Reply-To: <4C572AE6.7070104@harpegolden.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.8 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.8 (--) On 02/08/10 21:30, David De La Harpe Golden wrote: > Just doing it eagerly may be better. However, one of the non-efficiency > reasons for the laziness was because certain gestures in emacs are > really effectively "long running commands" that you can stop and switch > to another application in the middle of (track-mouse...), and something > happening purely before/after commands can leave the region stale, Gaah, sorry, can leave the (x11) _selection_ stale - you get strange things like the primary containing only the first letter of the active region that's visible onscreen, say. From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? 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: Mon, 02 Aug 2010 20:54: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: To: Chong Yidong Cc: 6774@debbugs.gnu.org, Angelo Graziosi Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.12807824136981 (code B ref 6774); Mon, 02 Aug 2010 20:54:01 +0000 Received: (at 6774) by debbugs.gnu.org; 2 Aug 2010 20:53:33 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Og20q-0001oY-Or for submit@debbugs.gnu.org; Mon, 02 Aug 2010 16:53:32 -0400 Received: from harpegolden.net ([65.99.215.13]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Og20p-0001oT-6e for 6774@debbugs.gnu.org; Mon, 02 Aug 2010 16:53:31 -0400 Received: from [87.198.55.208] (87-198-55-208.ptr.magnet.ie [87.198.55.208]) (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 CAA7768474; Mon, 2 Aug 2010 21:53:51 +0100 (IST) Message-ID: <4C573061.7080608@harpegolden.net> Date: Mon, 02 Aug 2010 21:53:53 +0100 From: David De La Harpe Golden User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100620 Icedove/3.0.5 MIME-Version: 1.0 References: <4C55EF50.3080100@alice.it> <4C5645A1.7000500@harpegolden.net> <87y6coby49.fsf@stupidchicken.com> <4C572AE6.7070104@harpegolden.net> In-Reply-To: <4C572AE6.7070104@harpegolden.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.8 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.8 (--) On 02/08/10 21:30, David De La Harpe Golden wrote: > > 3. Introduce a x-force-lazy-selection to force a selection to a string > if it is lazy-bound to a buffer. [... or window or marker cons or overlay, i.e. all the lazy possibilities] Sigh. I read that more than once before hitting send. From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 Aug 2010 20:59: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: To: David De La Harpe Golden Cc: 6774@debbugs.gnu.org, Angelo Graziosi Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.12807827267110 (code B ref 6774); Mon, 02 Aug 2010 20:59:01 +0000 Received: (at 6774) by debbugs.gnu.org; 2 Aug 2010 20:58:46 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Og25t-0001qd-Ua for submit@debbugs.gnu.org; Mon, 02 Aug 2010 16:58:46 -0400 Received: from pantheon-po45.its.yale.edu ([130.132.50.79]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Og25r-0001qW-Oh for 6774@debbugs.gnu.org; Mon, 02 Aug 2010 16:58:44 -0400 Received: from furry (dhcp128036014221.central.yale.edu [128.36.14.221]) (authenticated bits=0) by pantheon-po45.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o72Kx6dk010095 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 2 Aug 2010 16:59:06 -0400 Received: by furry (Postfix, from userid 1000) id 3CFE1C013; Mon, 2 Aug 2010 16:59:06 -0400 (EDT) From: Chong Yidong References: <4C55EF50.3080100@alice.it> <4C5645A1.7000500@harpegolden.net> <87y6coby49.fsf@stupidchicken.com> <4C572AE6.7070104@harpegolden.net> Date: Mon, 02 Aug 2010 16:59:06 -0400 In-Reply-To: <4C572AE6.7070104@harpegolden.net> (David De La Harpe Golden's message of "Mon, 02 Aug 2010 21:30:30 +0100") Message-ID: <87wrs8ohnp.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -2.7 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) David De La Harpe Golden writes: > Does your way work properly in a multi-window context on its own, > though? I suspect not -that it will deactivate-mark on "boring" > restored active regions (see below) and set the selection to the > "boring" region, confounding user expectations, because the restored > region could be non-empty. > > The thing is, if you use focus-follows-mouse between frames, or mouse > autoselect-window between emacs windows, you select_window without > going through "normal channels", so trying to do _anything_ smart in > deactivate-mark tends to break - e.g. the mark is being deactivated in > a window different to the last window bound to the selection. The selx > branch just forces the selection to a string if it's lazy-bound to a > window and emacs still owns it on deactivate mark. You're right, the window-switching code needs to be able to change the X selection buffer if switching into a window where there is an active region. But with this change, is there any case that my proposal---i.e. saving a copy before before-change-functions, for deactivate-mark to refer to if the region ends up empty---would not handle? Assuming that the current buffer and the active region can only change as a result of a user command or window switching, those are the only cases that we have to cover. From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? 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: Mon, 02 Aug 2010 21:36: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: To: Chong Yidong Cc: 6774@debbugs.gnu.org, Angelo Graziosi Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.12807849438073 (code B ref 6774); Mon, 02 Aug 2010 21:36:02 +0000 Received: (at 6774) by debbugs.gnu.org; 2 Aug 2010 21:35:43 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Og2fH-000267-CT for submit@debbugs.gnu.org; Mon, 02 Aug 2010 17:35:43 -0400 Received: from harpegolden.net ([65.99.215.13]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Og2fE-000262-Kg for 6774@debbugs.gnu.org; Mon, 02 Aug 2010 17:35:17 -0400 Received: from [87.198.55.208] (87-198-55-208.ptr.magnet.ie [87.198.55.208]) (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 0B24068474; Mon, 2 Aug 2010 22:35:36 +0100 (IST) Message-ID: <4C573A2A.3030007@harpegolden.net> Date: Mon, 02 Aug 2010 22:35:38 +0100 From: David De La Harpe Golden User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100620 Icedove/3.0.5 MIME-Version: 1.0 References: <4C55EF50.3080100@alice.it> <4C5645A1.7000500@harpegolden.net> <87y6coby49.fsf@stupidchicken.com> <4C572AE6.7070104@harpegolden.net> <87wrs8ohnp.fsf@stupidchicken.com> In-Reply-To: <87wrs8ohnp.fsf@stupidchicken.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.8 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.8 (--) On 02/08/10 21:59, Chong Yidong wrote: > David De La Harpe Golden writes: > >> Does your way work properly in a multi-window context on its own, >> though? I suspect not -that it will deactivate-mark on "boring" >> restored active regions (see below) and set the selection to the >> "boring" region, confounding user expectations, because the restored >> region could be non-empty. >> >> The thing is, if you use focus-follows-mouse between frames, or mouse >> autoselect-window between emacs windows, you select_window without >> going through "normal channels", so trying to do _anything_ smart in >> deactivate-mark tends to break - e.g. the mark is being deactivated in >> a window different to the last window bound to the selection. The selx >> branch just forces the selection to a string if it's lazy-bound to a >> window and emacs still owns it on deactivate mark. > > You're right, the window-switching code needs to be able to change the X > selection buffer if switching into a window where there is an active > region. > well, hold on - see the problem report on emacs-devel [1][2], my goal was to _not_ bind the selection to the new buffer of the restored active region on window change, but rather leave it as the old selection, and consider the restored active region "boring" until it changes again, at which point it becomes the selection. Try it between two kate windows both with selected text, say - note how the selection doesn't change depending on which window you're currently in, it depends on the last text the user actively selected. > But with this change, is there any case that my proposal---i.e. saving a > copy before before-change-functions, for deactivate-mark to refer to if > the region ends up empty---would not handle? Assuming that the current > buffer and the active region can only change as a result of a user > command or window switching, those are the only cases that we have to > cover. I'm a bit tired at this stage, sorry, I'm not sure I'm talking sense. The problem is that we may really want the selection bound to something _non-current_, if we don't want it to instantly reflect a restored boring active region as per above. And there's the two-windows-onto-the-same buffer case to consider, that means lazy-binding the selection to a buffer rather than window can't work very well, was the first reason I had for adding the lazy-binding to windows (and extending windows struct to record a per-window mark as well as point...). [1] http://lists.gnu.org/archive/html/emacs-devel/2010-07/msg01258.html [2] http://lists.gnu.org/archive/html/emacs-devel/2010-07/msg01314.html From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? 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: Mon, 02 Aug 2010 22:27: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: To: Chong Yidong Cc: 6774@debbugs.gnu.org Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.128078798211898 (code B ref 6774); Mon, 02 Aug 2010 22:27:02 +0000 Received: (at 6774) by debbugs.gnu.org; 2 Aug 2010 22:26:22 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Og3Sf-00035r-Se for submit@debbugs.gnu.org; Mon, 02 Aug 2010 18:26:22 -0400 Received: from harpegolden.net ([65.99.215.13]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Og3Se-00035m-DR for 6774@debbugs.gnu.org; Mon, 02 Aug 2010 18:26:20 -0400 Received: from [87.198.55.208] (87-198-55-208.ptr.magnet.ie [87.198.55.208]) (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 289D868474; Mon, 2 Aug 2010 23:26:41 +0100 (IST) Message-ID: <4C574622.8000208@harpegolden.net> Date: Mon, 02 Aug 2010 23:26:42 +0100 From: David De La Harpe Golden User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100620 Icedove/3.0.5 MIME-Version: 1.0 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> In-Reply-To: <4C573A2A.3030007@harpegolden.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.8 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.8 (--) ...Oh, guess I went round in a big circle... http://debbugs.gnu.org/cgi/bugreport.cgi?bug=902#80 > maybe it should be copying and "holding" as a string the selection before a command runs > ... > OTOH, that sounds more complex, and such cases don't seem to arise much (or at all) in practice - at least I haven't noticed them. ... d'oh! I'm certainly becoming concerned these contortions to preserve some laziness may be worse than just accepting a requirement to update a string selection where necessary and its overhead. Humph ...do we have copy-on-write buffers... From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? Resent-From: Miles Bader Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 03 Aug 2010 14:35: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: To: Chong Yidong Cc: 6774@debbugs.gnu.org, Angelo Graziosi , David De La Harpe Golden Reply-To: Miles Bader Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.12808460798393 (code B ref 6774); Tue, 03 Aug 2010 14:35:02 +0000 Received: (at 6774) by debbugs.gnu.org; 3 Aug 2010 14:34:39 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OgIZi-0002BK-WF for submit@debbugs.gnu.org; Tue, 03 Aug 2010 10:34:39 -0400 Received: from smtp12.dentaku.gol.com ([203.216.5.74]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OgIZg-0002BE-DY for 6774@debbugs.gnu.org; Tue, 03 Aug 2010 10:34:38 -0400 Received: from 218.231.154.125.eo.eaccess.ne.jp ([218.231.154.125] helo=catnip.gol.com) by smtp12.dentaku.gol.com with esmtpa (Dentaku) id 1OgIa3-0004SJ-P3; Tue, 03 Aug 2010 23:34:59 +0900 Received: by catnip.gol.com (Postfix, from userid 1000) id 0E12FDF93; Tue, 3 Aug 2010 23:34:59 +0900 (JST) From: Miles Bader References: <4C55EF50.3080100@alice.it> <4C5645A1.7000500@harpegolden.net> <87y6coby49.fsf@stupidchicken.com> <4C572AE6.7070104@harpegolden.net> System-Type: x86_64-unknown-linux-gnu Date: Tue, 03 Aug 2010 23:34:59 +0900 In-Reply-To: (Chong Yidong's message of "Mon, 02 Aug 2010 16:59:06 -0400") Message-ID: <871vaf69yk.fsf@catnip.gol.com> Lines: 11 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: ClamAV GOL (outbound) X-Abuse-Complaints: abuse@gol.com X-Spam-Score: -4.8 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) So while y'all are screwing around with this, is there a simple way I can get back the original behavior? [I mean: selecting with mouse in some window, then C-y in emacs, works, as does C-w in emacs followed by center-mouse to paste in a non-emacs window] -Miles -- Inhumanity, n. One of the signal and characteristic qualities of humanity. From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? 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: Tue, 03 Aug 2010 15:15: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: To: Miles Bader Cc: Chong Yidong , 6774@debbugs.gnu.org, Angelo Graziosi Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.12808484819489 (code B ref 6774); Tue, 03 Aug 2010 15:15:02 +0000 Received: (at 6774) by debbugs.gnu.org; 3 Aug 2010 15:14:41 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OgJCT-0002T0-65 for submit@debbugs.gnu.org; Tue, 03 Aug 2010 11:14:41 -0400 Received: from harpegolden.net ([65.99.215.13]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OgJCR-0002Ss-59 for 6774@debbugs.gnu.org; Tue, 03 Aug 2010 11:14:39 -0400 Received: from [87.198.55.208] (87-198-55-208.ptr.magnet.ie [87.198.55.208]) (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 A1C6768474; Tue, 3 Aug 2010 16:15:01 +0100 (IST) Message-ID: <4C583276.9080201@harpegolden.net> Date: Tue, 03 Aug 2010 16:15:02 +0100 From: David De La Harpe Golden User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100620 Icedove/3.0.5 MIME-Version: 1.0 References: <4C55EF50.3080100@alice.it> <4C5645A1.7000500@harpegolden.net> <87y6coby49.fsf@stupidchicken.com> <4C572AE6.7070104@harpegolden.net> <871vaf69yk.fsf@catnip.gol.com> In-Reply-To: <871vaf69yk.fsf@catnip.gol.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.8 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.8 (--) On 03/08/10 15:34, Miles Bader wrote: > So while y'all are screwing around with this, is there a simple way I > can get back the original behavior? > Yes, four boolean customizations and a rebinding (or just five boolean customizations on my experimental branch) ** group killing: ;; stop emacs using the clipboard for C-w/M-w/C-y x-select-enable-clipboard => nil ;; make emacs use primary for C-w/M-w/C-y x-select-enable-primary => t ;; stop emacs sending both keyboard and mouse selections to primary ;; (and right now sometimes failing at it) select-active-regions => nil ** group mouse: ;; make emacs treat the end of a mouse drag selection as an M-w. mouse-drag-copy-region => t ** rebind: ;; make emacs treat mouse middle button as a C-y operation. ;; rather than a primary-insertion-only operation. (global-set-key [mouse-2] 'mouse-yank-at-click) N.B. On the "selx" experimental branch, don't rebind mouse-2, do instead: mouse-yank-selection-only => nil [IMO such a boolean customisation is neater than requiring a rebind to revert for reasons outlined on emacs-devel last week] From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? Resent-From: Miles Bader Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 03 Aug 2010 15:32: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: To: David De La Harpe Golden Cc: Chong Yidong , 6774@debbugs.gnu.org, Angelo Graziosi Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.12808494769981 (code B ref 6774); Tue, 03 Aug 2010 15:32:02 +0000 Received: (at 6774) by debbugs.gnu.org; 3 Aug 2010 15:31:16 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OgJSW-0002aw-Ep for submit@debbugs.gnu.org; Tue, 03 Aug 2010 11:31:16 -0400 Received: from mail-px0-f172.google.com ([209.85.212.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OgJSU-0002aq-8d for 6774@debbugs.gnu.org; Tue, 03 Aug 2010 11:31:14 -0400 Received: by pxi20 with SMTP id 20so1596472pxi.3 for <6774@debbugs.gnu.org>; Tue, 03 Aug 2010 08:31:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:sender:received :in-reply-to:references:from:date:x-google-sender-auth:message-id :subject:to:cc:content-type; bh=Dh/nnFmMAaaDUnyafZ7AiAkSxRM/ukw31Ztl1U8hRew=; b=TUzMx+4HoSBBMfeA+zXLaz69MFKT+lZfbKkEk3IBIPoWm/JE4Kx3y/Ok9R1GJNdGOX 7RDOhT5luYBsrBx9+uSHTkUqPbXohhmu5qBRl/RIYyk3T+D6kQ+WCZHARfzTF8uPKRC4 oEEt0Bd2Fsy0c/ZwkmctkZfLiJcyExbpjEUg8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; b=vr1VjRQ+MlHrvzco2VnzmcT2wwl7HbZsXt2dp84uaK/siufYHpQ6yiAF/h4ZOSagkk rNQIUWoaFqx3aerxrL7FsMruCM3tkfcv8IJUcwOUhgbhcUK1YOFCfmpdP72pWr4a47g9 9goGD9aRgKP+FwJY0ge0XZlds/dfiQNrNPoc0= Received: by 10.142.207.5 with SMTP id e5mr6677601wfg.81.1280849499703; Tue, 03 Aug 2010 08:31:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.144.11 with HTTP; Tue, 3 Aug 2010 08:31:18 -0700 (PDT) In-Reply-To: <4C583276.9080201@harpegolden.net> References: <4C55EF50.3080100@alice.it> <4C5645A1.7000500@harpegolden.net> <87y6coby49.fsf@stupidchicken.com> <4C572AE6.7070104@harpegolden.net> <871vaf69yk.fsf@catnip.gol.com> <4C583276.9080201@harpegolden.net> From: Miles Bader Date: Wed, 4 Aug 2010 00:31:18 +0900 X-Google-Sender-Auth: eNvs6ne09c8xFjQ1brEAzAk4tIw Message-ID: Content-Type: text/plain; charset=ISO-8859-1 X-Spam-Score: -2.6 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) hmm... it sounds like that won't actually restore the previous behavior: previously emacs transparently worked with _both_ the selection and the clipboard -- e.g., C-y would insert either the primary selection or the clipboard (or from the emacs kill-ring), whichever was more recent. that's the behavior I want. [The new behavior is "more consistent", but also much less convenient.] -miles -- Do not taunt Happy Fun Ball. From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? 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: Tue, 03 Aug 2010 15:46: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: To: Miles Bader Cc: Chong Yidong , 6774@debbugs.gnu.org, Angelo Graziosi Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.128085032710380 (code B ref 6774); Tue, 03 Aug 2010 15:46:01 +0000 Received: (at 6774) by debbugs.gnu.org; 3 Aug 2010 15:45:27 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OgJgE-0002hN-P9 for submit@debbugs.gnu.org; Tue, 03 Aug 2010 11:45:27 -0400 Received: from harpegolden.net ([65.99.215.13]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OgJgD-0002hG-H6 for 6774@debbugs.gnu.org; Tue, 03 Aug 2010 11:45:25 -0400 Received: from [87.198.55.208] (87-198-55-208.ptr.magnet.ie [87.198.55.208]) (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 3106668474; Tue, 3 Aug 2010 16:45:48 +0100 (IST) Message-ID: <4C5839AD.1070100@harpegolden.net> Date: Tue, 03 Aug 2010 16:45:49 +0100 From: David De La Harpe Golden User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100620 Icedove/3.0.5 MIME-Version: 1.0 References: <4C55EF50.3080100@alice.it> <4C5645A1.7000500@harpegolden.net> <87y6coby49.fsf@stupidchicken.com> <4C572AE6.7070104@harpegolden.net> <871vaf69yk.fsf@catnip.gol.com> <4C583276.9080201@harpegolden.net> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.8 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.8 (--) On 03/08/10 16:31, Miles Bader wrote: > hmm... it sounds like that won't actually restore the previous behavior: > previously emacs transparently worked with _both_ the selection and > the clipboard -- e.g., C-y would insert either the primary selection > or the clipboard (or from the emacs kill-ring), whichever was more > recent. > > that's the behavior I want. > Um, you're thinking of certain of your own customisations that you yourself mentioned a few days back on emacs-devel. The old defaults didn't do that either. So you need to (notionally) revert to the old defaults as given, then reapply your customisations, which shouldn't be hard in this case: I believe the difference is kust that you operated with both x-select-enable-primary and x-select-enable-clipboard turned on at once, which causes x-cut-buffer-or-selection-value to try to be "clever". (Note I wanted the settings all boolean customisations was because it would become possible to use an "old x11 defaults" customization theme with them - bindings aren't included in customization themes). From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? Resent-From: Miles Bader Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 03 Aug 2010 16:03: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: To: David De La Harpe Golden Cc: Chong Yidong , 6774@debbugs.gnu.org, Angelo Graziosi Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.128085136810855 (code B ref 6774); Tue, 03 Aug 2010 16:03:01 +0000 Received: (at 6774) by debbugs.gnu.org; 3 Aug 2010 16:02:48 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OgJx2-0002p2-KL for submit@debbugs.gnu.org; Tue, 03 Aug 2010 12:02:48 -0400 Received: from mail-gw0-f44.google.com ([74.125.83.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OgJx0-0002ox-MD for 6774@debbugs.gnu.org; Tue, 03 Aug 2010 12:02:46 -0400 Received: by gwaa18 with SMTP id a18so1690295gwa.3 for <6774@debbugs.gnu.org>; Tue, 03 Aug 2010 09:03:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:sender:received :in-reply-to:references:from:date:x-google-sender-auth:message-id :subject:to:cc:content-type; bh=JoeflvrMQCsADj6KDdMX6kXOCo7ZgRv/2PoKSqzMtXE=; b=FOHslJ2PpJnRrfa3QKEnBaTZsn0vSDAxVerJf+IOhQP9nfxUJH2X9ehKohP4xUxpbQ eTmYZNrjlQIklRc/jddgW7go+rkNMeJ4bfvcSUQh5Ntd2Nz87lIeZAaHd3TAj27FMpA7 UilOYafc/WkjZZyE4t2zkDxUQadjsqRGezk3M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; b=Bbz66qFEC8ikc91TsNCVNKX48Ivul/O+smI7rj7BhRtJARhPJhf3jGL3oiZcC/Gvw8 EKjP2+ve+J6Re4lHqQXh9amAOvf/y8lGf9mpOgoDM1DzhQ9eiNFX3/FplnRbFY0C3rxT xiwScMG7sgZ0x0XmsGRNKqBwuLq+Trps/cuSE= Received: by 10.100.119.14 with SMTP id r14mr8340891anc.156.1280851392568; Tue, 03 Aug 2010 09:03:12 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.144.11 with HTTP; Tue, 3 Aug 2010 09:02:49 -0700 (PDT) In-Reply-To: <4C5839AD.1070100@harpegolden.net> References: <4C55EF50.3080100@alice.it> <4C5645A1.7000500@harpegolden.net> <87y6coby49.fsf@stupidchicken.com> <4C572AE6.7070104@harpegolden.net> <871vaf69yk.fsf@catnip.gol.com> <4C583276.9080201@harpegolden.net> <4C5839AD.1070100@harpegolden.net> From: Miles Bader Date: Wed, 4 Aug 2010 01:02:49 +0900 X-Google-Sender-Auth: XAPy6S-xjuZPrE9YhnCwox_Lfog Message-ID: Content-Type: text/plain; charset=ISO-8859-1 X-Spam-Score: -2.6 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) Ok, I just did (setq x-select-enable-primary t) and now things work much better. Thanks, -Miles -- Do not taunt Happy Fun Ball. From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? 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, 04 Aug 2010 18:03: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: To: Miles Bader Cc: Chong Yidong , Angelo Graziosi , 6774@debbugs.gnu.org, David De La Harpe Golden Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.12809449467910 (code B ref 6774); Wed, 04 Aug 2010 18:03:02 +0000 Received: (at 6774) by debbugs.gnu.org; 4 Aug 2010 18:02:26 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OgiIM-00023X-7X for submit@debbugs.gnu.org; Wed, 04 Aug 2010 14:02:26 -0400 Received: from impaqm5.telefonica.net ([213.4.138.5]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OgiII-00023L-Pt for 6774@debbugs.gnu.org; Wed, 04 Aug 2010 14:02:23 -0400 Received: from IMPmailhost4.adm.correo ([10.20.102.125]) by IMPaqm5.telefonica.net with bizsmtp id qFoJ1e00F2iL0W23RJ2g5S; Wed, 04 Aug 2010 20:02:40 +0200 Received: from ceviche.home ([83.61.38.247]) by IMPmailhost4.adm.correo with BIZ IMP id qJ2e1e0075KwfZf1kJ2f4e; Wed, 04 Aug 2010 20:02:40 +0200 X-Brightmail-Tracker: AAAAAA== X-TE-authinfo: authemail="monnier$movistar.es" |auth_email="monnier@movistar.es" X-TE-AcuTerraCos: auth_cuTerraCos="cosuitnetc01" Received: by ceviche.home (Postfix, from userid 20848) id 6614966125; Wed, 4 Aug 2010 20:02:38 +0200 (CEST) From: Stefan Monnier Message-ID: References: <4C55EF50.3080100@alice.it> <4C5645A1.7000500@harpegolden.net> <87y6coby49.fsf@stupidchicken.com> <4C572AE6.7070104@harpegolden.net> <871vaf69yk.fsf@catnip.gol.com> <4C583276.9080201@harpegolden.net> <4C5839AD.1070100@harpegolden.net> Date: Wed, 04 Aug 2010 20:02:38 +0200 In-Reply-To: (Miles Bader's message of "Wed, 4 Aug 2010 01:02:49 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) > Ok, I just did (setq x-select-enable-primary t) and now things work > much better. It's important to include such instructions in etc/NEWS. The current text is "too close to the code", i.e. it documents the code changes more than the resulting behavior changes. I also noticed another change wrt selection: double-click and then drag only does "word-chunked selection" on the initial double-click but not on the susequent drag. Stefan From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 04 Aug 2010 18:26: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: To: "'Stefan Monnier'" , "'Miles Bader'" Cc: 'Chong Yidong' , 6774@debbugs.gnu.org, 'Angelo Graziosi' Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.12809463388537 (code B ref 6774); Wed, 04 Aug 2010 18:26:01 +0000 Received: (at 6774) by debbugs.gnu.org; 4 Aug 2010 18:25:38 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ogieo-0002De-EP for submit@debbugs.gnu.org; Wed, 04 Aug 2010 14:25:38 -0400 Received: from rcsinet10.oracle.com ([148.87.113.121]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ogien-0002DW-Cb for 6774@debbugs.gnu.org; Wed, 04 Aug 2010 14:25:38 -0400 Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o74IPvFF007656 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 4 Aug 2010 18:25:59 GMT Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o745mW8t004309; Wed, 4 Aug 2010 18:25:55 GMT Received: from abhmt016.oracle.com by acsmt353.oracle.com with ESMTP id 466270921280946344; Wed, 04 Aug 2010 11:25:44 -0700 Received: from dradamslap1 (/10.159.217.40) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 04 Aug 2010 11:25:43 -0700 From: "Drew Adams" References: <4C55EF50.3080100@alice.it> <4C5645A1.7000500@harpegolden.net><87y6coby49.fsf@stupidchicken.com> <4C572AE6.7070104@harpegolden.net><871vaf69yk.fsf@catnip.gol.com> <4C583276.9080201@harpegolden.net><4C5839AD.1070100@harpegolden.net> Date: Wed, 4 Aug 2010 11:25:43 -0700 Message-ID: <24D40AC336D84E32AA25A7144833C966@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: Acs0AAZECIC3tR96RKqvHABhBMTUYAAAZpAw X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5931 X-Source-IP: acsmt353.oracle.com [141.146.40.153] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090207.4C59B0B4.01B3:SCFMA4539814,ss=1,fgs=0 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.3 (------) > > Ok, I just did (setq x-select-enable-primary t) and now things work > > much better. > > It's important to include such instructions in etc/NEWS. > The current text is "too close to the code", i.e. it > documents the code changes more than the resulting behavior changes. > > I also noticed another change wrt selection: double-click and > then drag only does "word-chunked selection" on the initial > double-click but not on the susequent drag. Why change the default behavior (esp. with no emacs-devel proposal and discussion)? Why not implement your changes ("improvements") as a new, optional alternative behavior? And then document _that_ in NEWS etc. IOW document whatever options you need to change to get the new behavior, instead of documenting what you need to do to get back the old behavior. If enough people like it and use it over time then we can consider changing the default behavior to it. That's the normal way to proceed for any significant behavior change. This seems to be a fundamental change to Emacs selection etc. It merits discussion, experimentation, and time trial. From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? 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: Wed, 04 Aug 2010 21:10: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: To: Drew Adams Cc: 'Chong Yidong' , 'Angelo Graziosi' , 'Stefan Monnier' , 6774@debbugs.gnu.org, 'Miles Bader' Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.128095618213081 (code B ref 6774); Wed, 04 Aug 2010 21:10:02 +0000 Received: (at 6774) by debbugs.gnu.org; 4 Aug 2010 21:09:42 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OglDa-0003Ow-MP for submit@debbugs.gnu.org; Wed, 04 Aug 2010 17:09:42 -0400 Received: from harpegolden.net ([65.99.215.13]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OglDY-0003Or-Jt for 6774@debbugs.gnu.org; Wed, 04 Aug 2010 17:09:41 -0400 Received: from [87.198.55.208] (87-198-55-208.ptr.magnet.ie [87.198.55.208]) (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 9A9EC68474; Wed, 4 Aug 2010 22:10:04 +0100 (IST) Message-ID: <4C59D72D.1020901@harpegolden.net> Date: Wed, 04 Aug 2010 22:10:05 +0100 From: David De La Harpe Golden User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100620 Icedove/3.0.5 MIME-Version: 1.0 References: <4C55EF50.3080100@alice.it> <4C5645A1.7000500@harpegolden.net><87y6coby49.fsf@stupidchicken.com> <4C572AE6.7070104@harpegolden.net><871vaf69yk.fsf@catnip.gol.com> <4C583276.9080201@harpegolden.net><4C5839AD.1070100@harpegolden.net> <24D40AC336D84E32AA25A7144833C966@us.oracle.com> In-Reply-To: <24D40AC336D84E32AA25A7144833C966@us.oracle.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -1.5 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.8 (--) On 04/08/10 19:25, Drew Adams wrote: > Why not implement your changes ("improvements") as a new, optional alternative > behavior? While changing the defaults is certainly a new thing*, I'm sorry, but if you think the _option_ for the behaviour itself is new, then you have just been completely tuning it (and sometimes heated threads around it) out for some years now. Maybe you thought it didn't matter to your platform or something (which would be a perhaps understandable assumption, though a naive one given the way the w32 and ns ports work). select-active-regions and x-select-enable-primary were first added to emacs in late 2007 (rev 83308). They're in NEWS.23 mouse-drag-copy-region was apparently added in 2004 (rev 55223)), it's in NEWS.22 Using them to produce the desired behaviour has also been documented on EmacsWiki/CopyAndPaste since early '08 too, not that that's official documentation, just illustrating this is not new (people choosing to switch it on are rather less likely to do things that break it, though). From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 04 Aug 2010 21:37: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: To: "'David De La Harpe Golden'" Cc: 'Chong Yidong' , 'Angelo Graziosi' , 'Stefan Monnier' , 6774@debbugs.gnu.org, 'Miles Bader' Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.128095778013745 (code B ref 6774); Wed, 04 Aug 2010 21:37:01 +0000 Received: (at 6774) by debbugs.gnu.org; 4 Aug 2010 21:36:20 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OgldL-0003Ze-T3 for submit@debbugs.gnu.org; Wed, 04 Aug 2010 17:36:20 -0400 Received: from rcsinet10.oracle.com ([148.87.113.121]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OgldK-0003ZY-8s for 6774@debbugs.gnu.org; Wed, 04 Aug 2010 17:36:19 -0400 Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o74LahS2015611 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 4 Aug 2010 21:36:45 GMT Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o74LaenU025196; Wed, 4 Aug 2010 21:36:41 GMT Received: from abhmt014.oracle.com by acsmt353.oracle.com with ESMTP id 485772621280957760; Wed, 04 Aug 2010 14:36:00 -0700 Received: from dradamslap1 (/10.159.217.40) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 04 Aug 2010 14:35:59 -0700 From: "Drew Adams" References: <4C55EF50.3080100@alice.it> <4C5645A1.7000500@harpegolden.net><87y6coby49.fsf@stupidchicken.com> <4C572AE6.7070104@harpegolden.net><871vaf69yk.fsf@catnip.gol.com> <4C583276.9080201@harpegolden.net><4C5839AD.1070100@harpegolden.net> <24D40AC336D84E32AA25A7144833C966@us.oracle.com> <4C59D72D.1020901@harpegolden.net> Date: Wed, 4 Aug 2010 14:36:00 -0700 Message-ID: <9F304235B7CB4BFD86ADDACD87071545@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <4C59D72D.1020901@harpegolden.net> Thread-Index: Acs0Gh/yv9UEbYUSRx+Xg0Q/V+ryBAAAEUgg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5931 X-Source-IP: acsmt355.oracle.com [141.146.40.155] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090203.4C59DD6B.00E0:SCFMA4539814,ss=1,fgs=0 X-Spam-Score: -6.3 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.3 (------) > > Why not implement your changes ("improvements") as a new, > > optional alternative behavior? > > While changing the defaults is certainly a new thing*, I'm > sorry, but if you think the _option_ for the behaviour itself > is new, then you have just been completely tuning it (and > sometimes heated threads around it) out for some years now. > Maybe you thought it didn't matter to your > platform or something (which would be a perhaps understandable > assumption, though a naive one given the way the w32 and ns > ports work). > > select-active-regions and x-select-enable-primary were first > added to emacs in late 2007 (rev 83308). They're in NEWS.23 > > mouse-drag-copy-region was apparently added in 2004 (rev > 55223)), it's in NEWS.22 > > Using them to produce the desired behaviour has also been > documented on EmacsWiki/CopyAndPaste since early '08 too, not > that that's official documentation, just illustrating this is > not new (people choosing to switch it on are rather less likely > to do things that break it, though). I admit that I do not understand well all that you wrote or why you wrote it. You seem to be trying to show that the behavior you promote is not new, that it has been available optionally for some time. OK. I _thought_ that you were just fixing some real _bugs_. (And that those fixes were inappropriate for Windows according to Eli, so they would be reverted.) This is a _bug_ thread. Likewise for the other bugs filed wrt the recent selection changes. If you were _not_ adding any new behavior, because as you say now the alternative behaviors in question have long been available optionally, then are you _only_ trying to change the default behavior to be a previously optional one? If so then I have the same objection. A bug thread is not the place to monkey with the default behavior of Emacs. If you want to propose that the default behavior be changed to ABCDE, then propose that clearly on emacs-devel. Include a complete description of all of the behavior changes (consequences) involved, so people can understand clearly what you're proposing and discuss it. If the behavior that you want to propose as the new default has been around for a while and is familiar to people on emacs-devel, then so much the better for you. Those who are familiar with it will need less time experimenting with it and thinking about it in order to decide what they think about it becoming the default behavior. But just because someone might be aware of the existence of an optional behavior does not mean that they have tried it much or thought about it much. In any case, if you want to change the default behavior, then please make a clear proposal on emacs-devel. Thx. From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? Resent-From: Chong Yidong 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 00:18: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: To: "Drew Adams" Cc: 6774@debbugs.gnu.org, 'Miles Bader' , 'Stefan Monnier' , 'Angelo Graziosi' , 'David De La Harpe Golden' Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.128096742417904 (code B ref 6774); Thu, 05 Aug 2010 00:18:02 +0000 Received: (at 6774) by debbugs.gnu.org; 5 Aug 2010 00:17:04 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ogo8t-0004ej-Bv for submit@debbugs.gnu.org; Wed, 04 Aug 2010 20:17:03 -0400 Received: from pantheon-po45.its.yale.edu ([130.132.50.79]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ogo8s-0004eJ-GE for 6774@debbugs.gnu.org; Wed, 04 Aug 2010 20:17:03 -0400 Received: from furry (dhcp128036014221.central.yale.edu [128.36.14.221]) (authenticated bits=0) by pantheon-po45.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o750HTd8028648 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 4 Aug 2010 20:17:30 -0400 Received: by furry (Postfix, from userid 1000) id 0AE85C013; Wed, 4 Aug 2010 20:17:30 -0400 (EDT) From: Chong Yidong References: <4C55EF50.3080100@alice.it> <4C5645A1.7000500@harpegolden.net> <87y6coby49.fsf@stupidchicken.com> <4C572AE6.7070104@harpegolden.net> <871vaf69yk.fsf@catnip.gol.com> <4C583276.9080201@harpegolden.net> <4C5839AD.1070100@harpegolden.net> <24D40AC336D84E32AA25A7144833C966@us.oracle.com> <4C59D72D.1020901@harpegolden.net> <9F304235B7CB4BFD86ADDACD87071545@us.oracle.com> Date: Wed, 04 Aug 2010 20:17:29 -0400 In-Reply-To: <9F304235B7CB4BFD86ADDACD87071545@us.oracle.com> (Drew Adams's message of "Wed, 4 Aug 2010 14:36:00 -0700") Message-ID: <87fwyt29ra.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -2.7 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) "Drew Adams" writes: > I admit that I do not understand well all that you wrote or why you > wrote it... In any case, if you want to change the default behavior, > then please make a clear proposal on emacs-devel. Please stop belaboring the point. The reason for the changes has been explained to you, more than once. From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? Resent-From: "Drew Adams" 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 00:26: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: To: "'Chong Yidong'" Cc: 6774@debbugs.gnu.org, 'Miles Bader' , 'Stefan Monnier' , 'Angelo Graziosi' , 'David De La Harpe Golden' Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.128096791918130 (code B ref 6774); Thu, 05 Aug 2010 00:26:02 +0000 Received: (at 6774) by debbugs.gnu.org; 5 Aug 2010 00:25:19 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OgoGt-0004iN-4A for submit@debbugs.gnu.org; Wed, 04 Aug 2010 20:25:19 -0400 Received: from rcsinet10.oracle.com ([148.87.113.121]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OgoGr-0004iI-8A for 6774@debbugs.gnu.org; Wed, 04 Aug 2010 20:25:17 -0400 Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o750Pds4018978 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 5 Aug 2010 00:25:41 GMT Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o74JZxTo025390; Thu, 5 Aug 2010 00:25:38 GMT Received: from abhmt018.oracle.com by acsmt353.oracle.com with ESMTP id 467237421280967883; Wed, 04 Aug 2010 17:24:43 -0700 Received: from dradamslap1 (/10.159.216.55) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 04 Aug 2010 17:24:42 -0700 From: "Drew Adams" References: <4C55EF50.3080100@alice.it> <4C5645A1.7000500@harpegolden.net><87y6coby49.fsf@stupidchicken.com> <4C572AE6.7070104@harpegolden.net><871vaf69yk.fsf@catnip.gol.com> <4C583276.9080201@harpegolden.net><4C5839AD.1070100@harpegolden.net><24D40AC336D84E32AA25A7144833C966@us.oracle.com><4C59D72D.1020901@harpegolden.net><9F304235B7CB4BFD86ADDACD87071545@us.oracle.com> <87fwyt29ra.fsf@stupidchicken.com> Date: Wed, 4 Aug 2010 17:24:44 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <87fwyt29ra.fsf@stupidchicken.com> Thread-Index: Acs0M59AjP9XpetoRJ2uDnUjArK1qAAAEFmg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5931 X-Source-IP: acsmt355.oracle.com [141.146.40.155] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090205.4C5A0503.01AF:SCFMA4539814,ss=1,fgs=0 X-Spam-Score: -6.3 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.3 (------) > > I admit that I do not understand well all that you wrote or why you > > wrote it... In any case, if you want to change the default > > behavior, then please make a clear proposal on emacs-devel. > > Please stop belaboring the point. The reason for the changes has been > explained to you, more than once. I'm not concerned about the reason for the changes on Posix (although I am a bit curious). And AFAIK _no_ reason has been given for changing the default behavior on Windows. The only explanation I saw for the changes I've seen on Windows was that these were temporary bugs introduced accidentally and that would soon be corrected. Eli too asked that the previous default behavior be restored on Windows, IIUC. I thought that was going to happen, and I still hope that it will. From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? Resent-From: Chong Yidong 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 00:34: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: To: "Drew Adams" Cc: 6774@debbugs.gnu.org, 'Miles Bader' , 'Stefan Monnier' , 'Angelo Graziosi' , 'David De La Harpe Golden' Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.128096840718358 (code B ref 6774); Thu, 05 Aug 2010 00:34:02 +0000 Received: (at 6774) by debbugs.gnu.org; 5 Aug 2010 00:33:27 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OgoOk-0004m3-Uv for submit@debbugs.gnu.org; Wed, 04 Aug 2010 20:33:27 -0400 Received: from pantheon-po45.its.yale.edu ([130.132.50.79]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OgoOj-0004ly-4R for 6774@debbugs.gnu.org; Wed, 04 Aug 2010 20:33:25 -0400 Received: from furry (dhcp128036014221.central.yale.edu [128.36.14.221]) (authenticated bits=0) by pantheon-po45.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o750XrJN031904 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 4 Aug 2010 20:33:54 -0400 Received: by furry (Postfix, from userid 1000) id 0BDDBC013; Wed, 4 Aug 2010 20:33:54 -0400 (EDT) From: Chong Yidong References: <4C55EF50.3080100@alice.it> <4C5645A1.7000500@harpegolden.net> <87y6coby49.fsf@stupidchicken.com> <4C572AE6.7070104@harpegolden.net> <871vaf69yk.fsf@catnip.gol.com> <4C583276.9080201@harpegolden.net> <4C5839AD.1070100@harpegolden.net> <24D40AC336D84E32AA25A7144833C966@us.oracle.com> <4C59D72D.1020901@harpegolden.net> <9F304235B7CB4BFD86ADDACD87071545@us.oracle.com> <87fwyt29ra.fsf@stupidchicken.com> Date: Wed, 04 Aug 2010 20:33:53 -0400 In-Reply-To: (Drew Adams's message of "Wed, 4 Aug 2010 17:24:44 -0700") Message-ID: <8739ut28zy.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -2.7 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) "Drew Adams" writes: > I'm not concerned about the reason for the changes on Posix (although > I am a bit curious). And AFAIK _no_ reason has been given for > changing the default behavior on Windows. > > The only explanation I saw for the changes I've seen on Windows was > that these were temporary bugs introduced accidentally and that would > soon be corrected. Eli too asked that the previous default behavior > be restored on Windows, IIUC. I thought that was going to happen, and > I still hope that it will. The behavior on Windows will be fixed; in the meantime, there is no point adding hacks into the code to back out the changes just for Windows, which would have to be taken out later. The development sources are for development. From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? Resent-From: "Drew Adams" 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 00:42: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: To: "'Chong Yidong'" Cc: 6774@debbugs.gnu.org, 'Miles Bader' , 'Stefan Monnier' , 'Angelo Graziosi' , 'David De La Harpe Golden' Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.128096890818757 (code B ref 6774); Thu, 05 Aug 2010 00:42:01 +0000 Received: (at 6774) by debbugs.gnu.org; 5 Aug 2010 00:41:48 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OgoWq-0004sT-Fo for submit@debbugs.gnu.org; Wed, 04 Aug 2010 20:41:48 -0400 Received: from rcsinet10.oracle.com ([148.87.113.121]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OgoWo-0004sO-Rf for 6774@debbugs.gnu.org; Wed, 04 Aug 2010 20:41:47 -0400 Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o750gCKU009103 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 5 Aug 2010 00:42:14 GMT Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o73EvTEs025392; Thu, 5 Aug 2010 00:42:10 GMT Received: from abhmt008.oracle.com by acsmt354.oracle.com with ESMTP id 467260991280968850; Wed, 04 Aug 2010 17:40:50 -0700 Received: from dradamslap1 (/10.159.216.55) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 04 Aug 2010 17:40:50 -0700 From: "Drew Adams" References: <4C55EF50.3080100@alice.it> <4C5645A1.7000500@harpegolden.net><87y6coby49.fsf@stupidchicken.com> <4C572AE6.7070104@harpegolden.net><871vaf69yk.fsf@catnip.gol.com> <4C583276.9080201@harpegolden.net><4C5839AD.1070100@harpegolden.net><24D40AC336D84E32AA25A7144833C966@us.oracle.com><4C59D72D.1020901@harpegolden.net><9F304235B7CB4BFD86ADDACD87071545@us.oracle.com><87fwyt29ra.fsf@stupidchicken.com> <8739ut28zy.fsf@stupidchicken.com> Date: Wed, 4 Aug 2010 17:40:51 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <8739ut28zy.fsf@stupidchicken.com> Thread-Index: Acs0NeiS3Jgam7gaQIqfdtI7HuuK0QAAM6Tw X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5931 X-Source-IP: acsmt355.oracle.com [141.146.40.155] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A0B0202.4C5A08E3.0198:SCFMA4539814,ss=1,fgs=0 X-Spam-Score: -6.3 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.3 (------) > > I'm not concerned about the reason for the changes on Posix > > (although I am a bit curious). And AFAIK _no_ reason has > > been given for changing the default behavior on Windows. > > > > The only explanation I saw for the changes I've seen on Windows was > > that these were temporary bugs introduced accidentally and > > that would soon be corrected. Eli too asked that the previous > > default behavior be restored on Windows, IIUC. I thought that > > was going to happen, and I still hope that it will. > > The behavior on Windows will be fixed; in the meantime, there is no > point adding hacks into the code to back out the changes just for > Windows, which would have to be taken out later. The development > sources are for development. That all sounds good to me. Thanks. From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? Resent-From: Chong Yidong 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 02:21: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: To: David De La Harpe Golden Cc: 6774@debbugs.gnu.org, Angelo Graziosi Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.128097481321165 (code B ref 6774); Thu, 05 Aug 2010 02:21:02 +0000 Received: (at 6774) by debbugs.gnu.org; 5 Aug 2010 02:20:13 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ogq45-0005VK-D8 for submit@debbugs.gnu.org; Wed, 04 Aug 2010 22:20:13 -0400 Received: from pantheon-po41.its.yale.edu ([130.132.50.98]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ogq43-0005VF-I0 for 6774@debbugs.gnu.org; Wed, 04 Aug 2010 22:20:11 -0400 Received: from furry (dhcp128036014221.central.yale.edu [128.36.14.221]) (authenticated bits=0) by pantheon-po41.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o752KdwB006226 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 4 Aug 2010 22:20:39 -0400 Received: by furry (Postfix, from userid 1000) id CA82CC013; Wed, 4 Aug 2010 22:20:39 -0400 (EDT) From: Chong Yidong 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> Date: Wed, 04 Aug 2010 22:20:39 -0400 In-Reply-To: <4C573A2A.3030007@harpegolden.net> (David De La Harpe Golden's message of "Mon, 02 Aug 2010 22:35:38 +0100") Message-ID: <8762zphkaw.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -2.7 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) David De La Harpe Golden writes: > The problem is that we may really want the selection bound to > something _non-current_, if we don't want it to instantly reflect a > restored boring active region as per above. And there's the > two-windows-onto-the-same buffer case to consider 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. If this problem can't be solved simply, I would prefer to tweak the behavior of select-active-regions instead. Here's an idea: When the mark is set for a temporarily active region---a region created by mouse dragging or shift selection---we keep the current behavior; i.e. (x-set-selection 'PRIMARY (current-buffer)). Otherwise, do *not* call x-set-selection when setting the mark. Before any change to the buffer, save a copy of the region if the mark is active, whether or not the region is temporary. In deactivate-mark, whether or not the region is temporary, set the primary selection to the region that we just deactivated, or to the saved copy if that region is empty. The main difference, as you see, is that non-temporary regions made with C-SPC would not affect the primary selection until deactivation (either via buffer change, or commands such as M-w). From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? 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: To: Chong Yidong Cc: 6774@debbugs.gnu.org, Angelo Graziosi Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.128105217226385 (code B ref 6774); Thu, 05 Aug 2010 23:50:02 +0000 Received: (at 6774) by debbugs.gnu.org; 5 Aug 2010 23:49:32 +0000 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 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 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) Message-ID: <4C5B4E28.4090808@harpegolden.net> Date: Fri, 06 Aug 2010 00:50:00 +0100 From: David De La Harpe Golden User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100620 Icedove/3.0.5 MIME-Version: 1.0 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> In-Reply-To: <8762zphkaw.fsf@stupidchicken.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -1.4 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) 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. From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 Aug 2010 07:44: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: To: David De La Harpe Golden Cc: cyd@stupidchicken.com, 6774@debbugs.gnu.org, angelo.graziosi@alice.it Reply-To: Eli Zaretskii Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.12810806126110 (code B ref 6774); Fri, 06 Aug 2010 07:44:01 +0000 Received: (at 6774) by debbugs.gnu.org; 6 Aug 2010 07:43:32 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OhHaW-0001aV-8y for submit@debbugs.gnu.org; Fri, 06 Aug 2010 03:43:32 -0400 Received: from mtaout22.012.net.il ([80.179.55.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OhHaU-0001aQ-3u for 6774@debbugs.gnu.org; Fri, 06 Aug 2010 03:43:31 -0400 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0L6P00800ZYQ4R00@a-mtaout22.012.net.il> for 6774@debbugs.gnu.org; Fri, 06 Aug 2010 10:43:41 +0300 (IDT) Received: from HOME-C4E4A596F7 ([77.126.102.143]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L6Q008DN04S4F10@a-mtaout22.012.net.il>; Fri, 06 Aug 2010 10:43:41 +0300 (IDT) Date: Fri, 06 Aug 2010 10:43:47 +0300 From: Eli Zaretskii In-reply-to: <4C5B4E28.4090808@harpegolden.net> X-012-Sender: halo1@inter.net.il Message-id: <83pqxww5ho.fsf@gnu.org> 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> <4C5B4E28.4090808@harpegolden.net> X-Spam-Score: -0.6 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) > Date: Fri, 06 Aug 2010 00:50:00 +0100 > From: David De La Harpe Golden > Cc: 6774@debbugs.gnu.org, Angelo Graziosi > > 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). But that would mean setting the selection each time the user does a C-w or M-w or any other action that pushes text on the kill ring, won't it? If so, I'm afraid it would make Emacs routine ops significantly slower, and for no good reason: most Emacs ops have nothing to do with pasting in other apps. From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? 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: Fri, 06 Aug 2010 09:14: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: To: Eli Zaretskii Cc: cyd@stupidchicken.com, angelo.graziosi@alice.it, 6774@debbugs.gnu.org, David De La Harpe Golden Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.12810860028940 (code B ref 6774); Fri, 06 Aug 2010 09:14:02 +0000 Received: (at 6774) by debbugs.gnu.org; 6 Aug 2010 09:13:22 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OhIzS-0002K9-3p for submit@debbugs.gnu.org; Fri, 06 Aug 2010 05:13:22 -0400 Received: from impaqm4.telefonica.net ([213.4.138.4]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OhIzP-0002K4-6S for 6774@debbugs.gnu.org; Fri, 06 Aug 2010 05:13:20 -0400 Received: from IMPmailhost5.adm.correo ([10.20.102.126]) by IMPaqm4.telefonica.net with bizsmtp id quQD1e0092jdgqJ3QxDsDU; Fri, 06 Aug 2010 11:13:52 +0200 Received: from ceviche.home ([83.61.38.247]) by IMPmailhost5.adm.correo with BIZ IMP id qxDq1e00E5KwfZf1lxDrb0; Fri, 06 Aug 2010 11:13:51 +0200 X-Brightmail-Tracker: AAAAAA== X-TE-authinfo: authemail="monnier$movistar.es" |auth_email="monnier@movistar.es" X-TE-AcuTerraCos: auth_cuTerraCos="cosuitnetc01" Received: by ceviche.home (Postfix, from userid 20848) id 8781066125; Fri, 6 Aug 2010 11:13:50 +0200 (CEST) From: Stefan Monnier Message-ID: 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> <4C5B4E28.4090808@harpegolden.net> <83pqxww5ho.fsf@gnu.org> Date: Fri, 06 Aug 2010 11:13:50 +0200 In-Reply-To: <83pqxww5ho.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 06 Aug 2010 10:43:47 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -1.8 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.8 (-) > But that would mean setting the selection each time the user does a > C-w or M-w or any other action that pushes text on the kill ring, > won't it? Isn't that what Emacs has been doing for the last 10 years? Stefan From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 Aug 2010 10:51: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: To: Stefan Monnier Cc: cyd@stupidchicken.com, angelo.graziosi@alice.it, 6774@debbugs.gnu.org, david@harpegolden.net Reply-To: Eli Zaretskii Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.128109180813780 (code B ref 6774); Fri, 06 Aug 2010 10:51:02 +0000 Received: (at 6774) by debbugs.gnu.org; 6 Aug 2010 10:50:08 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OhKV6-0003aD-6l for submit@debbugs.gnu.org; Fri, 06 Aug 2010 06:50:08 -0400 Received: from mtaout20.012.net.il ([80.179.55.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OhKV4-0003Zo-6F for 6774@debbugs.gnu.org; Fri, 06 Aug 2010 06:50:07 -0400 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0L6Q00H008OV7L00@a-mtaout20.012.net.il> for 6774@debbugs.gnu.org; Fri, 06 Aug 2010 13:50:05 +0300 (IDT) Received: from HOME-C4E4A596F7 ([77.126.102.143]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L6Q00GVN8RGD1A0@a-mtaout20.012.net.il>; Fri, 06 Aug 2010 13:50:05 +0300 (IDT) Date: Fri, 06 Aug 2010 13:50:11 +0300 From: Eli Zaretskii In-reply-to: X-012-Sender: halo1@inter.net.il Message-id: <83iq3ovwv0.fsf@gnu.org> 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> <4C5B4E28.4090808@harpegolden.net> <83pqxww5ho.fsf@gnu.org> X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) > From: Stefan Monnier > Cc: David De La Harpe Golden , cyd@stupidchicken.com, 6774@debbugs.gnu.org, angelo.graziosi@alice.it > Date: Fri, 06 Aug 2010 11:13:50 +0200 > > > But that would mean setting the selection each time the user does a > > C-w or M-w or any other action that pushes text on the kill ring, > > won't it? > > Isn't that what Emacs has been doing for the last 10 years? Not as far as I know. Maybe I was living in some pipe dream, but I always thought the actual copying happened only when some other application actually requests the selection. From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? Resent-From: Kenichi Handa Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 Aug 2010 12:22: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: To: Eli Zaretskii Cc: cyd@stupidchicken.com, monnier@iro.umontreal.ca, 6774@debbugs.gnu.org, angelo.graziosi@alice.it Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.128109727218604 (code B ref 6774); Fri, 06 Aug 2010 12:22:02 +0000 Received: (at 6774) by debbugs.gnu.org; 6 Aug 2010 12:21:12 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OhLvE-0004q1-CZ for submit@debbugs.gnu.org; Fri, 06 Aug 2010 08:21:12 -0400 Received: from mx1.aist.go.jp ([150.29.246.133]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OhLvA-0004pm-Lt for 6774@debbugs.gnu.org; Fri, 06 Aug 2010 08:21:10 -0400 Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id o76CLX2F017806; Fri, 6 Aug 2010 21:21:34 +0900 (JST) env-from (handa@m17n.org) Received: from smtp2.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id o76CLXqc025048; Fri, 6 Aug 2010 21:21:33 +0900 (JST) env-from (handa@m17n.org) Received: by smtp2.aist.go.jp with ESMTP id o76CLVvK011631; Fri, 6 Aug 2010 21:21:31 +0900 (JST) env-from (handa@m17n.org) Received: from handa by etlken with local (Exim 4.71) (envelope-from ) id 1OhLvX-0004Oe-RB; Fri, 06 Aug 2010 21:21:31 +0900 From: Kenichi Handa In-Reply-To: <83iq3ovwv0.fsf@gnu.org> (message from Eli Zaretskii on Fri, 06 Aug 2010 13:50:11 +0300) 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> <4C5B4E28.4090808@harpegolden.net> <83pqxww5ho.fsf@gnu.org> <83iq3ovwv0.fsf@gnu.org> Date: Fri, 06 Aug 2010 21:21:31 +0900 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) In article <83iq3ovwv0.fsf@gnu.org>, Eli Zaretskii writes: > > > But that would mean setting the selection each time the user does a > > > C-w or M-w or any other action that pushes text on the kill ring, > > > won't it? > > > > Isn't that what Emacs has been doing for the last 10 years? > Not as far as I know. Maybe I was living in some pipe dream, but I > always thought the actual copying happened only when some other > application actually requests the selection. The following is my current understanding about Emacs 23 and the earlier. C-w or M-w leads to call of interprogram-cut-function which is usually bound to x-select-text. On X, it does rather complicated things. At first, it copies the data string to CUT_BUFFER0. Each window of X can have properties and CUT_BUFFER0 is one of them. So, the data is transferred from Emacs to X server, but it's not the inter-client copying. This is a semi-heavy process. Next, if x-select-enable-primary is non-nil (the default is t), Emacs declares to own PRIMARY selection. In this case, the data string is not copied but just saved in the internal list Vselection_alist. This is a light process. The saved data is transferred to another client later when requested. At last, if x-select-enable-clipboard is non-nil (the default is nil), Emacs declares to own CLIPBOARD selection. The treatment of the data string is the same as above, i.e. not copied. But!, if a clipboard client is also running (it seems that is the default on Ubuntu), as soon as Emacs owns CLIPBOARD selection, it requests to get CLIPBOARD selection data from Emacs, and the data is transferred from Emacs to the clipboard client. This is the inter-client copying, and a heavy process. So, Emacs had been doing some kind of copying on each C-w and M-w, but the default setting avoided the heaviest process. --- Kenichi Handa handa@m17n.org From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? 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: Fri, 06 Aug 2010 13:18: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: To: Kenichi Handa Cc: Eli Zaretskii , cyd@stupidchicken.com, 6774@debbugs.gnu.org, angelo.graziosi@alice.it Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.128110063820188 (code B ref 6774); Fri, 06 Aug 2010 13:18:02 +0000 Received: (at 6774) by debbugs.gnu.org; 6 Aug 2010 13:17:18 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OhMnW-0005FZ-Ew for submit@debbugs.gnu.org; Fri, 06 Aug 2010 09:17:18 -0400 Received: from smtprelay-b11.telenor.se ([62.127.194.20]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OhMnT-0005FS-UP for 6774@debbugs.gnu.org; Fri, 06 Aug 2010 09:17:16 -0400 Received: from ipb3.telenor.se (ipb3.telenor.se [195.54.127.166]) by smtprelay-b11.telenor.se (Postfix) with ESMTP id 0F40FD2C7 for <6774@debbugs.gnu.org>; Fri, 6 Aug 2010 15:17:48 +0200 (CEST) X-SENDER-IP: [85.225.45.35] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgEvAKOoW0xV4S0jPGdsb2JhbACHZ5hWDAEBAQE1LcQRhToE X-IronPort-AV: E=Sophos;i="4.55,328,1278280800"; d="scan'208";a="558061823" Received: from c-232de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.35]) by ipb3.telenor.se with ESMTP; 06 Aug 2010 15:17:48 +0200 Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 91EA17FA05A; Fri, 6 Aug 2010 15:17:47 +0200 (CEST) Message-ID: <4C5C0B7B.3080508@swipnet.se> Date: Fri, 06 Aug 2010 15:17:47 +0200 From: Jan =?UTF-8?Q?Dj=C3=A4rv?= User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 MIME-Version: 1.0 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> <4C5B4E28.4090808@harpegolden.net> <83pqxww5ho.fsf@gnu.org> <83iq3ovwv0.fsf@gnu.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.8 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.8 (--) Kenichi Handa skrev 2010-08-06 14.21: > > At first, it copies the data string to CUT_BUFFER0. Each > window of X can have properties and CUT_BUFFER0 is one of > them. So, the data is transferred from Emacs to X server, > but it's not the inter-client copying. This is a semi-heavy > process. > We should get rid of all cut buffer stuff now that we are modifying selections. Jan D. From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 Aug 2010 15:29: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: To: David De La Harpe Golden Cc: 6774@debbugs.gnu.org, Angelo Graziosi Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.128110850423610 (code B ref 6774); Fri, 06 Aug 2010 15:29:02 +0000 Received: (at 6774) by debbugs.gnu.org; 6 Aug 2010 15:28:24 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OhOqO-00068l-4m for submit@debbugs.gnu.org; Fri, 06 Aug 2010 11:28:24 -0400 Received: from pantheon-po45.its.yale.edu ([130.132.50.79]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OhOqL-00068e-M4 for 6774@debbugs.gnu.org; Fri, 06 Aug 2010 11:28:22 -0400 Received: from furry (dhcp128036014221.central.yale.edu [128.36.14.221]) (authenticated bits=0) by pantheon-po45.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o76FSrn6029681 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 6 Aug 2010 11:28:53 -0400 Received: by furry (Postfix, from userid 1000) id 445ADC013; Fri, 6 Aug 2010 11:28:53 -0400 (EDT) From: Chong Yidong 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> <4C5B4E28.4090808@harpegolden.net> Date: Fri, 06 Aug 2010 11:28:53 -0400 In-Reply-To: <4C5B4E28.4090808@harpegolden.net> (David De La Harpe Golden's message of "Fri, 06 Aug 2010 00:50:00 +0100") Message-ID: <87fwyr3glm.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -2.7 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) David De La Harpe Golden writes: > 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). Before discussing the underlying mechanics, let's figure out what the end result should be. The main question in my mind is this: for active regions made with C-SPC, as opposed to shift-selection or mouse dragging, do we want mere cursor motion to update the selection? (There is nothing analogous in other programs.) I think the best answer is no. From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? 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: Fri, 06 Aug 2010 20:18: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: To: Eli Zaretskii Cc: cyd@stupidchicken.com, Stefan Monnier , 6774@debbugs.gnu.org, angelo.graziosi@alice.it Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.128112584432106 (code B ref 6774); Fri, 06 Aug 2010 20:18:02 +0000 Received: (at 6774) by debbugs.gnu.org; 6 Aug 2010 20:17:24 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OhTM4-0008Ln-AN for submit@debbugs.gnu.org; Fri, 06 Aug 2010 16:17:24 -0400 Received: from harpegolden.net ([65.99.215.13]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OhTM2-0008Li-3y for 6774@debbugs.gnu.org; Fri, 06 Aug 2010 16:17:22 -0400 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 74E8A683A2; Fri, 6 Aug 2010 21:17:52 +0100 (IST) Message-ID: <4C5C6DF1.1030903@harpegolden.net> Date: Fri, 06 Aug 2010 21:17:53 +0100 From: David De La Harpe Golden User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100620 Icedove/3.0.5 MIME-Version: 1.0 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> <4C5B4E28.4090808@harpegolden.net> <83pqxww5ho.fsf@gnu.org> <83iq3ovwv0.fsf@gnu.org> In-Reply-To: <83iq3ovwv0.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.7 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) On 06/08/10 11:50, Eli Zaretskii wrote: >> From: Stefan Monnier >> Cc: David De La Harpe Golden, cyd@stupidchicken.com, 6774@debbugs.gnu.org, angelo.graziosi@alice.it >> Date: Fri, 06 Aug 2010 11:13:50 +0200 >> >>> But that would mean setting the selection each time the user does a >>> C-w or M-w or any other action that pushes text on the kill ring, >>> won't it? >> >> Isn't that what Emacs has been doing for the last 10 years? > > Not as far as I know. Maybe I was living in some pipe dream, but I > always thought the actual copying happened only when some other > application actually requests the selection. I was talking about a second level of intra-emacs laziness that exists in the present select-active-regions implementation, not inter-application stuff. See, on X11 you can x-set-selection the _emacs-level_ selection (stored internally on selection_alist) to a non-string value that merely references a buffer, so that when/if another application requests the selection, it is looked up all the way back to a buffer (or cons of markers). The current select-active-regions implementation works that way, and thereby avoids an emacs-internal string copy sometimes (in cases like C-w/M-w that internal copy happens anyway). My proposal was to consider that a premature optimization, go back to basics, then re-optimise by reintroducing some emacs-internal laziness in a more controlled fashion. From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? 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: Fri, 06 Aug 2010 20:23: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: To: Jan =?UTF-8?Q?Dj=C3=A4rv?= Cc: cyd@stupidchicken.com, angelo.graziosi@alice.it, 6774@debbugs.gnu.org, Kenichi Handa Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.128112617032259 (code B ref 6774); Fri, 06 Aug 2010 20:23:02 +0000 Received: (at 6774) by debbugs.gnu.org; 6 Aug 2010 20:22:50 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OhTRK-0008OG-0H for submit@debbugs.gnu.org; Fri, 06 Aug 2010 16:22:50 -0400 Received: from harpegolden.net ([65.99.215.13]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OhTRH-0008O7-BJ for 6774@debbugs.gnu.org; Fri, 06 Aug 2010 16:22:47 -0400 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 BCFE6683A2; Fri, 6 Aug 2010 21:23:17 +0100 (IST) Message-ID: <4C5C6F37.7080805@harpegolden.net> Date: Fri, 06 Aug 2010 21:23:19 +0100 From: David De La Harpe Golden User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100620 Icedove/3.0.5 MIME-Version: 1.0 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> <4C5B4E28.4090808@harpegolden.net> <83pqxww5ho.fsf@gnu.org> <83iq3ovwv0.fsf@gnu.org> <4C5C0B7B.3080508@swipnet.se> In-Reply-To: <4C5C0B7B.3080508@swipnet.se> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.7 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) On 06/08/10 14:17, Jan Dj=C3=A4rv wrote: > We should get rid of all cut buffer stuff now that we are modifying > selections. That definitely would be nice, they're quite thoroughly obsolete and a=20 significant complication in the x11 code. From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? 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: Fri, 06 Aug 2010 21:05: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: To: Chong Yidong Cc: 6774@debbugs.gnu.org, Angelo Graziosi Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.12811286961035 (code B ref 6774); Fri, 06 Aug 2010 21:05:01 +0000 Received: (at 6774) by debbugs.gnu.org; 6 Aug 2010 21:04:56 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OhU63-0000Ge-Cf for submit@debbugs.gnu.org; Fri, 06 Aug 2010 17:04:55 -0400 Received: from harpegolden.net ([65.99.215.13]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OhU61-0000GY-Kw for 6774@debbugs.gnu.org; Fri, 06 Aug 2010 17:04:53 -0400 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 264BC683A2; Fri, 6 Aug 2010 22:05:24 +0100 (IST) Message-ID: <4C5C7915.7080407@harpegolden.net> Date: Fri, 06 Aug 2010 22:05:25 +0100 From: David De La Harpe Golden User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100620 Icedove/3.0.5 MIME-Version: 1.0 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> <4C5B4E28.4090808@harpegolden.net> <87fwyr3glm.fsf@stupidchicken.com> In-Reply-To: <87fwyr3glm.fsf@stupidchicken.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -1.8 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) On 06/08/10 16:28, Chong Yidong wrote: > The main question in my mind is this: for active > regions made with C-SPC, as opposed to shift-selection or mouse > dragging, do we want mere cursor motion to update the selection? (There > is nothing analogous in other programs.) > > I think the best answer is no. Well, select-active-regions was introduced (though not made default) rather before the ^-type shift-selection appeared AFAIK. From my perspective, it would be breaking something that was largely working as initially intended and (unlike with the general defaults change) not giving the option of having it work the way it did* anymore (well, apart from patching it in locally, I'm hardly incapable of doing that). If you do choose to go that route, at least consider making c-spc active regions and shift/mouse active regions visually distinct, so the differing selection behaviour is less surprising (not how the secondary selection is presented in a different color in emacs, for example) - I mean, that was historically an annoyance with mouse selection, its interaction with x11 selection and the kill-ring was significantly different to keyboard selection, despite the similar presentation. * or at least, as it did, only with several now-known outstanding issues fixed, of course. From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 07 Aug 2010 19: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: To: David De La Harpe Golden Cc: 6774@debbugs.gnu.org, Angelo Graziosi Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.12812105885732 (code B ref 6774); Sat, 07 Aug 2010 19:50:02 +0000 Received: (at 6774) by debbugs.gnu.org; 7 Aug 2010 19:49:48 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OhpOu-0001UP-7h for submit@debbugs.gnu.org; Sat, 07 Aug 2010 15:49:48 -0400 Received: from pantheon-po18.its.yale.edu ([130.132.50.74]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OhpOs-0001UK-Hj for 6774@debbugs.gnu.org; Sat, 07 Aug 2010 15:49:47 -0400 Received: from furry (173-14-147-246-NewEngland.hfc.comcastbusiness.net [173.14.147.246]) (authenticated bits=0) by pantheon-po18.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o77JoLHc010398 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 7 Aug 2010 15:50:21 -0400 Received: by furry (Postfix, from userid 1000) id E0279C013; Sat, 7 Aug 2010 15:50:19 -0400 (EDT) From: Chong Yidong 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> <4C5B4E28.4090808@harpegolden.net> <87fwyr3glm.fsf@stupidchicken.com> <4C5C7915.7080407@harpegolden.net> Date: Sat, 07 Aug 2010 15:50:19 -0400 In-Reply-To: <4C5C7915.7080407@harpegolden.net> (David De La Harpe Golden's message of "Fri, 06 Aug 2010 22:05:25 +0100") Message-ID: <87hbj6jj7o.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -2.8 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.8 (--) David De La Harpe Golden writes: > Well, select-active-regions was introduced (though not made default) > rather before the ^-type shift-selection appeared AFAIK. From my > perspective, it would be breaking something that was largely working > as initially intended and (unlike with the general defaults change) > not giving the option of having it work the way it did* anymore (well, > apart from patching it in locally, I'm hardly incapable of doing > that). I've checked in some changes that should (fingers crossed) fix the "empty selection" problem. This also eliminates the use of x-set-selection to buffer variables, as you suggested. Now, Emacs copies strings out explicitly in the command loop and in `deactivate-mark'. I added a new value to `select-active-regions', `lazy' (the default), which means to set the selection only when used, as described in an earlier email. Any other non-nil value gives something similar to the original behavior of select-active-regions. From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 07 15:53:23 2010 Received: (at control) by debbugs.gnu.org; 7 Aug 2010 19:53:24 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OhpSN-0001WW-N6 for submit@debbugs.gnu.org; Sat, 07 Aug 2010 15:53:23 -0400 Received: from pantheon-po23.its.yale.edu ([130.132.50.117]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OhpSM-0001WQ-5N for control@debbugs.gnu.org; Sat, 07 Aug 2010 15:53:22 -0400 Received: from furry (173-14-147-246-NewEngland.hfc.comcastbusiness.net [173.14.147.246]) (authenticated bits=0) by pantheon-po23.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o77Jrxal022534 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sat, 7 Aug 2010 15:53:59 -0400 Received: by furry (Postfix, from userid 1000) id BBBA0C013; Sat, 7 Aug 2010 15:53:58 -0400 (EDT) From: Chong Yidong To: control@debbugs.gnu.org Subject: close 6774 Date: Sat, 07 Aug 2010 15:53:58 -0400 Message-ID: <87d3tuqjvt.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.8 (--) close 6774 thanks From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? 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: Sat, 07 Aug 2010 23:06: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: To: Chong Yidong Cc: 6774@debbugs.gnu.org, Angelo Graziosi Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.128122231112990 (code B ref 6774); Sat, 07 Aug 2010 23:06:02 +0000 Received: (at 6774) by debbugs.gnu.org; 7 Aug 2010 23:05:11 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OhsRy-0003NT-JP for submit@debbugs.gnu.org; Sat, 07 Aug 2010 19:05:10 -0400 Received: from harpegolden.net ([65.99.215.13]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OhsRw-0003NO-PV for 6774@debbugs.gnu.org; Sat, 07 Aug 2010 19:05:09 -0400 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 C39D068436; Sun, 8 Aug 2010 00:05:41 +0100 (IST) Message-ID: <4C5DE6C7.5080706@harpegolden.net> Date: Sun, 08 Aug 2010 00:05:43 +0100 From: David De La Harpe Golden User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100620 Icedove/3.0.5 MIME-Version: 1.0 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> <4C5B4E28.4090808@harpegolden.net> <87fwyr3glm.fsf@stupidchicken.com> <4C5C7915.7080407@harpegolden.net> <87hbj6jj7o.fsf@stupidchicken.com> In-Reply-To: <87hbj6jj7o.fsf@stupidchicken.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.0 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) On 07/08/10 20:50, Chong Yidong wrote: > I've checked in some changes that should (fingers crossed) fix the > "empty selection" problem. This also eliminates the use of > x-set-selection to buffer variables, as you suggested. Well, yeah, my suggestion involved eliminating that, but you don't seem to be implementing quite what my suggestion was as such, not that you had any obligation to of course. On the plus side, I don't think I can replicate Angelo's actual reported issue anymore. Anyhow, it will take me some time to fully understand the changes, especially with the C level more involved. The multi-window problem definitely isn't fixed. > I added a new value to `select-active-regions', `lazy' (the default), > which means to set the selection only when used, Perhaps unsurprisingly, I found it near-instantly annoying. Is the primary motivation concern about out-of-box efficiency? Otherwise I really don't get why it'd be desirable. From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? Resent-From: Angelo Graziosi Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 08 Aug 2010 17:08: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: To: Chong Yidong Cc: bug-gnu-emacs , David De La Harpe Golden Received: via spool by submit@debbugs.gnu.org id=B.128128727810471 (code B ref -1); Sun, 08 Aug 2010 17:08:01 +0000 Received: (at submit) by debbugs.gnu.org; 8 Aug 2010 17:07:58 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oi9Lp-0002iq-Fw for submit@debbugs.gnu.org; Sun, 08 Aug 2010 13:07:57 -0400 Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oi9Ln-0002il-Kf for submit@debbugs.gnu.org; Sun, 08 Aug 2010 13:07:56 -0400 Received: from lists.gnu.org ([199.232.76.165]:43075) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Oi9MU-0000d8-Lr for submit@debbugs.gnu.org; Sun, 08 Aug 2010 13:08:38 -0400 Received: from [140.186.70.92] (port=51467 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oi9MI-0002Pj-KN for bug-gnu-emacs@gnu.org; Sun, 08 Aug 2010 13:08:34 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RECEIVED_FROM_WINDOWS_HOST, T_RP_MATCHES_RCVD autolearn=no version=3.3.1 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OhsVG-0007Lo-2O for bug-gnu-emacs@gnu.org; Sat, 07 Aug 2010 19:08:34 -0400 Received: from smtp206.alice.it ([82.57.200.102]:50655) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OhsVF-0007Hh-Of for bug-gnu-emacs@gnu.org; Sat, 07 Aug 2010 19:08:34 -0400 Received: from [82.57.152.161] (82.57.152.161) by smtp206.alice.it (8.5.124.08) id 4C1A268C032CCA15; Sun, 8 Aug 2010 01:08:27 +0200 Message-ID: <4C5DE764.30508@alice.it> Date: Sun, 08 Aug 2010 01:08:20 +0200 From: Angelo Graziosi User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 MIME-Version: 1.0 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> <4C5B4E28.4090808@harpegolden.net> <87fwyr3glm.fsf@stupidchicken.com> <4C5C7915.7080407@harpegolden.net> <87hbj6jj7o.fsf@stupidchicken.com> In-Reply-To: <87hbj6jj7o.fsf@stupidchicken.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: Windows 98 (1) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -6.4 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.4 (------) For me the rev. 101018 fixes the bug I flagged. Thanks, Angelo. Il 07/08/2010 21.50, Chong Yidong ha scritto: > David De La Harpe Golden writes: > >> Well, select-active-regions was introduced (though not made default) >> rather before the ^-type shift-selection appeared AFAIK. From my >> perspective, it would be breaking something that was largely working >> as initially intended and (unlike with the general defaults change) >> not giving the option of having it work the way it did* anymore (well, >> apart from patching it in locally, I'm hardly incapable of doing >> that). > > I've checked in some changes that should (fingers crossed) fix the > "empty selection" problem. This also eliminates the use of > x-set-selection to buffer variables, as you suggested. Now, Emacs > copies strings out explicitly in the command loop and in > `deactivate-mark'. > > I added a new value to `select-active-regions', `lazy' (the default), > which means to set the selection only when used, as described in an > earlier email. Any other non-nil value gives something similar to the > original behavior of select-active-regions. From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 Aug 2010 02:56: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: To: David De La Harpe Golden Cc: 6774@debbugs.gnu.org, Angelo Graziosi Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.12813225206759 (code B ref 6774); Mon, 09 Aug 2010 02:56:01 +0000 Received: (at 6774) by debbugs.gnu.org; 9 Aug 2010 02:55:20 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OiIWF-0001ky-6i for submit@debbugs.gnu.org; Sun, 08 Aug 2010 22:55:19 -0400 Received: from pantheon-po14.its.yale.edu ([130.132.50.23]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OiIWC-0001kr-Vp for 6774@debbugs.gnu.org; Sun, 08 Aug 2010 22:55:17 -0400 Received: from furry (adsl-99-69-53-219.dsl.wlfrct.sbcglobal.net [99.69.53.219]) (authenticated bits=0) by pantheon-po14.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o792tsVc016944 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 8 Aug 2010 22:55:55 -0400 Received: by furry (Postfix, from userid 1000) id DF337C013; Sun, 8 Aug 2010 22:55:53 -0400 (EDT) From: Chong Yidong 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> <4C5B4E28.4090808@harpegolden.net> <87fwyr3glm.fsf@stupidchicken.com> <4C5C7915.7080407@harpegolden.net> <87hbj6jj7o.fsf@stupidchicken.com> <4C5DE6C7.5080706@harpegolden.net> Date: Sun, 08 Aug 2010 22:55:53 -0400 In-Reply-To: <4C5DE6C7.5080706@harpegolden.net> (David De La Harpe Golden's message of "Sun, 08 Aug 2010 00:05:43 +0100") Message-ID: <87vd7kcx52.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -3.2 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.3 (---) David De La Harpe Golden writes: >> I added a new value to `select-active-regions', `lazy' (the default), >> which means to set the selection only when used, > > Perhaps unsurprisingly, I found it near-instantly annoying. Is the > primary motivation concern about out-of-box efficiency? Otherwise I > really don't get why it'd be desirable. This approach is an effort to balance the expectations of other X applications, old Emacs behavior, and implementation simplicity/efficiency. There's no analogue to the Emacs's ordinary (C-SPC) active regions in other programs, and it's not even clear to me that it's good to set the primary selection under most circumstances. The original point of transient mark mode is to let you mark out a stretch of text to to operate on (e.g. comment, or search, or undo), and I don't know if it's really correct for us to set the primary selection at the same time. We can discuss the issue on emacs-devel, but first I'd like some time to think, and to see how the present behavior works in practice. From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? 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: Mon, 09 Aug 2010 15:30: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: To: Chong Yidong Cc: 6774@debbugs.gnu.org, Angelo Graziosi , David De La Harpe Golden Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.128136779430203 (code B ref 6774); Mon, 09 Aug 2010 15:30:02 +0000 Received: (at 6774) by debbugs.gnu.org; 9 Aug 2010 15:29:54 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OiUIT-0007r3-Pb for submit@debbugs.gnu.org; Mon, 09 Aug 2010 11:29:54 -0400 Received: from impaqm4.telefonica.net ([213.4.138.4]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OiUIR-0007qY-KG for 6774@debbugs.gnu.org; Mon, 09 Aug 2010 11:29:51 -0400 Received: from IMPmailhost4.adm.correo ([10.20.102.125]) by IMPaqm4.telefonica.net with bizsmtp id sD0J1e00D2iL0W23QFWYNC; Mon, 09 Aug 2010 17:30:32 +0200 Received: from ceviche.home ([83.40.4.203]) by IMPmailhost4.adm.correo with BIZ IMP id sFWY1e0044NokFF1kFWY2T; Mon, 09 Aug 2010 17:30:32 +0200 X-Brightmail-Tracker: AAAAAA== X-TE-authinfo: authemail="monnier$movistar.es" |auth_email="monnier@movistar.es" X-TE-AcuTerraCos: auth_cuTerraCos="cosuitnetc01" Received: by ceviche.home (Postfix, from userid 20848) id CACE566140; Mon, 9 Aug 2010 17:30:31 +0200 (CEST) From: Stefan Monnier In-Reply-To: <87vd7kcx52.fsf@stupidchicken.com> (Chong Yidong's message of "Sun, 08 Aug 2010 22:55:53 -0400") Date: Mon, 09 Aug 2010 13:43:52 +0200 Message-ID: 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> <4C5B4E28.4090808@harpegolden.net> <87fwyr3glm.fsf@stupidchicken.com> <4C5C7915.7080407@harpegolden.net> <87hbj6jj7o.fsf@stupidchicken.com> <4C5DE6C7.5080706@harpegolden.net> <87vd7kcx52.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -1.8 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.8 (-) > There's no analogue to the Emacs's ordinary (C-SPC) active regions in > other programs, and it's not even clear to me that it's good to set the > primary selection under most circumstances. The original point of > transient mark mode is to let you mark out a stretch of text to to > operate on (e.g. comment, or search, or undo), and I don't know if it's > really correct for us to set the primary selection at the same time. Indeed, I don't think it's good to do so. The old behavior of setting PRIMARY only when killing the text seems like the right behavior. Why would we want to change that? Stefan From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? 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: Mon, 09 Aug 2010 17:20: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: To: Stefan Monnier Cc: Chong Yidong , 6774@debbugs.gnu.org, Angelo Graziosi Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.1281374362871 (code B ref 6774); Mon, 09 Aug 2010 17:20:02 +0000 Received: (at 6774) by debbugs.gnu.org; 9 Aug 2010 17:19:22 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OiW0P-0000E0-Vw for submit@debbugs.gnu.org; Mon, 09 Aug 2010 13:19:22 -0400 Received: from smtprelay-h31.telenor.se ([213.150.131.4]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OiW0H-0000Dt-8c for 6774@debbugs.gnu.org; Mon, 09 Aug 2010 13:19:21 -0400 Received: from ipb2.telenor.se (ipb2.telenor.se [195.54.127.165]) by smtprelay-h31.telenor.se (Postfix) with ESMTP id 57118EB68B for <6774@debbugs.gnu.org>; Mon, 9 Aug 2010 19:19:54 +0200 (CEST) X-SENDER-IP: [85.225.45.35] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ar44AG3VX0xV4S0jPGdsb2JhbACgRAwBAQEBNS3EPoU6BA X-IronPort-AV: E=Sophos;i="4.55,344,1278280800"; d="scan'208";a="116229711" Received: from c-232de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.35]) by ipb2.telenor.se with ESMTP; 09 Aug 2010 19:19:53 +0200 Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 1AC8E7FA05A; Mon, 9 Aug 2010 19:19:53 +0200 (CEST) Message-ID: <4C6038B9.1090508@swipnet.se> Date: Mon, 09 Aug 2010 19:19:53 +0200 From: Jan =?UTF-8?Q?Dj=C3=A4rv?= User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 MIME-Version: 1.0 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> <4C5B4E28.4090808@harpegolden.net> <87fwyr3glm.fsf@stupidchicken.com> <4C5C7915.7080407@harpegolden.net> <87hbj6jj7o.fsf@stupidchicken.com> <4C5DE6C7.5080706@harpegolden.net> <87vd7kcx52.fsf@stupidchicken.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.8 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.8 (--) Stefan Monnier skrev 2010-08-09 13.43: >> There's no analogue to the Emacs's ordinary (C-SPC) active regions in >> other programs, and it's not even clear to me that it's good to set the >> primary selection under most circumstances. The original point of >> transient mark mode is to let you mark out a stretch of text to to >> operate on (e.g. comment, or search, or undo), and I don't know if it's >> really correct for us to set the primary selection at the same time. > > Indeed, I don't think it's good to do so. The old behavior of setting > PRIMARY only when killing the text seems like the right behavior. > Why would we want to change that? > Because it would conflict with http://standards.freedesktop.org/clipboards-spec/clipboards-latest.txt, and most other X applications set PRIMARY without an explicit kill or copy. And because it is convinient to be able to select text and then paste with middle button in another application. Other applications do have active regions, like gedit and OpenOffice for example. Please don't change this. Jan D. From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? 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: Tue, 10 Aug 2010 07:30:03 +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: To: Jan =?UTF-8?Q?Dj=C3=A4rv?= Cc: Chong Yidong , 6774@debbugs.gnu.org, Angelo Graziosi Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.128142536024679 (code B ref 6774); Tue, 10 Aug 2010 07:30:03 +0000 Received: (at 6774) by debbugs.gnu.org; 10 Aug 2010 07:29:20 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OijGy-0006Q0-9U for submit@debbugs.gnu.org; Tue, 10 Aug 2010 03:29:20 -0400 Received: from impaqm5.telefonica.net ([213.4.138.5]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OijGw-0006Pv-MR for 6774@debbugs.gnu.org; Tue, 10 Aug 2010 03:29:19 -0400 Received: from IMPmailhost4.adm.correo ([10.20.102.125]) by IMPaqm5.telefonica.net with bizsmtp id sWDi1e0042iL0W23RXW1Va; Tue, 10 Aug 2010 09:30:01 +0200 Received: from ceviche.home ([83.40.4.203]) by IMPmailhost4.adm.correo with BIZ IMP id sXW01e0044NokFF1kXW0zU; Tue, 10 Aug 2010 09:30:01 +0200 X-Brightmail-Tracker: AAAAAA== X-TE-authinfo: authemail="monnier$movistar.es" |auth_email="monnier@movistar.es" X-TE-AcuTerraCos: auth_cuTerraCos="cosuitnetc01" Received: by ceviche.home (Postfix, from userid 20848) id EAA7966138; Tue, 10 Aug 2010 09:29:59 +0200 (CEST) From: Stefan Monnier Message-ID: 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> <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> Date: Tue, 10 Aug 2010 09:29:59 +0200 In-Reply-To: <4C6038B9.1090508@swipnet.se> ("Jan =?UTF-8?Q?Dj=C3=A4rv"'s?= message of "Mon, 09 Aug 2010 19:19:53 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) >>> There's no analogue to the Emacs's ordinary (C-SPC) active regions in >>> other programs, and it's not even clear to me that it's good to set the >>> primary selection under most circumstances. The original point of >>> transient mark mode is to let you mark out a stretch of text to to >>> operate on (e.g. comment, or search, or undo), and I don't know if it's >>> really correct for us to set the primary selection at the same time. >> >> Indeed, I don't think it's good to do so. The old behavior of setting >> PRIMARY only when killing the text seems like the right behavior. >> Why would we want to change that? > Because it would conflict with > http://standards.freedesktop.org/clipboards-spec/clipboards-latest.txt, and > most other X applications set PRIMARY without an explicit kill or copy. That doesn't mean that C-SPC C-f should set PRIMARY. It just means that some other operations should be considered as forms of copy/kill. > And because it is convinient to be able to select text and then paste > with middle button in another application. Indeed, and Emacs-23 does that fine by saying that mouse-selection performs a `copy'. Stefan From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? 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, 10 Aug 2010 14:01: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: To: Stefan Monnier Cc: Chong Yidong , 6774@debbugs.gnu.org, Angelo Graziosi Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.12814488535196 (code B ref 6774); Tue, 10 Aug 2010 14:01:01 +0000 Received: (at 6774) by debbugs.gnu.org; 10 Aug 2010 14:00:53 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OipNs-0001Ll-Kj for submit@debbugs.gnu.org; Tue, 10 Aug 2010 10:00:52 -0400 Received: from smtprelay-h22.telenor.se ([195.54.99.197]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OipNp-0001Le-G6 for 6774@debbugs.gnu.org; Tue, 10 Aug 2010 10:00:50 -0400 Received: from ipb3.telenor.se (ipb3.telenor.se [195.54.127.166]) by smtprelay-h22.telenor.se (Postfix) with ESMTP id AFAECEBA43 for <6774@debbugs.gnu.org>; Tue, 10 Aug 2010 16:01:32 +0200 (CEST) X-SENDER-IP: [85.225.45.35] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Al0uAAz4YExV4S0jPGdsb2JhbACgVgwBAQEBNS3DJ4U6BA X-IronPort-AV: E=Sophos;i="4.55,348,1278280800"; d="scan'208";a="559849234" Received: from c-232de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.35]) by ipb3.telenor.se with ESMTP; 10 Aug 2010 16:01:32 +0200 Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 4C9E77FA05A; Tue, 10 Aug 2010 16:01:31 +0200 (CEST) Message-ID: <4C615BB9.8030905@swipnet.se> Date: Tue, 10 Aug 2010 16:01:29 +0200 From: Jan =?UTF-8?Q?Dj=C3=A4rv?= User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 MIME-Version: 1.0 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> <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> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.5 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.5 (--) Stefan Monnier skrev 2010-08-10 09.29: >>> Indeed, I don't think it's good to do so. The old behavior of setting >>> PRIMARY only when killing the text seems like the right behavior. >>> Why would we want to change that? > >> Because it would conflict with >> http://standards.freedesktop.org/clipboards-spec/clipboards-latest.txt, and >> most other X applications set PRIMARY without an explicit kill or copy. > > That doesn't mean that C-SPC C-f should set PRIMARY. It just means that > some other operations should be considered as forms of copy/kill. I think it should and so does the applications that claim to conform. Pressing Shift-Left Arrow starts a selection in those X applications, and that sets PRIMARY. C-SPC C-f is Emacs way of doing shift-selection as I see it. > >> And because it is convinient to be able to select text and then paste >> with middle button in another application. > > Indeed, and Emacs-23 does that fine by saying that mouse-selection > performs a `copy'. But emacs 23.1 at least does not do this for shift-selection. That is unlike the other X apps. Why not take ownership of PRIMARY in this case? It is not as it is a performance issue. You don't have to copy the text until someone asks for it. Jan D. From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? 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: Tue, 10 Aug 2010 15:54: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: To: Jan =?UTF-8?Q?Dj=C3=A4rv?= Cc: Chong Yidong , 6774@debbugs.gnu.org, Angelo Graziosi Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.12814556368256 (code B ref 6774); Tue, 10 Aug 2010 15:54:01 +0000 Received: (at 6774) by debbugs.gnu.org; 10 Aug 2010 15:53:56 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oir9H-000297-Vo for submit@debbugs.gnu.org; Tue, 10 Aug 2010 11:53:56 -0400 Received: from impaqm5.telefonica.net ([213.4.138.5]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oir9F-000290-Mq for 6774@debbugs.gnu.org; Tue, 10 Aug 2010 11:53:54 -0400 Received: from IMPmailhost4.adm.correo ([10.20.102.125]) by IMPaqm5.telefonica.net with bizsmtp id sfJV1e0092iL0W23RfuSh1; Tue, 10 Aug 2010 17:54:26 +0200 Received: from ceviche.home ([83.40.4.203]) by IMPmailhost4.adm.correo with BIZ IMP id sfuQ1e0024NokFF1kfuQtb; Tue, 10 Aug 2010 17:54:26 +0200 X-Brightmail-Tracker: AAAAAA== X-TE-authinfo: authemail="monnier$movistar.es" |auth_email="monnier@movistar.es" X-TE-AcuTerraCos: auth_cuTerraCos="cosuitnetc01" Received: by ceviche.home (Postfix, from userid 20848) id CCCA966138; Tue, 10 Aug 2010 17:54:23 +0200 (CEST) From: Stefan Monnier Message-ID: 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> <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> Date: Tue, 10 Aug 2010 17:54:23 +0200 In-Reply-To: <4C615BB9.8030905@swipnet.se> ("Jan =?UTF-8?Q?Dj=C3=A4rv"'s?= message of "Tue, 10 Aug 2010 16:01:29 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.1 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) > I think it should and so does the applications that claim to > conform. Pressing Shift-Left Arrow starts a selection in those > X applications, and that sets PRIMARY. C-SPC C-f is Emacs way of doing > shift-selection as I see it. We don't have to treat shift-selection in the same way that we treat C-SPC C-f. > But emacs 23.1 at least does not do this for shift-selection. That is > unlike the other X apps. Why not take ownership of PRIMARY in this case? > It is not as it is a performance issue. You don't have to copy the text > until someone asks for it. C-SPC may be used for other purposes (e.g. C-SPC C-SPC) Stefan From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? 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, 10 Aug 2010 17:59: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: To: Stefan Monnier Cc: Chong Yidong , 6774@debbugs.gnu.org, Angelo Graziosi Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.128146313911810 (code B ref 6774); Tue, 10 Aug 2010 17:59:01 +0000 Received: (at 6774) by debbugs.gnu.org; 10 Aug 2010 17:58:59 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oit6J-00034R-3D for submit@debbugs.gnu.org; Tue, 10 Aug 2010 13:58:59 -0400 Received: from smtprelay-b12.telenor.se ([62.127.194.21]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oit6H-00034L-Cp for 6774@debbugs.gnu.org; Tue, 10 Aug 2010 13:58:58 -0400 Received: from ipb1.telenor.se (ipb1.telenor.se [195.54.127.164]) by smtprelay-b12.telenor.se (Postfix) with ESMTP id 0F2B2EBD54 for <6774@debbugs.gnu.org>; Tue, 10 Aug 2010 19:59:40 +0200 (CEST) X-SENDER-IP: [85.225.45.35] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ah40ALswYUxV4S0jPGdsb2JhbACHZ5hEDAEBAQE1Lb0ahToE X-IronPort-AV: E=Sophos;i="4.55,349,1278280800"; d="scan'208";a="117643853" Received: from c-232de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.35]) by ipb1.telenor.se with ESMTP; 10 Aug 2010 19:59:40 +0200 Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id ABBD17FA05A; Tue, 10 Aug 2010 19:59:39 +0200 (CEST) Message-ID: <4C61938B.5080302@swipnet.se> Date: Tue, 10 Aug 2010 19:59:39 +0200 From: Jan =?UTF-8?Q?Dj=C3=A4rv?= User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 MIME-Version: 1.0 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> <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> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -3.0 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.0 (---) Stefan Monnier skrev 2010-08-10 17.54: >> I think it should and so does the applications that claim to >> conform. Pressing Shift-Left Arrow starts a selection in those >> X applications, and that sets PRIMARY. C-SPC C-f is Emacs way of doing >> shift-selection as I see it. > > We don't have to treat shift-selection in the same way that we treat > C-SPC C-f. No, but wouldn't that be confusing? Why not treat selection the same regardless of how it was made? Is it for backwards compability? > >> But emacs 23.1 at least does not do this for shift-selection. That is >> unlike the other X apps. Why not take ownership of PRIMARY in this case? >> It is not as it is a performance issue. You don't have to copy the text >> until someone asks for it. > > C-SPC may be used for other purposes (e.g. C-SPC C-SPC) In that case the selection would be empty, one should not take ownership of PRIMARY in that case. Jan D. From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? 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, 11 Aug 2010 15:07: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: To: Jan =?UTF-8?Q?Dj=C3=A4rv?= Cc: Chong Yidong , 6774@debbugs.gnu.org, Angelo Graziosi Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.128153920716382 (code B ref 6774); Wed, 11 Aug 2010 15:07:02 +0000 Received: (at 6774) by debbugs.gnu.org; 11 Aug 2010 15:06:47 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OjCtC-0004GB-JT for submit@debbugs.gnu.org; Wed, 11 Aug 2010 11:06:46 -0400 Received: from impaqm1.telefonica.net ([213.4.138.1]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OjCt9-0004G4-Ud for 6774@debbugs.gnu.org; Wed, 11 Aug 2010 11:06:44 -0400 Received: from IMPmailhost2.adm.correo ([10.20.102.39]) by IMPaqm1.telefonica.net with bizsmtp id t1hM1e0080r0BT60137K0V; Wed, 11 Aug 2010 17:07:19 +0200 Received: from ceviche.home ([83.40.4.203]) by IMPmailhost2.adm.correo with BIZ IMP id t37J1e00D4NokFF1i37KwW; Wed, 11 Aug 2010 17:07:19 +0200 X-Brightmail-Tracker: AAAAAA== X-TE-authinfo: authemail="monnier$movistar.es" |auth_email="monnier@movistar.es" X-TE-AcuTerraCos: auth_cuTerraCos="cosuitnetc01" Received: by ceviche.home (Postfix, from userid 20848) id 6142A660F0; Wed, 11 Aug 2010 17:07:18 +0200 (CEST) From: Stefan Monnier In-Reply-To: <4C61938B.5080302@swipnet.se> ("Jan \=\?iso-8859-1\?Q\?Dj\=E4rv\=22\?\= \=\?iso-8859-1\?Q\?'s\?\= message of "Tue, 10 Aug 2010 19:59:39 +0200") Date: Wed, 11 Aug 2010 09:46:14 +0200 Message-ID: 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> <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> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -0.3 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -0.8 (/) >> We don't have to treat shift-selection in the same way that we treat >> C-SPC C-f. > No, but wouldn't that be confusing? It's been that way in Emacs for a while and I can't remember any bug-report about it, so it doesn't seem like it's a real problem. > Why not treat selection the same regardless of how it was made? Is it > for backwards compability? Consistency is a good property, indeed. It's not always the most important one, tho. Backward compatibility is not the issue here, I think. The issue is "how do we implement it", AFAICT. > In that case the selection would be empty, one should not take ownership of > PRIMARY in that case. So the C-f (or any other movement) would cause the selection of PRIMARY? That would have to be performed in some kind of post-command-hook, which is undesirable. Stefan From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? 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: Wed, 11 Aug 2010 16:06: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: To: Stefan Monnier Cc: Chong Yidong , 6774@debbugs.gnu.org, Angelo Graziosi Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.128154274217840 (code B ref 6774); Wed, 11 Aug 2010 16:06:01 +0000 Received: (at 6774) by debbugs.gnu.org; 11 Aug 2010 16:05:42 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OjDoD-0004dh-Ui for submit@debbugs.gnu.org; Wed, 11 Aug 2010 12:05:42 -0400 Received: from smtprelay-b11.telenor.se ([62.127.194.20]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OjDoB-0004da-J8 for 6774@debbugs.gnu.org; Wed, 11 Aug 2010 12:05:40 -0400 Received: from ipb1.telenor.se (ipb1.telenor.se [195.54.127.164]) by smtprelay-b11.telenor.se (Postfix) with ESMTP id D4ED2EB7CB for <6774@debbugs.gnu.org>; Wed, 11 Aug 2010 18:06:25 +0200 (CEST) X-SENDER-IP: [85.225.45.35] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: At01AEZnYkxV4S0jPGdsb2JhbACHZ5hADAEBAQE1LbxshToE X-IronPort-AV: E=Sophos;i="4.55,353,1278280800"; d="scan'208";a="118109785" Received: from c-232de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.35]) by ipb1.telenor.se with ESMTP; 11 Aug 2010 18:06:25 +0200 Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 8F64F7FA05A; Wed, 11 Aug 2010 18:06:24 +0200 (CEST) Message-ID: <4C62CA7F.4050405@swipnet.se> Date: Wed, 11 Aug 2010 18:06:23 +0200 From: Jan =?UTF-8?Q?Dj=C3=A4rv?= User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 MIME-Version: 1.0 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> <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> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.5 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.5 (--) Stefan Monnier skrev 2010-08-11 09.46: >> In that case the selection would be empty, one should not take ownership of >> PRIMARY in that case. > > So the C-f (or any other movement) would cause the selection of PRIMARY? > That would have to be performed in some kind of post-command-hook, which > is undesirable. Transient-mark mode must know when the selection is non-empty. How does it do it? It is only when the selection becomes non-empty we have to take ownership of the PRIMARY selection. Once you own selection you don't have to re-own it again just because the selection changed. You would have to disown it if the selection became empty. Jan D. From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? 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, 11 Aug 2010 20:17: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: To: Jan =?UTF-8?Q?Dj=C3=A4rv?= Cc: Chong Yidong , 6774@debbugs.gnu.org, Angelo Graziosi Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.128155780024119 (code B ref 6774); Wed, 11 Aug 2010 20:17:01 +0000 Received: (at 6774) by debbugs.gnu.org; 11 Aug 2010 20:16:40 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OjHj5-0006Gy-S3 for submit@debbugs.gnu.org; Wed, 11 Aug 2010 16:16:40 -0400 Received: from impaqm5.telefonica.net ([213.4.138.5]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OjHj3-0006Gt-FU for 6774@debbugs.gnu.org; Wed, 11 Aug 2010 16:16:38 -0400 Received: from IMPmailhost3.adm.correo ([10.20.102.124]) by IMPaqm5.telefonica.net with bizsmtp id t8EQ1e0102h2L9m3R8HP1M; Wed, 11 Aug 2010 22:17:23 +0200 Received: from ceviche.home ([83.40.4.203]) by IMPmailhost3.adm.correo with BIZ IMP id t8HN1e0044NokFF1j8HNzZ; Wed, 11 Aug 2010 22:17:23 +0200 X-Brightmail-Tracker: AAAAAA== X-TE-authinfo: authemail="monnier$movistar.es" |auth_email="monnier@movistar.es" X-TE-AcuTerraCos: auth_cuTerraCos="cosuitnetc01" Received: by ceviche.home (Postfix, from userid 20848) id 1926F660F0; Wed, 11 Aug 2010 22:17:22 +0200 (CEST) From: Stefan Monnier Message-ID: 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> <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> <4C62CA7F.4050405@swipnet.se> Date: Wed, 11 Aug 2010 22:17:22 +0200 In-Reply-To: <4C62CA7F.4050405@swipnet.se> ("Jan =?UTF-8?Q?Dj=C3=A4rv"'s?= message of "Wed, 11 Aug 2010 18:06:23 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.0 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) > Transient-mark mode must know when the selection is non-empty. It doesn't have to know that at all times. Only when an operation is performed on the region, at which time it's trivial to compare (point) and (mark) to figure out if it's empty. Stefan From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? 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: Wed, 11 Aug 2010 21:25: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: To: Stefan Monnier Cc: Chong Yidong , "6774@debbugs.gnu.org" <6774@debbugs.gnu.org>, Angelo Graziosi Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.128156189625955 (code B ref 6774); Wed, 11 Aug 2010 21:25:02 +0000 Received: (at 6774) by debbugs.gnu.org; 11 Aug 2010 21:24:56 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OjInA-0006ka-Iy for submit@debbugs.gnu.org; Wed, 11 Aug 2010 17:24:56 -0400 Received: from smtprelay-h22.telenor.se ([195.54.99.197]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OjIn9-0006kV-5E for 6774@debbugs.gnu.org; Wed, 11 Aug 2010 17:24:55 -0400 Received: from ipb3.telenor.se (ipb3.telenor.se [195.54.127.166]) by smtprelay-h22.telenor.se (Postfix) with ESMTP id 02676E9E46 for <6774@debbugs.gnu.org>; Wed, 11 Aug 2010 23:25:41 +0200 (CEST) X-SENDER-IP: [85.225.45.35] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AuY1ANmxYkxV4S0jPGdsb2JhbACHZ5drYgwBAQEBNS28fYU6BA X-IronPort-AV: E=Sophos;i="4.55,354,1278280800"; d="scan'208";a="560466522" Received: from c-232de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.35]) by ipb3.telenor.se with ESMTP; 11 Aug 2010 23:25:41 +0200 Received: from [172.20.199.248] (janiphone [172.20.199.248]) by coolsville.localdomain (Postfix) with ESMTPSA id A12817FA05A; Wed, 11 Aug 2010 23:25:40 +0200 (CEST) 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> <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> <4C62CA7F.4050405@swipnet.se> In-Reply-To: Mime-Version: 1.0 (iPhone Mail 8A306) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Message-Id: X-Mailer: iPhone Mail (8A306) From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Date: Wed, 11 Aug 2010 23:26:20 +0200 X-Spam-Score: -1.8 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.8 (-) But some code must know where to put the region face. That happens at once. I= thought tmm did that. Jan D. 11 aug 2010 kl. 22:17 skrev Stefan Monnier : >> Transient-mark mode must know when the selection is non-empty. >=20 > It doesn't have to know that at all times. Only when an operation is > performed on the region, at which time it's trivial to compare (point) > and (mark) to figure out if it's empty. >=20 >=20 > Stefan From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? 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, 11 Aug 2010 21:32: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: To: Jan =?UTF-8?Q?Dj=C3=A4rv?= Cc: Chong Yidong , "6774@debbugs.gnu.org" <6774@debbugs.gnu.org>, Angelo Graziosi Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.128156227926137 (code B ref 6774); Wed, 11 Aug 2010 21:32:01 +0000 Received: (at 6774) by debbugs.gnu.org; 11 Aug 2010 21:31:19 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OjItJ-0006nW-QQ for submit@debbugs.gnu.org; Wed, 11 Aug 2010 17:31:17 -0400 Received: from impaqm1.telefonica.net ([213.4.138.1]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OjItI-0006nR-4O for 6774@debbugs.gnu.org; Wed, 11 Aug 2010 17:31:16 -0400 Received: from IMPmailhost2.adm.correo ([10.20.102.39]) by IMPaqm1.telefonica.net with bizsmtp id t9RH1e00P0r0BT6019Y2d5; Wed, 11 Aug 2010 23:32:02 +0200 Received: from ceviche.home ([83.40.4.203]) by IMPmailhost2.adm.correo with BIZ IMP id t9Y11e0034NokFF1i9Y14p; Wed, 11 Aug 2010 23:32:02 +0200 X-Brightmail-Tracker: AAAAAA== X-TE-authinfo: authemail="monnier$movistar.es" |auth_email="monnier@movistar.es" X-TE-AcuTerraCos: auth_cuTerraCos="cosuitnetc01" Received: by ceviche.home (Postfix, from userid 20848) id 2BD42660F0; Wed, 11 Aug 2010 23:32:01 +0200 (CEST) From: Stefan Monnier Message-ID: References: <4C55EF50.3080100@alice.it> <4C572AE6.7070104@harpegolden.net> <87wrs8ohnp.fsf@stupidchicken.com> <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> <4C62CA7F.4050405@swipnet.se> Date: Wed, 11 Aug 2010 23:32:01 +0200 In-Reply-To: ("Jan =?UTF-8?Q?Dj=C3=A4rv"'s?= message of "Wed, 11 Aug 2010 23:26:20 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.1 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) > But some code must know where to put the region face. Good point, but the region face is actually handled specially by the display engine (I'm not very happy with this special case, actually and would much rather than it be handled all in Elisp). Stefan From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? Resent-From: Kenichi Handa Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 12 Aug 2010 03:54: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: To: Stefan Monnier Cc: cyd@stupidchicken.com, jan.h.d@swipnet.se, 6774@debbugs.gnu.org, angelo.graziosi@alice.it Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.12815852113577 (code B ref 6774); Thu, 12 Aug 2010 03:54:02 +0000 Received: (at 6774) by debbugs.gnu.org; 12 Aug 2010 03:53:31 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OjOrD-0000ve-DX for submit@debbugs.gnu.org; Wed, 11 Aug 2010 23:53:31 -0400 Received: from mx1.aist.go.jp ([150.29.246.133]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OjOrA-0000vZ-RX for 6774@debbugs.gnu.org; Wed, 11 Aug 2010 23:53:30 -0400 Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id o7C3sAe4023744; Thu, 12 Aug 2010 12:54:10 +0900 (JST) env-from (handa@m17n.org) Received: from smtp1.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id o7C3sApc009494; Thu, 12 Aug 2010 12:54:10 +0900 (JST) env-from (handa@m17n.org) Received: by smtp1.aist.go.jp with ESMTP id o7C3s55s022034; Thu, 12 Aug 2010 12:54:05 +0900 (JST) env-from (handa@m17n.org) Received: from handa by etlken with local (Exim 4.71) (envelope-from ) id 1OjOrl-00029J-Df; Thu, 12 Aug 2010 12:54:05 +0900 From: Kenichi Handa In-Reply-To: (message from Stefan Monnier on Wed, 11 Aug 2010 09:46:14 +0200) 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> <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> Date: Thu, 12 Aug 2010 12:54:05 +0900 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.6 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) In article , Stefan Monnier writes: > So the C-f (or any other movement) would cause the selection of PRIMARY? When transient-mark-mode is on (including temporary one), I think yes. > That would have to be performed in some kind of post-command-hook, which > is undesirable. We can add a proper code to set_point_both like this code in init_iterator (xdisp.c). /* Non-zero if we should highlight the region. */ highlight_region_p = (!NILP (Vtransient_mark_mode) && !NILP (current_buffer->mark_active) && XMARKER (current_buffer->mark)->buffer != 0); /* Set IT->region_beg_charpos and IT->region_end_charpos to the start and end of a visible region in window IT->w. Set both to -1 to indicate no region. */ if (highlight_region_p /* Maybe highlight only in selected window. */ && (/* Either show region everywhere. */ [...] --- Kenichi Handa handa@m17n.org From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? 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: Thu, 12 Aug 2010 07:43: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: To: Kenichi Handa Cc: cyd@stupidchicken.com, Stefan Monnier , 6774@debbugs.gnu.org, angelo.graziosi@alice.it Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.12815989659366 (code B ref 6774); Thu, 12 Aug 2010 07:43:02 +0000 Received: (at 6774) by debbugs.gnu.org; 12 Aug 2010 07:42:45 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OjSR2-0002R1-O8 for submit@debbugs.gnu.org; Thu, 12 Aug 2010 03:42:44 -0400 Received: from smtprelay-b12.telenor.se ([62.127.194.21]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OjSR1-0002Qw-D3 for 6774@debbugs.gnu.org; Thu, 12 Aug 2010 03:42:44 -0400 Received: from ipb1.telenor.se (ipb1.telenor.se [195.54.127.164]) by smtprelay-b12.telenor.se (Postfix) with ESMTP id 199D4E9657 for <6774@debbugs.gnu.org>; Thu, 12 Aug 2010 09:43:31 +0200 (CEST) X-SENDER-IP: [85.225.45.35] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AuszAGtCY0xV4S0jPGdsb2JhbACHZ5hQDAEBAQE1Lbl/hToE X-IronPort-AV: E=Sophos;i="4.55,357,1278280800"; d="scan'208";a="118345230" Received: from c-232de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.35]) by ipb1.telenor.se with ESMTP; 12 Aug 2010 09:43:30 +0200 Received: from [172.20.199.14] (zeplinf [172.20.199.14]) by coolsville.localdomain (Postfix) with ESMTPSA id EB80F7FA05A; Thu, 12 Aug 2010 09:43:29 +0200 (CEST) Message-ID: <4C63A621.7020101@swipnet.se> Date: Thu, 12 Aug 2010 09:43:29 +0200 From: Jan =?UTF-8?Q?Dj=C3=A4rv?= User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 MIME-Version: 1.0 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> <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> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -3.0 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.0 (---) Kenichi Handa skrev 2010-08-12 05.54: > We can add a proper code to set_point_both like this code in > init_iterator (xdisp.c). > > /* Non-zero if we should highlight the region. */ > highlight_region_p > = (!NILP (Vtransient_mark_mode) > && !NILP (current_buffer->mark_active) > && XMARKER (current_buffer->mark)->buffer != 0); > Don't you have to check that point != mark also? Jan D. From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? Resent-From: Kenichi Handa Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 12 Aug 2010 07:51: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: To: Jan =?UTF-8?Q?Dj=C3=A4rv?= Cc: cyd@stupidchicken.com, monnier@iro.umontreal.ca, 6774@debbugs.gnu.org, angelo.graziosi@alice.it Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.12815994259566 (code B ref 6774); Thu, 12 Aug 2010 07:51:02 +0000 Received: (at 6774) by debbugs.gnu.org; 12 Aug 2010 07:50:25 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OjSYS-0002UF-Ui for submit@debbugs.gnu.org; Thu, 12 Aug 2010 03:50:25 -0400 Received: from mx1.aist.go.jp ([150.29.246.133]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OjSYP-0002U9-0g for 6774@debbugs.gnu.org; Thu, 12 Aug 2010 03:50:22 -0400 Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id o7C7p3AF016051; Thu, 12 Aug 2010 16:51:03 +0900 (JST) env-from (handa@m17n.org) Received: from smtp3.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id o7C7p3uK021451; Thu, 12 Aug 2010 16:51:03 +0900 (JST) env-from (handa@m17n.org) Received: by smtp3.aist.go.jp with ESMTP id o7C7p2Pn010941; Thu, 12 Aug 2010 16:51:02 +0900 (JST) env-from (handa@m17n.org) Received: from handa by etlken with local (Exim 4.71) (envelope-from ) id 1OjSZ4-0005QF-2J; Thu, 12 Aug 2010 16:51:02 +0900 From: Kenichi Handa In-Reply-To: <4C63A621.7020101@swipnet.se> (message from =?ISO-8859-1?Q?Jan_Dj=E4rv?= on Thu, 12 Aug 2010 09:43:29 +0200) 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> <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> <4C63A621.7020101@swipnet.se> Date: Thu, 12 Aug 2010 16:51:01 +0900 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.6 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) In article <4C63A621.7020101@swipnet.se>, Jan Dj=E4rv = writes: > Kenichi Handa skrev 2010-08-12 05.54: > > We can add a proper code to set_point_both like this code in > > init_iterator (xdisp.c). > > > > /* Non-zero if we should highlight the region. */ > > highlight_region_p > > =3D (!NILP (Vtransient_mark_mode) > > && !NILP (current_buffer->mark_active) > > && XMARKER (current_buffer->mark)->buffer !=3D 0); > > > Don't you have to check that point !=3D mark also? Yes, of course. The above code is just an example. --- Kenichi Handa handa@m17n.org From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? 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: Thu, 12 Aug 2010 08:29: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: To: Kenichi Handa Cc: cyd@stupidchicken.com, jan.h.d@swipnet.se, 6774@debbugs.gnu.org, angelo.graziosi@alice.it Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.128160169710486 (code B ref 6774); Thu, 12 Aug 2010 08:29:01 +0000 Received: (at 6774) by debbugs.gnu.org; 12 Aug 2010 08:28:17 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OjT97-0002j5-LH for submit@debbugs.gnu.org; Thu, 12 Aug 2010 04:28:17 -0400 Received: from impaqm2.telefonica.net ([213.4.138.2]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OjT95-0002iz-Jb for 6774@debbugs.gnu.org; Thu, 12 Aug 2010 04:28:16 -0400 Received: from IMPmailhost5.adm.correo ([10.20.102.126]) by IMPaqm2.telefonica.net with bizsmtp id tKLA1e00b2jdgqJ3MLV22s; Thu, 12 Aug 2010 10:29:02 +0200 Received: from ceviche.home ([88.12.128.176]) by IMPmailhost5.adm.correo with BIZ IMP id tLV11e00E3oVAVk1lLV2wz; Thu, 12 Aug 2010 10:29:02 +0200 X-Brightmail-Tracker: AAAAAA== X-TE-authinfo: authemail="monnier$movistar.es" |auth_email="monnier@movistar.es" X-TE-AcuTerraCos: auth_cuTerraCos="cosuitnetc01" Received: by ceviche.home (Postfix, from userid 20848) id 57320660F0; Thu, 12 Aug 2010 10:29:01 +0200 (CEST) From: Stefan Monnier Message-ID: 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> <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> Date: Thu, 12 Aug 2010 10:29:01 +0200 In-Reply-To: (Kenichi Handa's message of "Thu, 12 Aug 2010 12:54:05 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -1.8 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) >> So the C-f (or any other movement) would cause the selection of PRIMARY? > When transient-mark-mode is on (including temporary one), I > think yes. >> That would have to be performed in some kind of post-command-hook, which >> is undesirable. > We can add a proper code to set_point_both like this code in > init_iterator (xdisp.c). Putting it in set_point_both would be much worse than on post-command-hook (set-point-both is a very low-level function, triggered in many more cases than just moving the cursor). Stefan From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? Resent-From: Kenichi Handa Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 12 Aug 2010 12:15: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: To: Stefan Monnier Cc: cyd@stupidchicken.com, jan.h.d@swipnet.se, 6774@debbugs.gnu.org, angelo.graziosi@alice.it Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.128161524719065 (code B ref 6774); Thu, 12 Aug 2010 12:15:02 +0000 Received: (at 6774) by debbugs.gnu.org; 12 Aug 2010 12:14:07 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OjWff-0004xR-2D for submit@debbugs.gnu.org; Thu, 12 Aug 2010 08:14:07 -0400 Received: from mx1.aist.go.jp ([150.29.246.133]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OjWfc-0004x5-Km for 6774@debbugs.gnu.org; Thu, 12 Aug 2010 08:14:06 -0400 Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id o7CCEklh004324; Thu, 12 Aug 2010 21:14:46 +0900 (JST) env-from (handa@m17n.org) Received: from smtp1.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id o7CCEkTB003683; Thu, 12 Aug 2010 21:14:46 +0900 (JST) env-from (handa@m17n.org) Received: by smtp1.aist.go.jp with ESMTP id o7CCEiI0004137; Thu, 12 Aug 2010 21:14:44 +0900 (JST) env-from (handa@m17n.org) Received: from handa by etlken with local (Exim 4.71) (envelope-from ) id 1OjWgG-0007Fv-60; Thu, 12 Aug 2010 21:14:44 +0900 From: Kenichi Handa In-Reply-To: (message from Stefan Monnier on Thu, 12 Aug 2010 10:29:01 +0200) 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> <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> Date: Thu, 12 Aug 2010 21:14:43 +0900 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.6 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) In article , Stefan Monnier writes: >>> So the C-f (or any other movement) would cause the selection of PRIMARY? > > When transient-mark-mode is on (including temporary one), I > > think yes. >>> That would have to be performed in some kind of post-command-hook, which >>> is undesirable. > > We can add a proper code to set_point_both like this code in > > init_iterator (xdisp.c). > Putting it in set_point_both would be much worse than on > post-command-hook (set-point-both is a very low-level function, > triggered in many more cases than just moving the cursor). If a test to check if we have to newly own the PRIMARY selection is trivial, there should be no problem. Another candidate for checking that is somewher near here in command_loop_1 () (around line 1818). finalize: if (current_buffer == prev_buffer && last_point_position != PT && NILP (Vdisable_point_adjustment) && NILP (Vglobal_disable_point_adjustment)) { This place is similar to post-command-hook, but we can avoid unnecessary Lisp calls in many cases. --- Kenichi Handa handa@m17n.org From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? 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: Thu, 12 Aug 2010 16:10: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: To: Kenichi Handa Cc: cyd@stupidchicken.com, jan.h.d@swipnet.se, 6774@debbugs.gnu.org, angelo.graziosi@alice.it Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.128162935627917 (code B ref 6774); Thu, 12 Aug 2010 16:10:02 +0000 Received: (at 6774) by debbugs.gnu.org; 12 Aug 2010 16:09:16 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OjaLE-0007GE-1N for submit@debbugs.gnu.org; Thu, 12 Aug 2010 12:09:16 -0400 Received: from impaqm2.telefonica.net ([213.4.138.2]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OjaLB-0007G9-GC for 6774@debbugs.gnu.org; Thu, 12 Aug 2010 12:09:14 -0400 Received: from IMPmailhost2.adm.correo ([10.20.102.39]) by IMPaqm2.telefonica.net with bizsmtp id tTAn1e00F0r0BT63MU9VUt; Thu, 12 Aug 2010 18:09:29 +0200 Received: from ceviche.home ([88.12.128.176]) by IMPmailhost2.adm.correo with BIZ IMP id tU9U1e00F3oVAVk1iU9VPU; Thu, 12 Aug 2010 18:09:29 +0200 X-Brightmail-Tracker: AAAAAA== X-TE-authinfo: authemail="monnier$movistar.es" |auth_email="monnier@movistar.es" X-TE-AcuTerraCos: auth_cuTerraCos="cosuitnetc01" Received: by ceviche.home (Postfix, from userid 20848) id 6DF63660F0; Thu, 12 Aug 2010 18:09:28 +0200 (CEST) From: Stefan Monnier Message-ID: References: <4C55EF50.3080100@alice.it> <4C572AE6.7070104@harpegolden.net> <87wrs8ohnp.fsf@stupidchicken.com> <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> Date: Thu, 12 Aug 2010 18:09:28 +0200 In-Reply-To: (Kenichi Handa's message of "Thu, 12 Aug 2010 21:14:43 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) >> Putting it in set_point_both would be much worse than on >> post-command-hook (set-point-both is a very low-level function, >> triggered in many more cases than just moving the cursor). > If a test to check if we have to newly own the PRIMARY > selection is trivial, there should be no problem. And what do we do with the result of the check? This function too low-level to be able to perform the "set PRIMARY" from there. > Another candidate for checking that is somewher near here in > command_loop_1 () (around line 1818). > finalize: > if (current_buffer == prev_buffer > && last_point_position != PT > && NILP (Vdisable_point_adjustment) > && NILP (Vglobal_disable_point_adjustment)) > { > This place is similar to post-command-hook, but we can avoid > unnecessary Lisp calls in many cases. Yes, that's like post-command-hook. I'm more worried about the semantics than about the performance impact. Doing the "set PRIMARY" from C-w and friends is much easier and robust. Doing it in S-right is OK as well. Doing it in forward-char is not and doing it for `right' (by rebinding it to a new command) doesn't sound too attractive. Stefan From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? 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: Thu, 12 Aug 2010 17:11: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: To: Stefan Monnier Cc: cyd@stupidchicken.com, angelo.graziosi@alice.it, 6774@debbugs.gnu.org, Kenichi Handa Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.128163304129656 (code B ref 6774); Thu, 12 Aug 2010 17:11:02 +0000 Received: (at 6774) by debbugs.gnu.org; 12 Aug 2010 17:10:41 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OjbIf-0007iH-2d for submit@debbugs.gnu.org; Thu, 12 Aug 2010 13:10:41 -0400 Received: from smtprelay-h32.telenor.se ([213.150.131.5]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OjbIc-0007iB-NR for 6774@debbugs.gnu.org; Thu, 12 Aug 2010 13:10:39 -0400 Received: from ipb1.telenor.se (ipb1.telenor.se [195.54.127.164]) by smtprelay-h32.telenor.se (Postfix) with ESMTP id 6D287E8F07 for <6774@debbugs.gnu.org>; Thu, 12 Aug 2010 19:11:27 +0200 (CEST) X-SENDER-IP: [85.225.45.35] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ar44AALIY0xV4S0jPGdsb2JhbACHZ5hNDAEBAQE1Lb44hToE X-IronPort-AV: E=Sophos;i="4.55,359,1278280800"; d="scan'208";a="118546410" Received: from c-232de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.35]) by ipb1.telenor.se with ESMTP; 12 Aug 2010 19:11:26 +0200 Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 4FD977FA05A; Thu, 12 Aug 2010 19:11:26 +0200 (CEST) Message-ID: <4C642B3C.9000800@swipnet.se> Date: Thu, 12 Aug 2010 19:11:24 +0200 From: Jan =?UTF-8?Q?Dj=C3=A4rv?= User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 MIME-Version: 1.0 References: <4C55EF50.3080100@alice.it> <4C572AE6.7070104@harpegolden.net> <87wrs8ohnp.fsf@stupidchicken.com> <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> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.5 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.5 (--) Stefan Monnier skrev 2010-08-12 18.09: > I'm more worried about the semantics than about the performance impact. > Doing the "set PRIMARY" from C-w and friends is much easier and robust. How so? Just moving the cursor because of a C-f involves a lot more X calls that taking ownership of the PRIMARY selection. I don't understand how robustness is affected. If you want you can add lisp events that announce if the selection is non-empty and when it is empty and do things from lisp. Jan D. From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? Resent-From: Kenichi Handa Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 13 Aug 2010 06:18: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: To: Stefan Monnier Cc: cyd@stupidchicken.com, jan.h.d@swipnet.se, 6774@debbugs.gnu.org, angelo.graziosi@alice.it Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.128168024422496 (code B ref 6774); Fri, 13 Aug 2010 06:18:01 +0000 Received: (at 6774) by debbugs.gnu.org; 13 Aug 2010 06:17:24 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OjnZz-0005qn-Q5 for submit@debbugs.gnu.org; Fri, 13 Aug 2010 02:17:24 -0400 Received: from mx1.aist.go.jp ([150.29.246.133]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OjnZx-0005qi-9F for 6774@debbugs.gnu.org; Fri, 13 Aug 2010 02:17:22 -0400 Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id o7D6I57P003079; Fri, 13 Aug 2010 15:18:05 +0900 (JST) env-from (handa@m17n.org) Received: from smtp1.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id o7D6I50w019765; Fri, 13 Aug 2010 15:18:05 +0900 (JST) env-from (handa@m17n.org) Received: by smtp1.aist.go.jp with ESMTP id o7D6I3o7002556; Fri, 13 Aug 2010 15:18:03 +0900 (JST) env-from (handa@m17n.org) Received: from handa by etlken with local (Exim 4.71) (envelope-from ) id 1Ojnad-00004x-7r; Fri, 13 Aug 2010 15:18:03 +0900 From: Kenichi Handa In-Reply-To: (message from Stefan Monnier on Thu, 12 Aug 2010 18:09:28 +0200) References: <4C55EF50.3080100@alice.it> <4C572AE6.7070104@harpegolden.net> <87wrs8ohnp.fsf@stupidchicken.com> <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> Date: Fri, 13 Aug 2010 15:18:03 +0900 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.6 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) In article , Stefan Monnier writes: >>> Putting it in set_point_both would be much worse than on >>> post-command-hook (set-point-both is a very low-level function, >>> triggered in many more cases than just moving the cursor). > > If a test to check if we have to newly own the PRIMARY > > selection is trivial, there should be no problem. > And what do we do with the result of the check? This function too > low-level to be able to perform the "set PRIMARY" from there. I don't know your criteria for "too low-level". > > Another candidate for checking that is somewher near here in > > command_loop_1 () (around line 1818). > > finalize: > > if (current_buffer == prev_buffer > > && last_point_position != PT > > && NILP (Vdisable_point_adjustment) > > && NILP (Vglobal_disable_point_adjustment)) > > { > > This place is similar to post-command-hook, but we can avoid > > unnecessary Lisp calls in many cases. > Yes, that's like post-command-hook. > I'm more worried about the semantics than about the performance impact. > Doing the "set PRIMARY" from C-w and friends is much easier and robust. > Doing it in S-right is OK as well. Doing it in forward-char is not and > doing it for `right' (by rebinding it to a new command) doesn't sound > too attractive. I was wordering how "S-right" (and S-C-f, etc) are implemented. So, I read the code and was surprized by its complication. For every S-C-f, read_key_sequence sets this-command-keys-shift-translated to t and read_key_sequence_cmd to forward-char. Next, Fcall_interactively calls handle-shift-selection, and it sets transient-mark-mode to a special cons (only . ...). At last, command_loop_1, after execuing forward-char, does some check and eventually calls x-set-selection. The detail is more complicated. I don't claim that the code is too complicated. Perhaps, there's no other way; I don't know. Anyway, we are already doing that for forward-char. Doing a little bit more in command_loop_1 (and/or maybe in Fcall_interactively) shouldn't be a problem. It doesn't change the semantics of forward-char (as well as handling of S-C-f like above doesn't change the semantics). At least, command_loop_1 is not "too low-level" for calling x-set-selection. And, first of all, from a user point of view, as these two highlights a region exactly the same way (with the default setting), (1) S-C-n (2) C-@ C-n it's very confusing that they behave differently as to selection. --- Kenichi Handa handa@m17n.org From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? 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: Fri, 13 Aug 2010 10:38: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: To: Jan =?UTF-8?Q?Dj=C3=A4rv?= Cc: cyd@stupidchicken.com, angelo.graziosi@alice.it, 6774@debbugs.gnu.org, Kenichi Handa Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.128169584129301 (code B ref 6774); Fri, 13 Aug 2010 10:38:02 +0000 Received: (at 6774) by debbugs.gnu.org; 13 Aug 2010 10:37:21 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OjrdY-0007cY-O1 for submit@debbugs.gnu.org; Fri, 13 Aug 2010 06:37:21 -0400 Received: from impaqm5.telefonica.net ([213.4.138.5]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OjrdW-0007cA-2a for 6774@debbugs.gnu.org; Fri, 13 Aug 2010 06:37:18 -0400 Received: from IMPmailhost2.adm.correo ([10.20.102.39]) by IMPaqm5.telefonica.net with bizsmtp id tlCB1e00J0r0BT63Rme8ZN; Fri, 13 Aug 2010 12:38:08 +0200 Received: from ceviche.home ([88.7.8.175]) by IMPmailhost2.adm.correo with BIZ IMP id tme61e00U3mb5G81ime7eZ; Fri, 13 Aug 2010 12:38:08 +0200 X-Brightmail-Tracker: AAAAAA== X-TE-authinfo: authemail="monnier$movistar.es" |auth_email="monnier@movistar.es" X-TE-AcuTerraCos: auth_cuTerraCos="cosuitnetc01" Received: by ceviche.home (Postfix, from userid 20848) id A0DF6660F0; Fri, 13 Aug 2010 12:38:06 +0200 (CEST) From: Stefan Monnier Message-ID: 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> <4C642B3C.9000800@swipnet.se> Date: Fri, 13 Aug 2010 12:38:06 +0200 In-Reply-To: <4C642B3C.9000800@swipnet.se> ("Jan =?UTF-8?Q?Dj=C3=A4rv"'s?= message of "Thu, 12 Aug 2010 19:11:24 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.0 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) >> I'm more worried about the semantics than about the performance impact. >> Doing the "set PRIMARY" from C-w and friends is much easier and robust. > How so? Just moving the cursor because of a C-f involves a lot more X calls > that taking ownership of the PRIMARY selection. I don't understand how > robustness is affected. The issue with robustness (when talking about post-command-hook) doesn't have much to do with heavy X calls (or performance), unless of course those calls can hang. The issue of robustness is that post-command-hook is not always run when you want or need it. E.g. you may want to run your hook if point is moved by a process-filter (or you may want to run that hook when the user is queried via y-or-n-p), but post-command-hook is not involved there. And OTOH post-command-hook may very well be run in the middle of a command (if it reads from the minibuffer, for example). These corner cases make post-command-hook brittle. I think that for select-active-region to work the way you seem to want it to work (i.e. auto-select as soon as the region is active and non-empty), the "right hook" to use would be something like a redisplay-hook (i.e. an active region is selected if/when it gets displayed). I would welcome such a hook, BTW, especially if it gets run *before* redisplay. Could be useful for reveal-mode and maybe also to move the region-face handling to Elisp. Stefan From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? 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: Fri, 13 Aug 2010 10:40: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: To: Kenichi Handa Cc: cyd@stupidchicken.com, jan.h.d@swipnet.se, 6774@debbugs.gnu.org, angelo.graziosi@alice.it Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.128169598829429 (code B ref 6774); Fri, 13 Aug 2010 10:40:02 +0000 Received: (at 6774) by debbugs.gnu.org; 13 Aug 2010 10:39:48 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ojrfv-0007ec-57 for submit@debbugs.gnu.org; Fri, 13 Aug 2010 06:39:47 -0400 Received: from impaqm1.telefonica.net ([213.4.138.1]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ojrfs-0007di-Gf for 6774@debbugs.gnu.org; Fri, 13 Aug 2010 06:39:45 -0400 Received: from IMPmailhost5.adm.correo ([10.20.102.126]) by IMPaqm1.telefonica.net with bizsmtp id tmLA1e00Q2jdgqJ01mgbVu; Fri, 13 Aug 2010 12:40:35 +0200 Received: from ceviche.home ([88.7.8.175]) by IMPmailhost5.adm.correo with BIZ IMP id tmgZ1e00H3mb5G81lmgaex; Fri, 13 Aug 2010 12:40:35 +0200 X-Brightmail-Tracker: AAAAAA== X-TE-authinfo: authemail="monnier$movistar.es" |auth_email="monnier@movistar.es" X-TE-AcuTerraCos: auth_cuTerraCos="cosuitnetc01" Received: by ceviche.home (Postfix, from userid 20848) id C1FBB660F0; Fri, 13 Aug 2010 12:40:33 +0200 (CEST) From: Stefan Monnier Message-ID: 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> Date: Fri, 13 Aug 2010 12:40:33 +0200 In-Reply-To: (Kenichi Handa's message of "Fri, 13 Aug 2010 15:18:03 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.0 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) >>>> Putting it in set_point_both would be much worse than on >>>> post-command-hook (set-point-both is a very low-level function, >>>> triggered in many more cases than just moving the cursor). >> > If a test to check if we have to newly own the PRIMARY >> > selection is trivial, there should be no problem. >> And what do we do with the result of the check? This function too >> low-level to be able to perform the "set PRIMARY" from there. > I don't know your criteria for "too low-level". It's the same kind of level as the handling of the `intangible' property or of the various motion-hooks and those are notoriously problematic since they tend to break unrelated code which expects things like goto-char to have very few side-effects. Grep for inhibit-point-motion-hooks to have an idea of the problem. I'm sure we could make it work. But it's just a bad idea to go there. Doing it at the post-command-hook (aka command_loop_1) level is a much better alternative, although it suffers from several other problems. I.e. instead of breaking other code, it suffers from a lack of reliability because this hook has to handle many different cases, and sometimes it's not run at the time we need it (e.g. process filters, queries via read-event, ...). > I was wordering how "S-right" (and S-C-f, etc) are implemented. Pretty ugly. > So, I read the code and was surprized by its complication. For every > S-C-f, read_key_sequence sets this-command-keys-shift-translated to > t and read_key_sequence_cmd to forward-char. Important nitpick: it doesn't set it to "forward-char" but to "the command bound to the unshifted key" (i.e. same as it has always done, the only change for that S-C-f feature was to record the fact that the shift modifier had to be stripped to find the command). > Next, Fcall_interactively calls handle-shift-selection, and it sets > transient-mark-mode to a special cons (only . ...). At last, > command_loop_1, after execuing forward-char, does some check and > eventually calls x-set-selection. The detail is more complicated. The x-set-selection thingy for shift-selection should ideally be performed at the "same place" as the handle-shift-selection. But of course, if/since we do the x-set-selection for any active region (i.e. it's not specific to shift-selection), it makes sense to do it elsewhere. > Anyway, we are already doing that for forward-char. Doing a > little bit more in command_loop_1 (and/or maybe in > Fcall_interactively) shouldn't be a problem. It doesn't > change the semantics of forward-char (as well as handling of > S-C-f like above doesn't change the semantics). At least, > command_loop_1 is not "too low-level" for calling > x-set-selection. Yes, it's generally "OK" to do things in post-command-hook (aka command_loop_1), but it's brittle. > And, first of all, from a user point of view, as these two > highlights a region exactly the same way (with the default > setting), > (1) S-C-n > (2) C-@ C-n > it's very confusing that they behave differently as to > selection. I haven't seen any report indicating that users really get confused by that. But I'm not opposed to eliminating this confusion. 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. Stefan From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 13 Aug 2010 11:29: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: To: Stefan Monnier Cc: cyd@stupidchicken.com, jan.h.d@swipnet.se, 6774@debbugs.gnu.org, angelo.graziosi@alice.it Reply-To: Eli Zaretskii Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.128169892430727 (code B ref 6774); Fri, 13 Aug 2010 11:29:01 +0000 Received: (at 6774) by debbugs.gnu.org; 13 Aug 2010 11:28:44 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OjsRG-0007zY-VL for submit@debbugs.gnu.org; Fri, 13 Aug 2010 07:28:43 -0400 Received: from mtaout20.012.net.il ([80.179.55.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OjsRE-0007zT-AB for 6774@debbugs.gnu.org; Fri, 13 Aug 2010 07:28:41 -0400 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0L7300300978SV00@a-mtaout20.012.net.il> for 6774@debbugs.gnu.org; Fri, 13 Aug 2010 14:29:30 +0300 (IDT) Received: from HOME-C4E4A596F7 ([77.126.102.143]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L73003DI994T300@a-mtaout20.012.net.il>; Fri, 13 Aug 2010 14:29:29 +0300 (IDT) Date: Fri, 13 Aug 2010 14:29:35 +0300 From: Eli Zaretskii In-reply-to: X-012-Sender: halo1@inter.net.il Message-id: <83aaoqvjhc.fsf@gnu.org> 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> <4C642B3C.9000800@swipnet.se> X-Spam-Score: -2.0 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) > From: Stefan Monnier > Date: Fri, 13 Aug 2010 12:38:06 +0200 > Cc: cyd@stupidchicken.com, 6774@debbugs.gnu.org, angelo.graziosi@alice.it > > I think that for select-active-region to work the way you seem to want > it to work (i.e. auto-select as soon as the region is active and > non-empty), the "right hook" to use would be something like > a redisplay-hook (i.e. an active region is selected if/when it gets > displayed). I would welcome such a hook, BTW, especially if it gets run > *before* redisplay. What exactly do you mean by "*before*" here? Is it okay to do that in redisplay_internal, as one of the first things, for example? Note that it's quite common for redisplay_internal to make a few quick checks, decide that it has nothing to do, and return without redisplaying anything. From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? Resent-From: Kenichi Handa Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Aug 2010 08:16: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: To: Stefan Monnier Cc: cyd@stupidchicken.com, jan.h.d@swipnet.se, 6774@debbugs.gnu.org, angelo.graziosi@alice.it Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.128194652311444 (code B ref 6774); Mon, 16 Aug 2010 08:16:01 +0000 Received: (at 6774) by debbugs.gnu.org; 16 Aug 2010 08:15:23 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Okuqp-0002yX-7V for submit@debbugs.gnu.org; Mon, 16 Aug 2010 04:15:23 -0400 Received: from mx1.aist.go.jp ([150.29.246.133]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Okuql-0002yQ-Vc for 6774@debbugs.gnu.org; Mon, 16 Aug 2010 04:15:21 -0400 Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id o7G8GAxh007181; Mon, 16 Aug 2010 17:16:10 +0900 (JST) env-from (handa@m17n.org) Received: from smtp2.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id o7G8GAHb029921; Mon, 16 Aug 2010 17:16:10 +0900 (JST) env-from (handa@m17n.org) Received: by smtp2.aist.go.jp with ESMTP id o7G8G9oF007675; Mon, 16 Aug 2010 17:16:09 +0900 (JST) env-from (handa@m17n.org) Received: from handa by etlken with local (Exim 4.71) (envelope-from ) id 1OkurZ-0007IY-61; Mon, 16 Aug 2010 17:16:09 +0900 From: Kenichi Handa In-Reply-To: (message from Stefan Monnier on Fri, 13 Aug 2010 12:40:33 +0200) 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> Date: Mon, 16 Aug 2010 17:16:09 +0900 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) In article , Stefan Monnier writes: > > And, first of all, from a user point of view, as these two > > highlights a region exactly the same way (with the default > > setting), > > (1) S-C-n > > (2) C-@ C-n > > it's very confusing that they behave differently as to > > selection. > I haven't seen any report indicating that users really get confused > by that. As I don't like transient-mark-mode (both the default one and the temporary one), I have not used it. But, for the discussion of this thread, I tried it and found the current behaviour is confusing. > But I'm not opposed to eliminating this confusion. 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. How about this? We own the primary selection when mark is activated by C-@ in transient-mark-mode or C-@ C-@ not in transient-mark-mode, and record somehow that selection is owned that way (i.e. selection contents is a text in the region). At that time the contents is null, but I think it's not the problem. We do nothing special for all point moving commands (except for highlighting the region). When Emacs receives selection request, it returns the text in the region if the selection is still owned as the above way. We disown the selection when mark is deactivated. And any commands that cut/copy text own the selection too but in the different way (i.e. the way done by the current code). The handling of shift-selection and selecting-by-mouse-dragging can use this mechanism which causes less internal text-copying. --- Kenichi Handa handa@m17n.org From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? 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: Mon, 16 Aug 2010 08:51: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: To: Kenichi Handa Cc: cyd@stupidchicken.com, Stefan Monnier , 6774@debbugs.gnu.org, angelo.graziosi@alice.it Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.128194861212441 (code B ref 6774); Mon, 16 Aug 2010 08:51:01 +0000 Received: (at 6774) by debbugs.gnu.org; 16 Aug 2010 08:50:12 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OkvOU-0003Ec-MM for submit@debbugs.gnu.org; Mon, 16 Aug 2010 04:50:10 -0400 Received: from smtprelay-b11.telenor.se ([62.127.194.20]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OkvOS-0003EM-C3 for 6774@debbugs.gnu.org; Mon, 16 Aug 2010 04:50:09 -0400 Received: from ipb1.telenor.se (ipb1.telenor.se [195.54.127.164]) by smtprelay-b11.telenor.se (Postfix) with ESMTP id 6151CE8C37 for <6774@debbugs.gnu.org>; Mon, 16 Aug 2010 10:51:06 +0200 (CEST) X-SENDER-IP: [85.225.45.35] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvcyAA6ZaExV4S0jPGdsb2JhbACHZ5hYDAEBAQE1Laolj0mFOwQ X-IronPort-AV: E=Sophos;i="4.55,375,1278280800"; d="scan'208";a="119864799" Received: from c-232de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.35]) by ipb1.telenor.se with ESMTP; 16 Aug 2010 10:51:05 +0200 Received: from [172.20.199.2] (gaffa [172.20.199.2]) by coolsville.localdomain (Postfix) with ESMTP id 20CE17FA05A; Mon, 16 Aug 2010 10:51:04 +0200 (CEST) Message-ID: <4C68FBF7.1080104@swipnet.se> Date: Mon, 16 Aug 2010 10:51:03 +0200 From: Jan =?UTF-8?Q?Dj=C3=A4rv?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6 MIME-Version: 1.0 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> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.5 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.5 (--) 2010-08-16 10:16, Kenichi Handa skrev: > In article, Stefan Monnier writes: > >>> And, first of all, from a user point of view, as these two >>> highlights a region exactly the same way (with the default >>> setting), >>> (1) S-C-n >>> (2) C-@ C-n >>> it's very confusing that they behave differently as to >>> selection. > >> I haven't seen any report indicating that users really get confused >> by that. > > As I don't like transient-mark-mode (both the default one > and the temporary one), I have not used it. But, for the > discussion of this thread, I tried it and found the current > behaviour is confusing. > >> But I'm not opposed to eliminating this confusion. 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. > > How about this? > > We own the primary selection when mark is activated by C-@ > in transient-mark-mode or C-@ C-@ not in > transient-mark-mode, and record somehow that selection is > owned that way (i.e. selection contents is a text in the > region). At that time the contents is null, but I think > it's not the problem. We do nothing special for all point > moving commands (except for highlighting the region). When > Emacs receives selection request, it returns the text in the > region if the selection is still owned as the above way. We > disown the selection when mark is deactivated. > I though we where moving away from special cases? Anyway, empty selection do matter. Consider this case: I select a lot of code in another application. I go to Emacs and set mark, then paste the code with mouse-2 and then M-x indent-region. With your scheme, mouse-2 would fail to paste, which would be a nasty surprise. Jan D. From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? Resent-From: Kenichi Handa 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 01:45: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: To: Jan =?UTF-8?Q?Dj=C3=A4rv?= Cc: cyd@stupidchicken.com, monnier@iro.umontreal.ca, 6774@debbugs.gnu.org, angelo.graziosi@alice.it Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.128200945231078 (code B ref 6774); Tue, 17 Aug 2010 01:45:02 +0000 Received: (at 6774) by debbugs.gnu.org; 17 Aug 2010 01:44:12 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OlBDn-00085D-G6 for submit@debbugs.gnu.org; Mon, 16 Aug 2010 21:44:11 -0400 Received: from mx1.aist.go.jp ([150.29.246.133]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OlBDk-00084q-28 for 6774@debbugs.gnu.org; Mon, 16 Aug 2010 21:44:09 -0400 Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id o7H1j1h4016923; Tue, 17 Aug 2010 10:45:01 +0900 (JST) env-from (handa@m17n.org) Received: from smtp2.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id o7H1j1G4027125; Tue, 17 Aug 2010 10:45:01 +0900 (JST) env-from (handa@m17n.org) Received: by smtp2.aist.go.jp with ESMTP id o7H1ixxI010583; Tue, 17 Aug 2010 10:44:59 +0900 (JST) env-from (handa@m17n.org) Received: from handa by etlken with local (Exim 4.71) (envelope-from ) id 1OlBEZ-00005M-7c; Tue, 17 Aug 2010 10:44:59 +0900 From: Kenichi Handa In-Reply-To: <4C68FBF7.1080104@swipnet.se> (message from =?ISO-8859-1?Q?Jan_Dj=E4rv?= on Mon, 16 Aug 2010 10:51:03 +0200) 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> Date: Tue, 17 Aug 2010 10:44:59 +0900 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) In article <4C68FBF7.1080104@swipnet.se>, Jan Dj=E4rv = writes: > > We own the primary selection when mark is activated by C-@ > > in transient-mark-mode or C-@ C-@ not in > > transient-mark-mode, and record somehow that selection is > > owned that way (i.e. selection contents is a text in the > > region). At that time the contents is null, but I think > > it's not the problem. We do nothing special for all point > > moving commands (except for highlighting the region). When > > Emacs receives selection request, it returns the text in the > > region if the selection is still owned as the above way. We > > disown the selection when mark is deactivated. > > > I though we where moving away from special cases? Anyway, empty selectio= n do=20 > matter. Consider this case: > I select a lot of code in another application. > I go to Emacs and set mark, then paste the code with mouse-2 and then M-x= =20 > indent-region. > With your scheme, mouse-2 would fail to paste, which would be a nasty sur= prise. Surely this is not good. But which is a nastier surprise for new users, your case or my case below: >>> (1) S-C-n >>> (2) C-@ C-n >>> it's very confusing that they behave differently as to >>> selection. And, once we get used to that C-@ make Emacs own selection, we'll do your task in this order: "Set mark in Emacs, select a lot of code, paste it in Emacs, ...". Or, we can have something like this single command (don't take the code itself and the key-binding seriously). (defun mouse-yank-primary-and-select (click) (interactive "e") (mouse-set-point click) (push-mark) (mouse-yank-primary click)) (global-set-key [S-C-mouse-2] 'mouse-yank-primary-and-select) Though, please note that I myself still think it's better to modify command_loop_1 than chaning C-@ to own selection. --- Kenichi Handa handa@m17n.org From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? 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 05:52: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: To: Kenichi Handa Cc: cyd@stupidchicken.com, monnier@iro.umontreal.ca, 6774@debbugs.gnu.org, angelo.graziosi@alice.it Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.12820242814712 (code B ref 6774); Tue, 17 Aug 2010 05:52:01 +0000 Received: (at 6774) by debbugs.gnu.org; 17 Aug 2010 05:51:21 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OlF4z-0001Dx-O0 for submit@debbugs.gnu.org; Tue, 17 Aug 2010 01:51:21 -0400 Received: from smtprelay-h32.telenor.se ([213.150.131.5]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OlF4y-0001Ds-AO for 6774@debbugs.gnu.org; Tue, 17 Aug 2010 01:51:21 -0400 Received: from ipb2.telenor.se (ipb2.telenor.se [195.54.127.165]) by smtprelay-h32.telenor.se (Postfix) with ESMTP id B3D2EE8EE6 for <6774@debbugs.gnu.org>; Tue, 17 Aug 2010 07:52:20 +0200 (CEST) X-SENDER-IP: [85.225.45.35] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvcyACLAaUxV4S0jPGdsb2JhbACHZ5hjDAEBAQE1Lb1qhTsE X-IronPort-AV: E=Sophos;i="4.55,380,1278280800"; d="scan'208";a="119268636" Received: from c-232de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.35]) by ipb2.telenor.se with ESMTP; 17 Aug 2010 07:52:20 +0200 Received: from [172.20.199.14] (zeplinf [172.20.199.14]) by coolsville.localdomain (Postfix) with ESMTPSA id 729377FA05A; Tue, 17 Aug 2010 07:52:19 +0200 (CEST) Message-ID: <4C6A2393.9030309@swipnet.se> Date: Tue, 17 Aug 2010 07:52:19 +0200 From: Jan =?UTF-8?Q?Dj=C3=A4rv?= User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 MIME-Version: 1.0 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> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.5 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.5 (--) Kenichi Handa skrev 2010-08-17 03.44: > In article<4C68FBF7.1080104@swipnet.se>, Jan Dj=E4rv writes: > >> I though we where moving away from special cases? Anyway, empty selec= tion do >> matter. Consider this case: > >> I select a lot of code in another application. >> I go to Emacs and set mark, then paste the code with mouse-2 and then = M-x >> indent-region. > >> With your scheme, mouse-2 would fail to paste, which would be a nasty = surprise. > > Surely this is not good. But which is a nastier surprise > for new users, your case or my case below: > >>>> (1) S-C-n >>>> (2) C-@ C-n >>>> it's very confusing that they behave differently as to >>>> selection. They are both equally bad. I think we should add a hook to redisplay tha= t=20 gets called whenever selection is non-zero. Then that hook can do the ri= ght=20 thing. Jan D. From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? Resent-From: Eli Zaretskii 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 07:17: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: To: Jan =?UTF-8?Q?Dj=C3=A4rv?= Cc: cyd@stupidchicken.com, angelo.graziosi@alice.it, 6774@debbugs.gnu.org, handa@m17n.org Reply-To: Eli Zaretskii Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.12820293676876 (code B ref 6774); Tue, 17 Aug 2010 07:17:01 +0000 Received: (at 6774) by debbugs.gnu.org; 17 Aug 2010 07:16:07 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OlGP1-0001mr-0H for submit@debbugs.gnu.org; Tue, 17 Aug 2010 03:16:07 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OlGOz-0001mV-3k for 6774@debbugs.gnu.org; Tue, 17 Aug 2010 03:16:05 -0400 Received: from eliz by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1OlGPw-0006FB-P0; Tue, 17 Aug 2010 03:17:04 -0400 From: Eli Zaretskii In-reply-to: <4C6A2393.9030309@swipnet.se> (message from Jan =?UTF-8?Q?Dj=C3=A4rv?= on Tue, 17 Aug 2010 07:52:19 +0200) 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> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-Id: Date: Tue, 17 Aug 2010 03:17:04 -0400 X-Spam-Score: -6.5 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.5 (------) > Date: Tue, 17 Aug 2010 07:52:19 +0200 > From: Jan Djärv > 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? 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. From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? 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: To: Eli Zaretskii Cc: cyd@stupidchicken.com, angelo.graziosi@alice.it, 6774@debbugs.gnu.org, handa@m17n.org Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.12820334008676 (code B ref 6774); Tue, 17 Aug 2010 08:24:01 +0000 Received: (at 6774) by debbugs.gnu.org; 17 Aug 2010 08:23:20 +0000 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 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 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" 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 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) Message-ID: <4C6A4730.5090609@swipnet.se> Date: Tue, 17 Aug 2010 10:24:16 +0200 From: Jan =?UTF-8?Q?Dj=C3=A4rv?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6 MIME-Version: 1.0 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> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.5 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.5 (--) 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. From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? Resent-From: Eli Zaretskii 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 10:26: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: To: Jan =?UTF-8?Q?Dj=C3=A4rv?= Cc: cyd@stupidchicken.com, angelo.graziosi@alice.it, 6774@debbugs.gnu.org, handa@m17n.org Reply-To: Eli Zaretskii Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.128204072711992 (code B ref 6774); Tue, 17 Aug 2010 10:26:01 +0000 Received: (at 6774) by debbugs.gnu.org; 17 Aug 2010 10:25:27 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OlJME-00037N-5D for submit@debbugs.gnu.org; Tue, 17 Aug 2010 06:25:26 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OlJMB-00037G-HD for 6774@debbugs.gnu.org; Tue, 17 Aug 2010 06:25:24 -0400 Received: from eliz by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1OlJN8-0007j5-OT; Tue, 17 Aug 2010 06:26:22 -0400 From: Eli Zaretskii In-reply-to: <4C6A4730.5090609@swipnet.se> (message from Jan =?UTF-8?Q?Dj=C3=A4rv?= on Tue, 17 Aug 2010 10:24:16 +0200) 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> <4C6A4730.5090609@swipnet.se> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-Id: Date: Tue, 17 Aug 2010 06:26:22 -0400 X-Spam-Score: -6.5 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.5 (------) > Date: Tue, 17 Aug 2010 10:24:16 +0200 > From: Jan Djärv > CC: handa@m17n.org, cyd@stupidchicken.com, 6774@debbugs.gnu.org, > angelo.graziosi@alice.it > > 1. The region is different from previous redisplay. > 2. The region is not empty. > 3. The region is hightlighted. 2 and 3 are trivial, but 1 is slightly harder: we don't currently track whether region beginning and end changed. > > 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 thought > it better to hand it off out of redisplay. Accessing a Lisp variable from C is hardly a concern. From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? Resent-From: Kenichi Handa 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 11:43: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: To: Jan =?UTF-8?Q?Dj=C3=A4rv?= Cc: cyd@stupidchicken.com, monnier@iro.umontreal.ca, 6774@debbugs.gnu.org, angelo.graziosi@alice.it Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.128204533916546 (code B ref 6774); Tue, 17 Aug 2010 11:43:02 +0000 Received: (at 6774) by debbugs.gnu.org; 17 Aug 2010 11:42:19 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OlKYc-0004Ip-JP for submit@debbugs.gnu.org; Tue, 17 Aug 2010 07:42:18 -0400 Received: from mx1.aist.go.jp ([150.29.246.133]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OlKYZ-0004Ik-Ge for 6774@debbugs.gnu.org; Tue, 17 Aug 2010 07:42:16 -0400 Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id o7HBhBJm006994; Tue, 17 Aug 2010 20:43:11 +0900 (JST) env-from (handa@m17n.org) Received: from smtp4.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id o7HBhA5H024879; Tue, 17 Aug 2010 20:43:10 +0900 (JST) env-from (handa@m17n.org) Received: by smtp4.aist.go.jp with ESMTP id o7HBhAeY026641; Tue, 17 Aug 2010 20:43:10 +0900 (JST) env-from (handa@m17n.org) Received: from handa by etlken with local (Exim 4.71) (envelope-from ) id 1OlKZR-00012K-Vx; Tue, 17 Aug 2010 20:43:10 +0900 From: Kenichi Handa In-Reply-To: <4C6A2393.9030309@swipnet.se> (message from =?ISO-8859-1?Q?Jan_Dj=E4rv?= on Tue, 17 Aug 2010 07:52:19 +0200) 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> Date: Tue, 17 Aug 2010 20:43:09 +0900 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.6 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) In article <4C6A2393.9030309@swipnet.se>, Jan Dj=E4rv = writes: > They are both equally bad. I think we should add a hook to redisplay tha= t=20 > gets called whenever selection is non-zero. Then that hook can do the ri= ght=20 > thing. Why should redisplay concern selection? > It was said that only redisplay knows if the regions is non-empty and=20 > hightlighted. ??? If redisplay knows that, command_loop_1 should know that too. --- Kenichi Handa handa@m17n.org From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? 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: Tue, 17 Aug 2010 12:14: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: To: Kenichi Handa Cc: cyd@stupidchicken.com, Jan =?UTF-8?Q?Dj=C3=A4rv?= , 6774@debbugs.gnu.org, angelo.graziosi@alice.it Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.128204720617333 (code B ref 6774); Tue, 17 Aug 2010 12:14:01 +0000 Received: (at 6774) by debbugs.gnu.org; 17 Aug 2010 12:13:26 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OlL2k-0004VW-0i for submit@debbugs.gnu.org; Tue, 17 Aug 2010 08:13:26 -0400 Received: from impaqm1.telefonica.net ([213.4.138.1]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OlL2h-0004VO-1X for 6774@debbugs.gnu.org; Tue, 17 Aug 2010 08:13:23 -0400 Received: from IMPmailhost6.adm.correo ([10.20.102.127]) by IMPaqm1.telefonica.net with bizsmtp id vMMk1e0092kvMAa01QEDLo; Tue, 17 Aug 2010 14:14:13 +0200 Received: from ceviche.home ([88.7.8.175]) by IMPmailhost6.adm.correo with BIZ IMP id vQEC1e00B3mb5G81mQECqn; Tue, 17 Aug 2010 14:14:13 +0200 X-Brightmail-Tracker: AAAAAA== X-TE-authinfo: authemail="monnier$movistar.es" |auth_email="monnier@movistar.es" X-TE-AcuTerraCos: auth_cuTerraCos="cosuitnetc01" Received: by ceviche.home (Postfix, from userid 20848) id 33BC0660F0; Tue, 17 Aug 2010 14:14:12 +0200 (CEST) From: Stefan Monnier Message-ID: References: <4C55EF50.3080100@alice.it> <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> Date: Tue, 17 Aug 2010 14:14:12 +0200 In-Reply-To: (Kenichi Handa's message of "Tue, 17 Aug 2010 20:43:09 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.0 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.0 (--) >> They are both equally bad. 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. > Why should redisplay concern selection? Because the behavior we want is that "if the user has seen the region highlighted, then it has been selected". >> It was said that only redisplay knows if the regions is non-empty and >> hightlighted. > ??? If redisplay knows that, command_loop_1 should know that too. redisplay can happen at times when command_loop_1 is not involved (sit-for, read-event, ...). Stefan From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? Resent-From: Kenichi Handa 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 12:57: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: To: Stefan Monnier Cc: cyd@stupidchicken.com, jan.h.d@swipnet.se, 6774@debbugs.gnu.org, angelo.graziosi@alice.it Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.128204978518523 (code B ref 6774); Tue, 17 Aug 2010 12:57:01 +0000 Received: (at 6774) by debbugs.gnu.org; 17 Aug 2010 12:56:25 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OlLiL-0004oi-2l for submit@debbugs.gnu.org; Tue, 17 Aug 2010 08:56:25 -0400 Received: from mx1.aist.go.jp ([150.29.246.133]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OlLiH-0004oc-F7 for 6774@debbugs.gnu.org; Tue, 17 Aug 2010 08:56:23 -0400 Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id o7HCvGnA004416; Tue, 17 Aug 2010 21:57:16 +0900 (JST) env-from (handa@m17n.org) Received: from smtp1.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id o7HCvFl8009055; Tue, 17 Aug 2010 21:57:15 +0900 (JST) env-from (handa@m17n.org) Received: by smtp1.aist.go.jp with ESMTP id o7HCvEcZ015117; Tue, 17 Aug 2010 21:57:14 +0900 (JST) env-from (handa@m17n.org) Received: from handa by etlken with local (Exim 4.71) (envelope-from ) id 1OlLj8-00018x-8Z; Tue, 17 Aug 2010 21:57:14 +0900 From: Kenichi Handa In-Reply-To: (message from Stefan Monnier on Tue, 17 Aug 2010 14:14:12 +0200) References: <4C55EF50.3080100@alice.it> <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> Date: Tue, 17 Aug 2010 21:57:14 +0900 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.6 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) In article , Stefan Monnier writes: >>> They are both equally bad. 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. > > Why should redisplay concern selection? > 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? If so, the call of x-set-selection in command_loop_1 for handling shift-selection should also go to redisplay. 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. --- Kenichi Handa handa@m17n.org From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? 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: Tue, 17 Aug 2010 20:59: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: To: Stefan Monnier Cc: cyd@stupidchicken.com, angelo.graziosi@alice.it, 6774@debbugs.gnu.org, Kenichi Handa Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.12820787236089 (code B ref 6774); Tue, 17 Aug 2010 20:59:02 +0000 Received: (at 6774) by debbugs.gnu.org; 17 Aug 2010 20:58:43 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OlTF5-0001aA-0G for submit@debbugs.gnu.org; Tue, 17 Aug 2010 16:58:43 -0400 Received: from harpegolden.net ([65.99.215.13]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OlTF3-0001a5-7Q for 6774@debbugs.gnu.org; Tue, 17 Aug 2010 16:58:41 -0400 Received: from [87.198.55.160] (87-198-55-160.ptr.magnet.ie [87.198.55.160]) (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 EDD62683A2; Tue, 17 Aug 2010 21:59:38 +0100 (IST) Message-ID: <4C6AF83D.1020907@harpegolden.net> Date: Tue, 17 Aug 2010 21:59:41 +0100 From: David De La Harpe Golden User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100620 Icedove/3.0.5 MIME-Version: 1.0 References: <4C55EF50.3080100@alice.it> <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> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.7 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) On 17/08/10 13:14, Stefan Monnier wrote: >>> They are both equally bad. 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. >> Why should redisplay concern selection? > > Because the behavior we want is that "if the user has seen the region > highlighted, then it has been selected". I'd be wary doing it in redisplay might do it "too much" just like the old buffer-lazy implementation. Chong Yidong mentioned it on emacs-devel: > 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. From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? 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: To: Kenichi Handa Cc: cyd@stupidchicken.com, jan.h.d@swipnet.se, 6774@debbugs.gnu.org, angelo.graziosi@alice.it Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.128211622430245 (code B ref 6774); Wed, 18 Aug 2010 07:24:02 +0000 Received: (at 6774) by debbugs.gnu.org; 18 Aug 2010 07:23:44 +0000 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 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 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 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" Received: by ceviche.home (Postfix, from userid 20848) id 0A7FB660F0; Wed, 18 Aug 2010 09:24:32 +0200 (CEST) From: Stefan Monnier 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> Date: Wed, 18 Aug 2010 09:24:32 +0200 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) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -1.8 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) >> 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 From unknown Tue Aug 19 21:03:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6774: Cut and paste with C-w/mouse-2 not working? 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:25: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: To: David De La Harpe Golden Cc: cyd@stupidchicken.com, angelo.graziosi@alice.it, 6774@debbugs.gnu.org, Kenichi Handa Received: via spool by 6774-submit@debbugs.gnu.org id=B6774.128211629830319 (code B ref 6774); Wed, 18 Aug 2010 07:25:02 +0000 Received: (at 6774) by debbugs.gnu.org; 18 Aug 2010 07:24:58 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Old16-0007sy-Mu for submit@debbugs.gnu.org; Wed, 18 Aug 2010 03:24:56 -0400 Received: from impaqm4.telefonica.net ([213.4.138.4]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Old14-0007sp-T1 for 6774@debbugs.gnu.org; Wed, 18 Aug 2010 03:24:55 -0400 Received: from IMPmailhost2.adm.correo ([10.20.102.39]) by IMPaqm4.telefonica.net with bizsmtp id vhgq1e0060r0BT63QjRcdY; Wed, 18 Aug 2010 09:25:36 +0200 Received: from ceviche.home ([83.61.35.93]) by IMPmailhost2.adm.correo with BIZ IMP id vjRb1e00C20aCvn1ijRckJ; Wed, 18 Aug 2010 09:25:36 +0200 X-Brightmail-Tracker: AAAAAA== X-TE-authinfo: authemail="monnier$movistar.es" |auth_email="monnier@movistar.es" X-TE-AcuTerraCos: auth_cuTerraCos="cosuitnetc01" Received: by ceviche.home (Postfix, from userid 20848) id 7CCE2660F0; Wed, 18 Aug 2010 09:25:35 +0200 (CEST) From: Stefan Monnier 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> <4C6AF83D.1020907@harpegolden.net> Date: Wed, 18 Aug 2010 09:25:35 +0200 In-Reply-To: <4C6AF83D.1020907@harpegolden.net> (David De La Harpe Golden's message of "Tue, 17 Aug 2010 21:59:41 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) >> Because the behavior we want is that "if the user has seen the region >> highlighted, then it has been selected". > I'd be wary doing it in redisplay might do it "too much" just like the old > buffer-lazy implementation. Indeed, we need to be careful with it. IIUC the same risk exists with command_loop_1, but in any case, I agree that it can be delicate. Stefan