From unknown Tue Aug 19 06:31:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17211: Empty items show up in kill-ring if mouse-drag-copy-region is used Resent-From: Richard Smith Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 06 Apr 2014 23:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 17211 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 17211@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.13968286227183 (code B ref -1); Sun, 06 Apr 2014 23:58:02 +0000 Received: (at submit) by debbugs.gnu.org; 6 Apr 2014 23:57:02 +0000 Received: from localhost ([127.0.0.1]:38546 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WWwvt-0001rm-SO for submit@debbugs.gnu.org; Sun, 06 Apr 2014 19:57:02 -0400 Received: from eggs.gnu.org ([208.118.235.92]:40137) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WWv0I-000796-Oa for submit@debbugs.gnu.org; Sun, 06 Apr 2014 17:53:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WWv0H-0001EC-8w for submit@debbugs.gnu.org; Sun, 06 Apr 2014 17:53:26 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:35785) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WWv0H-0001E7-5g for submit@debbugs.gnu.org; Sun, 06 Apr 2014 17:53:25 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41859) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WWv0G-0000ae-1y for bug-gnu-emacs@gnu.org; Sun, 06 Apr 2014 17:53:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WWv0F-0001Dh-2i for bug-gnu-emacs@gnu.org; Sun, 06 Apr 2014 17:53:23 -0400 Received: from mail-wi0-x241.google.com ([2a00:1450:400c:c05::241]:49330) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WWv0E-0001Db-Nt for bug-gnu-emacs@gnu.org; Sun, 06 Apr 2014 17:53:23 -0400 Received: by mail-wi0-f193.google.com with SMTP id n15so1849717wiw.8 for ; Sun, 06 Apr 2014 14:53:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=CI27V3vLKY6xnWJ3tw8wZzPgLEgi0QY9xmdLSmvJhaE=; b=jlKb6NARsMNcte8k+TXwaSxzuZNSbrTaKDh7I5+15E06M1Mtcwe2bWc16+kHnaImZD Yy7BVZ95rzXLMmoL0j8Ue7Um3kJLggQZ/yrdBc/6Tqd6Ek2qOmWtF4b1BkHgyK7nEFO1 xuNoGnYo4ESAi8YnZiueQCpnxVkxTsJdc+609ruxG2N62RyQ8F1/N/3WOy+FEoc9xlJ+ ZUO/9CeSXwU3FW6Klsq/0cAc5JfNb+uND3jOdQTEhid6zUi29IuZWDNnTiSX72nXrt/X XOpn7MaJVZOB73yHVO2Hat1+UZIABE75ZRoecOOvN/ge+f4T3O65LoCJ/CaJKmGC4iYX zhgA== MIME-Version: 1.0 X-Received: by 10.194.188.41 with SMTP id fx9mr37913191wjc.56.1396821201236; Sun, 06 Apr 2014 14:53:21 -0700 (PDT) Received: by 10.216.240.200 with HTTP; Sun, 6 Apr 2014 14:53:21 -0700 (PDT) Date: Sun, 6 Apr 2014 14:53:21 -0700 Message-ID: From: Richard Smith Content-Type: multipart/alternative; boundary=047d7beb909c83b74704f666c752 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Mailman-Approved-At: Sun, 06 Apr 2014 19:57:00 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --047d7beb909c83b74704f666c752 Content-Type: text/plain; charset=ISO-8859-1 Emacs version: 24.3.1 Platform: Windows 7, confirmed in Linux Problem: Windows users who set up Emacs to cut/paste from the kill-ring get empty paste results. Details: Windows users who are having difficulty with cut/paste behavior are often advised to do the following: (setq select-active-regions nil) (setq mouse-drag-copy-region t) (global-set-key [mouse-2] 'mouse-yank-at-click) But if, in the process of pasting text, you click, then drag the mouse even a few pixels, this causes an empty string to go into the kill-ring, so a subsequent paste inserts nothing, but an examination of the kill-ring indicates the desired paste value has been pushed down by the empty string. Steps to reproduce: 1. Enter lisp-interaction mode. 2. Set up the "normal behavior" by executing this form: (progn (setq select-active-regions t) (setq mouse-drag-copy-region nil) (global-set-key [mouse-2] 'mouse-yank-primary)) 3. Select some text buy dragging mouse-1 over it. 4. Move to a different area in the buffer and set point with down-mouse-1, but move the mouse a few pixels so you see the "Mark Set" message. 5. Paste the text with down-mouse-2. 6. Observe the correct behavior (text gets pasted). 7. Now, set up the "modified behavior" by executing this form: (progn (setq select-active-regions nil) (setq mouse-drag-copy-region t) (global-set-key [mouse-2] 'mouse-yank-at-click)) 8. Repeat steps 3 thru 5. 9. Observe that nothing is pasted. 10. Execute the following form to "fix" the problem: (progn (setq kill-ring (remove "" kill-ring)) (setq kill-ring-yank-pointer kill-ring)) 11. Do the mouse-2 paste again, observe that it worked this time. --047d7beb909c83b74704f666c752 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Emacs version: 24.3.1=A0
Platform: Windows 7, confirmed in L= inux=A0

Problem:=A0

Windo= ws users who set up Emacs to cut/paste from the kill-ring get empty paste r= esults.=A0

Details:=A0

Windows users who = are having difficulty with cut/paste behavior are often advised to do the f= ollowing:=A0

(setq select-active-regions nil)=A0
(setq mouse-drag-copy-region t)=A0
(global-set-key [mouse-2]= 'mouse-yank-at-click)=A0

But if, in the proce= ss of pasting text, you click, then drag the mouse even a few pixels, this = causes an empty string to go into the kill-ring, so a subsequent paste inse= rts nothing, but an examination of the kill-ring indicates the desired past= e value has been pushed down by the empty string.=A0

Steps to reproduce:=A0

1. Ente= r lisp-interaction mode.=A0

2. Set up the "no= rmal behavior" by executing this form:=A0

(pr= ogn=A0
=A0 (setq select-active-regions t)=A0
=A0 (setq mouse-drag-c= opy-region nil)=A0
=A0 (global-set-key [mouse-2] 'mouse-yank-= primary))=A0

3. Select some text buy dragging mous= e-1 over it.=A0

4. Move to a different area in the buffer and set point= with down-mouse-1, but move the mouse a few pixels so you see the "Ma= rk Set" message.=A0

5. Paste the text with do= wn-mouse-2.=A0

6. Observe the correct behavior (text gets pasted).=A0<= /div>

7. Now, set up the "modified behavior" b= y executing this form:=A0

(progn=A0
=A0 = (setq select-active-regions nil)=A0
=A0 (setq mouse-drag-copy-region t)=A0
=A0 (global-set-key [= mouse-2] 'mouse-yank-at-click))=A0

8. Repeat s= teps 3 thru 5.=A0

9. Observe that nothing is paste= d.=A0

10. Execute the following form to "fix" the p= roblem:=A0

(progn=A0
=A0 (setq kill-ring= (remove "" kill-ring))=A0
=A0 (setq kill-ring-yank-poi= nter kill-ring))=A0

11. Do the mouse-2 paste again, observe that it worked = this time.=A0
--047d7beb909c83b74704f666c752-- From unknown Tue Aug 19 06:31:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17211: Empty items show up in kill-ring if mouse-drag-copy-region is used Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 11 May 2022 13:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17211 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Richard Smith Cc: 17211@debbugs.gnu.org Received: via spool by 17211-submit@debbugs.gnu.org id=B17211.165227590122648 (code B ref 17211); Wed, 11 May 2022 13:32:01 +0000 Received: (at 17211) by debbugs.gnu.org; 11 May 2022 13:31:41 +0000 Received: from localhost ([127.0.0.1]:36559 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nomRJ-0005t1-Dc for submit@debbugs.gnu.org; Wed, 11 May 2022 09:31:41 -0400 Received: from quimby.gnus.org ([95.216.78.240]:41502) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nomRG-0005lQ-Tr for 17211@debbugs.gnu.org; Wed, 11 May 2022 09:31:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=1QH7uosgoaJMTt8WhCu63fJq3Y3Re0UkF0BFwf32J8Y=; b=QkdYziRfd39tsynAqZTTytb47D ijUJubk/5ud7of64kPrQB5nDFQS3Nmp42RyWEoa8FnQPPMOgZ+Z6wLhmUhBaTBM2HczuJuAoEz6+S 1QjX2ixcy/9bbimzgayr9UG0Kshi4wnDDYnIJkXlHceXgqaYKfzFY/NUrZi4bQnX610g=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nomR8-0000DQ-7W; Wed, 11 May 2022 15:31:32 +0200 From: Lars Ingebrigtsen References: X-Now-Playing: Joni Mitchell's _Taming the Tiger_: "Stay in Touch" Date: Wed, 11 May 2022 15:31:29 +0200 In-Reply-To: (Richard Smith's message of "Sun, 6 Apr 2014 14:53:21 -0700") Message-ID: <87ee108aby.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Richard Smith writes: > 7. Now, set up the "modified behavior" by executing this form: > > (progn > (setq select-active-regions nil) > (setq mouse-drag-copy-region t) > (global-set-key [mouse-2] 'mouse-yank-at-click)) > > [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Richard Smith writes: > 7. Now, set up the "modified behavior" by executing this form: > > (progn > (setq select-active-regions nil) > (setq mouse-drag-copy-region t) > (global-set-key [mouse-2] 'mouse-yank-at-click)) > > 8. Repeat steps 3 thru 5. > > 9. Observe that nothing is pasted. (I'm going through old bug reports that unfortunately weren't resolved at the time.) I can reproduce the behaviour you're seeing in Emacs 29, but I'm not sure what else Emacs could do here. With `mouse-drag-copy-region' set, and in 4) you drag the mouse, so it copies that new region (even if that region is so short that you end up with ""). Hm... well, I guess we could change mouse-drag-copy-region so that if the region is very short (i.e., less than a character), then we don't put that onto the kill ring? Does anybody here object to making such a change? I guess it's possible that somebody is using a sub-character drag to set the mark, but it does seem unlikely. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Wed May 11 09:31:47 2022 Received: (at control) by debbugs.gnu.org; 11 May 2022 13:31:47 +0000 Received: from localhost ([127.0.0.1]:36562 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nomRO-0005xC-Nd for submit@debbugs.gnu.org; Wed, 11 May 2022 09:31:46 -0400 Received: from quimby.gnus.org ([95.216.78.240]:41516) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nomRM-0005rQ-VZ for control@debbugs.gnu.org; Wed, 11 May 2022 09:31:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=2iQhPU5Qe5y4SkXQ1IklO+wd4HHIz3QTLgQxIADQNTg=; b=ugOAb9KdzziPTiUNjS/iYm0Jak QdktOmbychGzhVu7cW2g8Rv2lPL1IOklKwxi1e7NqWsT7mPG8NhaVPIvueJW7ZcCNAaCKXHhFLtPA b/lRcNMQAT/dKsUVyy+llxsp+tZCs7d64KwQLm53TckcW93MkBvGdrLxBF4EpJKoh3UA=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nomRF-0000Da-1E for control@debbugs.gnu.org; Wed, 11 May 2022 15:31:38 +0200 Date: Wed, 11 May 2022 15:31:35 +0200 Message-Id: <87czgk8abs.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #17211 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 17211 + moreinfo quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tags 17211 + moreinfo quit From unknown Tue Aug 19 06:31:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17211: Empty items show up in kill-ring if mouse-drag-copy-region is used Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 11 May 2022 14:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17211 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo To: Lars Ingebrigtsen , Richard Smith Cc: "17211@debbugs.gnu.org" <17211@debbugs.gnu.org> Received: via spool by 17211-submit@debbugs.gnu.org id=B17211.165227970918316 (code B ref 17211); Wed, 11 May 2022 14:36:01 +0000 Received: (at 17211) by debbugs.gnu.org; 11 May 2022 14:35:09 +0000 Received: from localhost ([127.0.0.1]:38073 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nonQj-0004lL-59 for submit@debbugs.gnu.org; Wed, 11 May 2022 10:35:09 -0400 Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]:9318) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nonQg-0004lB-0Z for 17211@debbugs.gnu.org; Wed, 11 May 2022 10:35:07 -0400 Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 24BD1Gfh023549; Wed, 11 May 2022 14:35:04 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2021-07-09; bh=tasxEl+8x+t5jCBHRtDCmuxt0dzhCW+fNsuRJl4KsJ8=; b=GukPN0caMG1wMjDAo7icW/GednEgOnhUdcH5KMMCkPhbnv7P/tY1m9HtGGIA2mpNd321 g9GZwex5jt9/RVXC1uy23ok/Mw9VECFEpGrFNXfiTCHdTDtLZ4QkALkk7kDvHYgxhYgz 3zKV+4VhAqsWuhnMD75B+0OJnVvwsLFD12bruHoSeCygAMS4J4cs7TURrar8n8nRWKvP wyRlyGZLm0BD3sKvk+bVdpgvG5wOZQ0jSTY7Z7Mg/lpKARKHVd/HXyJfsG686G00oAT0 8XKv78aqwmwR0mGUCkESFljXqqyaGiA7lVRIuHLaAJbVZLxYrQ1Ua8xYRxVDJFDGD9kH Lg== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3fwgcst308-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 11 May 2022 14:35:03 +0000 Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.16.1.2/8.16.1.2) with SMTP id 24BEF9F9025452; Wed, 11 May 2022 14:35:02 GMT Received: from nam10-bn7-obe.outbound.protection.outlook.com (mail-bn7nam10lp2101.outbound.protection.outlook.com [104.47.70.101]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com with ESMTP id 3fyg6ev1ww-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 11 May 2022 14:35:02 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TrLYJtuU4/8S0sQtEcIeG63u/wLdiamTOfOZEps6Buy+J1g0vXwpRsldT3OhDY4K80KNnHL/ZppSLdOKgFkWYVknORKQgSoi/JFYMLKUZR14E7E99v5GzqgdpHBvNFiWhkvJpWWJE3a1bx1YKDtOKILU+RVLRz1+Cny7ZcgRh2/lf76HaSExMlU84Zcz+5DSoKvgmftxHF8iAFfZGYDNm3JFocK//1ZreoLIHulrRlf9QUIH40HJzoOFpEKAzP2g8H8dC0LBW9bjFXoDV98+sWoPKd/7trT8MDdXYvgrs/6nUnEGumSqV7EsVq6iHqiIb8ONrzGR4hLcPVPTp2OsWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=tasxEl+8x+t5jCBHRtDCmuxt0dzhCW+fNsuRJl4KsJ8=; b=e26j2FLLGWM4GKonQs2jgHlcbN5ezZtndoTG0a1l+t3LmVBKP90W8K2Y11VfeovhI4fySzejvKSxMAXO4LjJwr2bE+SSc2742us41kY0HOyIDUq73EOaCQku3mbHvOLDZbnk0GlqmlRinu80TtTmgW+ns4xL4FX3BrFxCVHh8V8aMkQJnkQhvuyiq1t6XOjxDzOLN3p7Y4tVDrfhvoMYLeto49KnL2MLwTbFGkHw37+feWYrb7rUES2g3HsninfQf9JWl/HSv+qtsItuACrANT0gNSgYax52Ar2zvV+zDRcC2qVVEIiqeZ7QWOkWxNfJnnxnDDIE5ICKlTx2VkDUHw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tasxEl+8x+t5jCBHRtDCmuxt0dzhCW+fNsuRJl4KsJ8=; b=zvRzzUsCCgLCgI/ytxB3B5aoXdFctx3sfDOGKJ3VajCWlCWq5IxZGsWAw81MVQ9M57x7Z0rugrcltb9P0LPp1z4GS9Pe2j6RCxxPOYQCP+CBpKujDJdgrBOHipwq0abSh8yxkGbbvGZKvdgo0gVGn6ZZg5LdaL4l0YspEB6BmSM= Received: from SJ0PR10MB5488.namprd10.prod.outlook.com (2603:10b6:a03:37e::19) by BYAPR10MB2597.namprd10.prod.outlook.com (2603:10b6:a02:ae::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5227.23; Wed, 11 May 2022 14:35:00 +0000 Received: from SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::a0e7:5f38:ab50:5123]) by SJ0PR10MB5488.namprd10.prod.outlook.com ([fe80::a0e7:5f38:ab50:5123%9]) with mapi id 15.20.5227.023; Wed, 11 May 2022 14:35:00 +0000 From: Drew Adams Thread-Topic: [External] : bug#17211: Empty items show up in kill-ring if mouse-drag-copy-region is used Thread-Index: AQHYZTya1aDAlDlJv0OHEJlWM5ODLa0ZvJbA Date: Wed, 11 May 2022 14:35:00 +0000 Message-ID: References: <87ee108aby.fsf@gnus.org> In-Reply-To: <87ee108aby.fsf@gnus.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 330e0cfe-316b-402f-75a6-08da335b6df9 x-ms-traffictypediagnostic: BYAPR10MB2597:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: mZvgMheyssDmvZu7ngba5H4JDGuiWCCtRszJ7rQhr+TSaqpvV69hoWf2JZ6+XwfC+Ai5PpD+3R3Vk97KQY6E0aIRazrMr8ExkO37urovP8TwdmyHGGi685bTONTCmaCgLCh+1vikMNedhh9HyEqunQUYZqjKrsG77xXQiCgmSLLcImQRTzI0WsC0b1WD7ngfYorTCUfn7ImFsPILrItaB/rUGs9pyzFK/opeNwCqcw7EbuXc0d6OTm/h5a28oqhgdNxEZImGIIIcRNhbA7HPsAYKWzgveQHE9dBkZMqa2rUvsDE5wtG/JZBzU/FAKQS+tJDOETNaUX+sToY8NIqb1e+V4fhC+kVLFYt3H4mXedoszlnFan0KJh4piVMTpVamOfIR5fONNIVYVLBDiObmU0+2chHfHcjwyy+cuv6YzZvVIDL2qiaBHIahWsDCOH8btxbrYXeyVQUjqX1ZNpwnd9WrBtdE1mayKU3Dd2ARSo6CE5q9p+K9iLzN4mKjiSt6kv6ZpW03BaTMig6NU/gAahvxIDV/kZ3OmYxUs4P3AhWOvCKwCJrlLTplyWmnJzxJ7+r/vzCKXVzrQTXTyGC3ZBo4JWDI4RSkfc9L54WfOyKJrAlUtupmZKMu7VfugWq7N96PJBElOQ31faudEJbdKQmVRx3cXqc/CLiaIiea4fVzhGIvD/c6JVna5ZODHM91Uu6qzM6Bhqy7if30LQ/BYQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR10MB5488.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(366004)(508600001)(38100700002)(122000001)(71200400001)(5660300002)(9686003)(8936002)(86362001)(38070700005)(6506007)(316002)(64756008)(66556008)(76116006)(66446008)(66946007)(66476007)(4326008)(52536014)(8676002)(33656002)(110136005)(7696005)(186003)(55016003)(2906002)(26005)(44832011); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: xnF7my6pFMe4Y4Hl+7Y8/TuL5rc2n99r5z2Nhg4dUeTzq8SIo9eEPYo6uMHvPV012JBdFOgu+nW7NFM7b8I2Ucm5Gs0gtkEwBLEY4cN+JvNQ4fkfLOuVyk6Adgz8F5iqzTDnWTDvd4CQn6L10bAa4KtWC7rg0Ccur2OLszdpDS6N325/4hWR0Ro5cpXaRf5ICMTyANUjnkXyteMBYPjWcFu5xu5h6IsEDH1C9r0zV+G4XI1qkBgyMpb+xBucVfeuDLQkOlKT69gVTAt+FsObhNYKE4JKSDMg2n5THH4xOlXfmTBR/NJcBH2+xlTLcPZ2OVTwkRUlGx7pMxQpP14t1F3+NIqyVmGzCvl1f6o/DjqhQ0m+Shar0mgocU+syQcabursmUgpISZWNT6ggn4mKPoN/DBm7BfrqE0Tpss3PoWOgEizXNn+MGTpNJtNoHIFC6cRqYJpzpZCWmap4rCuMUiXVjeZs4Tq7eib+6uPipMmmHEw7fEf0tYdOTXUpvZumy3lHEVR8kAFitOkTGq+3vI2TL0XeUnX7bjV8fkYW7ywT1jzHaz+JRtojOJz53P8NWi4RB7BWJVJexjKEznFdufrZt6jTsgn76W3GCPaYkKwdPDZfEtCpsyjNv64vcoBaIhvkK5s8mrb4+4Y/RG/Yg5QLb2l+Pnsq7JFJL0Yl/SfGyp6uVTQluCm+Zo34qyztKJsZ6KkD5ONbN3t0PmEYmf52gtLdg5yoeGmGl9PJfvygMaoEZjxZREuPOTivfiDbrPV6aQ871E0yN2MSp54cuYx93tBPLQc/P5DgJuvra1h0Fd59BRvCK1s9aFyHdhe7IiW+6w8kmKpxqIHPbUao2/igX2NhfMUQ2/D+GCp9EHNzFilC8dBgCQFFpQ0+xXkYral3cI7DV2DuY76vBiU0aBzsxjtVfnhJXu3XSJF2hsKtXh3ODedWcB+InCISo2lCuOR6zeqE7zHsOXLwMM17gly78kUPDa5RxsfPf8c8TbM2Rw6eAE6JKquzsGf2sxKM1OiDEleQISXHaSRk/oPcfbi+4dW4/5OatvU2EzvKieO7kwPgvCR0bSAhTk3VtrrMCkds3nzfsTzJgfplS8J3ReGJyR/QRVaRVqy/BX25CQajKvH6Z810mpNiSrN/iR5uhvVm4VBNanUb7lrPDHdyJquLtXkTXQYXkN6kZFRX3nT3Dtd7awYjrdkyKrWUg4kHjL3Vq7kb/rQ+z9EgbgSeGfsWT2a5ppD4TBGO4GyZRqNSto9E021HUK2DRVzvhpIKNuvC3XuGFVeePApWqOICVwJZ5PGTsz+iRXUaK6yGg9X9qbp1u5HdKik00E0LEqH5GqNTxO1cKLJ9l8tbZjiGgPcFJB6s+NtNbaVPVjd3OIN7s6FSWVEtjt3riTGBWrkoUhwFnVlFcEKpeN51AVZMAYFxh5kdKfmcpdjtjjbO1awsbzzgrEprh3LIgyHjBUdYJ6WI8oGnQTM4RcUSHUcrtR6aDmgSuGGvlMi2G7eIgMwDYHE2Uu8gu3ViXiC6kLOB+ChOWfvTIfBfoDh6SPfBELnBIyL5G7v3WJXeZKGtkp72Nc3f2ccU7PrLoD5LZNFELlxS6Jp+4t+ImXpNiR+1hE5j8zrt5ghJ4KBGYBJVgcQLfZawY7MDWSlEVk6+xzBBgArE7mWjZOdPCt13MoyonZhTAJgOipp5ePdehjxT5xu68GP+XkIPLrjL6s5hpt5E8mLJvSYtVpc8EkAmv6/Hw== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB5488.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 330e0cfe-316b-402f-75a6-08da335b6df9 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 May 2022 14:35:00.5983 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Jrj4DyhjLwHR/o7FLDw7KOdHTDwr5V4xCKlUuL+9LVrSIQ/BUOAh5oJP/7up9K6urNLnct18h0nvXcwJeL0SjQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR10MB2597 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.486, 18.0.858 definitions=2022-05-11_05:2022-05-11, 2022-05-11 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 malwarescore=0 mlxscore=0 phishscore=0 spamscore=0 bulkscore=0 adultscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2205110068 X-Proofpoint-GUID: ZhnuEH8IWw-Z2cU_87INl4zjN3oqgTMj X-Proofpoint-ORIG-GUID: ZhnuEH8IWw-Z2cU_87INl4zjN3oqgTMj X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > I can reproduce the behaviour you're seeing in Emacs 29, but I'm not > sure what else Emacs could do here. With `mouse-drag-copy-region' set, > and in 4) you drag the mouse, so it copies that new region (even if > that > region is so short that you end up with ""). >=20 > Hm... well, I guess we could change mouse-drag-copy-region so that if > the region is very short (i.e., less than a character), then we don't > put that onto the kill ring? >=20 > Does anybody here object to making such a change? I guess it's > possible > that somebody is using a sub-character drag to set the mark, but it > does > seem unlikely. Please don't "fix" this. This is pilot error. Users can usually configure their mouse to compensate for any unsteady hand etc. Or if necessary and this is considered an Emacs-only problem, then Emacs could add a user option to adjust the behavior. But there should be no one-size-fits-all change. It's perfectly fine to _be able_ to drag to select whitespace, and it's perfectly fine to have whitespace on the kill-ring and to yank it. If the problem is (1) some users not wanting a tiny movement to select whitespace, or (2) users not wanting whitespace on the kill-ring, then find another solution for such users, by way of one or more user options. Note that the way this bug report and its title are worded suggest #2 - the reporting user seems to think that whitespace is inappropriate for the kill-ring. A user option could easily take care of that preference. From unknown Tue Aug 19 06:31:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#17211: Empty items show up in kill-ring if mouse-drag-copy-region is used Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 09 Jun 2022 13:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17211 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo To: Richard Smith Cc: 17211@debbugs.gnu.org Received: via spool by 17211-submit@debbugs.gnu.org id=B17211.165478310416736 (code B ref 17211); Thu, 09 Jun 2022 13:59:02 +0000 Received: (at 17211) by debbugs.gnu.org; 9 Jun 2022 13:58:24 +0000 Received: from localhost ([127.0.0.1]:47105 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzIg3-0004Ls-Of for submit@debbugs.gnu.org; Thu, 09 Jun 2022 09:58:23 -0400 Received: from quimby.gnus.org ([95.216.78.240]:49932) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzIg1-0004La-80 for 17211@debbugs.gnu.org; Thu, 09 Jun 2022 09:58:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=RA/59S+2EEpfWRKa9DX0bPOUpRC79cGcfr7ZPDY5Qrs=; b=B3Pyw3pgwMt44VJqk8HCX6oXUl BMuXGf0PpBfV6k8/Eoq4eESo6xxDXF7WckT/dxaG9vs75fDs62efw6RwvqiUDoC68MwyZi3quLUce 6Q6MmbXH1e3MvbyXBpwOSD4L6hoGQMHxMUKxzohQ9WdI62dNvJ/7tDiZvcZcRlgrXuqs=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nzIfs-0000Wu-24; Thu, 09 Jun 2022 15:58:14 +0200 From: Lars Ingebrigtsen References: <87ee108aby.fsf@gnus.org> X-Now-Playing: Prince's _Sign 'O' the Times (7): Live in Utrecht II_: "Forever In My Life (Live In Utrecht)" Date: Thu, 09 Jun 2022 15:58:11 +0200 In-Reply-To: <87ee108aby.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 11 May 2022 15:31:29 +0200") Message-ID: <87edzy3pn0.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Lars Ingebrigtsen writes: > Hm... well, I guess we could change mouse-drag-copy-region so that if > the region is very short (i.e., less than a character), then we don't > put that onto the kill ring? > > Does anybody here obj [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Lars Ingebrigtsen writes: > Hm... well, I guess we could change mouse-drag-copy-region so that if > the region is very short (i.e., less than a character), then we don't > put that onto the kill ring? > > Does anybody here object to making such a change? I guess it's possible > that somebody is using a sub-character drag to set the mark, but it does > seem unlikely. Out of an overabundance of caution, I've now added a new value to mouse-drag-copy-region to do this, even if I don't think anybody would want those ""s to land in the kill ring. (Emacs 29.) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 09 09:58:27 2022 Received: (at control) by debbugs.gnu.org; 9 Jun 2022 13:58:27 +0000 Received: from localhost ([127.0.0.1]:47108 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzIg6-0004M9-Vg for submit@debbugs.gnu.org; Thu, 09 Jun 2022 09:58:27 -0400 Received: from quimby.gnus.org ([95.216.78.240]:49946) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzIg5-0004Lj-DF for control@debbugs.gnu.org; Thu, 09 Jun 2022 09:58:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=C9DmQpJPN7CEMqwu6ULkv2JpPWdU63DfHA5jNhIUHi0=; b=RroEscFT4deTqgXuEoqiy3Mvwx X7IaL6EfdF/oaF6PK7HSd5rP1trt4BTyc612cGWNb4pJTLsJmxAkkm5DqJc5AyLZuQuuAEE4iMeta RS5UXkfoB0hUstW78sj5SsD5FL5leZsRzNmWzbKiVjI0KDmi6uf5oCcxzgbbsAu1m7ww=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nzIfx-0000X4-Ld for control@debbugs.gnu.org; Thu, 09 Jun 2022 15:58:19 +0200 Date: Thu, 09 Jun 2022 15:58:17 +0200 Message-Id: <87czfi3pmu.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #17211 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 17211 29.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 17211 29.1 quit