From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 19 19:49:11 2018 Received: (at submit) by debbugs.gnu.org; 19 Jun 2018 23:49:11 +0000 Received: from localhost ([127.0.0.1]:56730 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fVQN4-0008FU-Oc for submit@debbugs.gnu.org; Tue, 19 Jun 2018 19:49:10 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55118) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fVQN3-0008FI-2M for submit@debbugs.gnu.org; Tue, 19 Jun 2018 19:49:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fVQMx-0004JD-2z for submit@debbugs.gnu.org; Tue, 19 Jun 2018 19:49:03 -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 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:42774) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fVQMw-0004J6-U8 for submit@debbugs.gnu.org; Tue, 19 Jun 2018 19:49:02 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46078) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fVQMv-0003uA-Jz for bug-gnu-emacs@gnu.org; Tue, 19 Jun 2018 19:49:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fVQMs-0004F5-Gb for bug-gnu-emacs@gnu.org; Tue, 19 Jun 2018 19:49:01 -0400 Received: from mxl069v66.mxlogic.net ([208.81.69.66]:26951 helo=s18p02o143.mxlogic.net) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fVQMr-0004Ab-RQ for bug-gnu-emacs@gnu.org; Tue, 19 Jun 2018 19:48:58 -0400 Received: from unknown [42.127.236.175] (EHLO mlsec.cc.okayama-u.ac.jp) by s18p02o143.mxlogic.net(mxl_mta-8.5.0-1953) with ESMTP id 966992b5.7faf057fb700.416470.00-564.756057.s18p02o143.mxlogic.net (envelope-from ); Tue, 19 Jun 2018 17:48:57 -0600 (MDT) X-MXL-Hash: 5b2996693b30865c-e11ca90bb90a539478e9b9fc488c853fdc04a249 Received: from unknown [42.127.236.175] (EHLO mlsec.cc.okayama-u.ac.jp) by s18p02o143.mxlogic.net(mxl_mta-8.5.0-1953) over TLS secured channel with ESMTP id 5f0992b5.0.416139.00-376.755423.s18p02o143.mxlogic.net (envelope-from ); Tue, 19 Jun 2018 17:25:47 -0600 (MDT) X-MXL-Hash: 5b2990fb553c7aa6-f51494041f9323114a29b508eda37924b96f7e7a Received: from alml002.ouadm.okayama-u.ac.jp (unknown [42.127.236.168]) by mlsec.cc.okayama-u.ac.jp with smtp id 37d9_136c_7084dd2e_03f9_4d98_9466_dcea0c412d67; Wed, 20 Jun 2018 08:25:39 +0900 Received: from localhost (vesta.misasa.okayama-u.ac.jp [150.46.48.154]) by alml002.ouadm.okayama-u.ac.jp (Postfix) with ESMTPSA id 90D534C0A58; Wed, 20 Jun 2018 08:25:39 +0900 (JST) Date: Wed, 20 Jun 2018 08:25:41 +0900 (JST) Message-Id: <20180620.082541.1223268284350863328.tkk@misasa.okayama-u.ac.jp> To: bug-gnu-emacs@gnu.org Subject: detection of edge of highlighted text by mouse-drag-and-drop-region From: Tak Kunihiro X-Mailer: Mew version 6.7 on Emacs 26 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Wed_Jun_20_08_25_41_2018_724)--" Content-Transfer-Encoding: 7bit X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 11 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 4 Rules triggered EDT_SA_AU_PASS=0, EDT_SA_DN_PASS=0, EDT_SA_TS_PASS=0, RV6311=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6311> : inlines <6704> : streams <1790178> : uri <2660994> X-AnalysisOut: [v=2.2 cv=QMAYfkDL c=1 sm=1 tr=0 a=8LLPK8U+aGQ6qN8QlyMYtQ==] X-AnalysisOut: [:117 a=8LLPK8U+aGQ6qN8QlyMYtQ==:17 a=7mUfYlMuFuIA:10 a=jZS] X-AnalysisOut: [YtAv4R9s3N80Ab0QA:9 a=CjuIK1q_8ugA:10 a=OotNiglPQKemMJqdKi] X-AnalysisOut: [EA:9] X-Spam: [F=0.5000000000; CM=0.500; MH=0.500(2018061916); S=0.200(2015072901)] X-MAIL-FROM: X-SOURCE-IP: [42.127.236.175] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.4 (----) X-Debbugs-Envelope-To: submit Cc: rudalics@gmx.at, tkk@misasa.okayama-u.ac.jp 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: -5.4 (-----) ----Next_Part(Wed_Jun_20_08_25_41_2018_724)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit I found bug on `mouse-drag-and-drop-region'. The `mouse-drag-and-drop-region' does not recognize the beginning and the end of highlighted text as pre existing region. 1: emacs -Q 2: (setq mouse-drag-and-drop-region 'meta) 2: Select text on a buffer and have a region. Let's assume `This buffer' is highlighted. 3: Drag and drop the text onto the first character of the region, that is `T'. 4: Then the text `This buffer' would be disappeared. I attach a patch to fix the bug. This patch is relative to 26.1.50. * Commit log Author: Tak Kunihiro Fix bug of 'mouse-drag-and-drop-region' to detect edges of region * lisp/mouse.el (mouse-drag-and-drop-region): Detect both the beginning and the end of character of region during dragging text. ----Next_Part(Wed_Jun_20_08_25_41_2018_724)-- Content-Type: Text/X-Patch; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="mouse.el.diff" diff --git a/lisp/mouse.el b/lisp/mouse.el index 5c9056fb43..f749d12054 100644 --- a/lisp/mouse.el +++ b/lisp/mouse.el @@ -2515,9 +2515,9 @@ mouse-drag-and-drop-region (setq drag-but-negligible (and (eq (overlay-buffer mouse-drag-and-drop-overlay) buffer-to-paste) - (< (overlay-start mouse-drag-and-drop-overlay) + (<= (overlay-start mouse-drag-and-drop-overlay) point-to-paste) - (< point-to-paste + (<= point-to-paste (overlay-end mouse-drag-and-drop-overlay))))) ;; Show a tooltip. ----Next_Part(Wed_Jun_20_08_25_41_2018_724)---- From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 20 03:43:17 2018 Received: (at 31905) by debbugs.gnu.org; 20 Jun 2018 07:43:17 +0000 Received: from localhost ([127.0.0.1]:56873 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fVXls-0004gM-Ri for submit@debbugs.gnu.org; Wed, 20 Jun 2018 03:43:17 -0400 Received: from mout.gmx.net ([212.227.17.21]:53555) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fVXlp-0004g8-Id for 31905@debbugs.gnu.org; Wed, 20 Jun 2018 03:43:13 -0400 Received: from [192.168.1.101] ([212.95.5.251]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0Lskr7-1gBrcv2zrl-012CxV; Wed, 20 Jun 2018 09:42:56 +0200 Message-ID: <5B2A0577.3050202@gmx.at> Date: Wed, 20 Jun 2018 09:42:47 +0200 From: martin rudalics MIME-Version: 1.0 To: Tak Kunihiro Subject: Re: detection of edge of highlighted text by mouse-drag-and-drop-region References: <20180620.082541.1223268284350863328.tkk@misasa.okayama-u.ac.jp> In-Reply-To: <20180620.082541.1223268284350863328.tkk@misasa.okayama-u.ac.jp> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:8zJ39xvRWXco2zflKpq+4dt4h8KxubVBlBJPsYwe1gpFW6yPYCz R+CTzUKxtoGeg4EBSEOJgYLFWhNTyBNyjvq+E4kWlvt8Woo7fAnVjyU3u/h3zIYqgDBOvF+ LcVh/uWUiGddDUvJI74ykIL6ZcOg+X6Gjayn300dPs58eT7iNcIx2gRFPpoS6r8gxPgQpWO p/5z/+gP5OZg51ls3xEcQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:e7XhkbyVYtk=:EOEyT3cXSrxhDK/vJ7QWog +vwcqsbueWsGErl3jm8jPaE6Ig1z8VKdE6K4cgQ9pDv0slCRNneUp2X3CdAoM4fDWpCqhgAGm D6W9c+wcyt90cL6GeR0zvSs5JXOcJ8xFFvxBwW6aRuF1SNTQsKcPpsPektEAbGfQr0LQKCyTL Z4FRrPxJ6ro7IwyR0KWoIold1AxAMbl7zAlu9PyVTeL0ywFFTLy5MOZE6Ign+q7eZfit3Gv5J 063uL1ruXGD28wU6OwqQnwT8Zw85lh7dmYUuX7m0ZHZIsOSwRyxzFBGCPKqM+2cquV0mqXjsQ fgadVta3IHpYl3XfTpMSq70UnhGI7DGW29XR7vA5ZpsX8BgJU02wDxOl6U3ULT9HQW7zdOMw8 BRr1XVvITLwoebtkEjP+vCyrbikP1I48bPIxJensBq6px3R2R/hM7SUFU2qpVsYiVjXj/AH83 GmlRmAg0jNvVmZ5f+ZLeEqzzSsHRITvACOtQF59YGRRiP0e3WVkrxsu4Uv+zDut/8g/EKBv62 3J4ZcDPAsZn3BdWocfuUsP9LdwAurw7pYroDtDug/2lCs3QFQCNxJQT7b3pVCynsLoVr11KTT iKqWLU2CW6LuKuhbH1INFCRnhno5XIL98/HRzuE8Jkt0VaC2cSZ74UG1oPU8op2ICU0+eqJcY wK8xokCENqJgCIkFPyyHUOaFLUr9PGmS+hrQoHj57uz7Ae/2mRqQbh8PfwL3GzvX3oguJJ7FN ExjKIC+RFyxTHugmROYoEGnpltIfC64YOLlwBb4h/SZVYG0orCcyfLyZ+Xj7Zey7mxmy+rLv9 eE9siLk X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 31905 Cc: 31905@debbugs.gnu.org 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 found bug on `mouse-drag-and-drop-region'. The > `mouse-drag-and-drop-region' does not recognize the beginning and the > end of highlighted text as pre existing region. > > 1: emacs -Q > 2: (setq mouse-drag-and-drop-region 'meta) > 2: Select text on a buffer and have a region. Let's assume `This buffer' is highlighted. > 3: Drag and drop the text onto the first character of the region, that is `T'. > 4: Then the text `This buffer' would be disappeared. Indeed. > I attach a patch to fix the bug. This patch is relative to 26.1.50. I verified that it corrects the behavior and applied it to the release branch. Please countercheck and close the bug if everything is right. Thank you, martin From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 20 19:18:07 2018 Received: (at 31905) by debbugs.gnu.org; 20 Jun 2018 23:18:07 +0000 Received: from localhost ([127.0.0.1]:58061 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fVmMZ-00070I-4p for submit@debbugs.gnu.org; Wed, 20 Jun 2018 19:18:07 -0400 Received: from mxl069v65.mxlogic.net ([208.81.69.65]:44330 helo=s18p02o142.mxlogic.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fVmMX-000708-3V for 31905@debbugs.gnu.org; Wed, 20 Jun 2018 19:18:06 -0400 Received: from unknown [42.127.236.175] (EHLO mlsec.cc.okayama-u.ac.jp) by s18p02o142.mxlogic.net(mxl_mta-8.5.0-1953) over TLS secured channel with ESMTP id 5a0ea2b5.0.435291.00-371.796426.s18p02o142.mxlogic.net (envelope-from ); Wed, 20 Jun 2018 17:17:59 -0600 (MDT) X-MXL-Hash: 5b2ae0a74170a603-5fc27f2ebd439c8976adcaf8948d82580207dd78 Received: from alml002.ouadm.okayama-u.ac.jp (unknown [42.127.236.168]) by mlsec.cc.okayama-u.ac.jp with smtp id 2ce4_0f83_20a420e5_fe45_4d2a_b12e_5b3169ad5753; Thu, 21 Jun 2018 08:17:55 +0900 Received: from localhost (vesta.misasa.okayama-u.ac.jp [150.46.48.154]) by alml002.ouadm.okayama-u.ac.jp (Postfix) with ESMTPSA id 02A564C0A0B; Thu, 21 Jun 2018 08:17:54 +0900 (JST) Date: Thu, 21 Jun 2018 08:17:54 +0900 (JST) Message-Id: <20180621.081754.972723345025795566.tkk@misasa.okayama-u.ac.jp> To: rudalics@gmx.at Subject: bug#31905: Re: detection of edge of highlighted text by mouse-drag-and-drop-region From: Tak Kunihiro In-Reply-To: <5B2A0577.3050202@gmx.at> References: <20180620.082541.1223268284350863328.tkk@misasa.okayama-u.ac.jp> <5B2A0577.3050202@gmx.at> X-Mailer: Mew version 6.7 on Emacs 26.1 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 11 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 4 Rules triggered EDT_SA_AU_PASS=0, EDT_SA_DN_PASS=0, EDT_SA_TS_PASS=0, RV6312=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6312> : inlines <6709> : streams <1790273> : uri <2661533> X-AnalysisOut: [v=2.2 cv=XoCKARN9 c=1 sm=1 tr=0 a=8LLPK8U+aGQ6qN8QlyMYtQ==] X-AnalysisOut: [:117 a=8LLPK8U+aGQ6qN8QlyMYtQ==:17 a=kj9zAlcOel0A:10 a=7mU] X-AnalysisOut: [fYlMuFuIA:10 a=Rj6Stu8x0kDhh5P9GVsA:9 a=CjuIK1q_8ugA:10] X-Spam: [F=0.5000000000; CM=0.500; MH=0.500(2018062009); S=0.292(2015072901)] X-MAIL-FROM: X-SOURCE-IP: [42.127.236.175] X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 31905 Cc: 31905@debbugs.gnu.org, tkk@misasa.okayama-u.ac.jp 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.0 (-) tags 31905 fixed close 31905 26.2 quit From: martin rudalics Subject: Re: detection of edge of highlighted text by mouse-drag-and-drop-region Date: Wed, 20 Jun 2018 09:42:47 +0200 >> I found bug on `mouse-drag-and-drop-region'. The >> `mouse-drag-and-drop-region' does not recognize the beginning and the >> end of highlighted text as pre existing region. >> >> 1: emacs -Q >> 2: (setq mouse-drag-and-drop-region 'meta) >> 2: Select text on a buffer and have a region. Let's assume `This >> buffer' is highlighted. >> 3: Drag and drop the text onto the first character of the region, that >> is `T'. >> 4: Then the text `This buffer' would be disappeared. > > Indeed. > >> I attach a patch to fix the bug. This patch is relative to 26.1.50. > > I verified that it corrects the behavior and applied it to the release > branch. Please countercheck and close the bug if everything is right. > > Thank you, martin From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 21 00:47:42 2018 Received: (at control) by debbugs.gnu.org; 21 Jun 2018 04:47:42 +0000 Received: from localhost ([127.0.0.1]:58141 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fVrVW-0000D7-C4 for submit@debbugs.gnu.org; Thu, 21 Jun 2018 00:47:42 -0400 Received: from mxl065v65.mxlogic.net ([208.81.65.65]:38910 helo=s14p02o142.mxlogic.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fVrVV-0000Ct-1J for control@debbugs.gnu.org; Thu, 21 Jun 2018 00:47:41 -0400 Received: from unknown [42.127.236.175] (EHLO mlsec.cc.okayama-u.ac.jp) by s14p02o142.mxlogic.net(mxl_mta-8.5.0-1953) over TLS secured channel with ESMTP id 7ed2b2b5.0.629390.00-365.1221529.s14p02o142.mxlogic.net (envelope-from ); Wed, 20 Jun 2018 22:47:35 -0600 (MDT) X-MXL-Hash: 5b2b2de746869d20-74e2125836a1546c9251d52c2147ad582eee2e26 Received: from alml002.ouadm.okayama-u.ac.jp (unknown [42.127.236.168]) by mlsec.cc.okayama-u.ac.jp with smtp id 2ce7_9bda_d5daa7cf_69ae_450d_9cd5_0925024b3964; Thu, 21 Jun 2018 13:47:34 +0900 Received: from localhost (unknown [172.24.1.166]) by alml002.ouadm.okayama-u.ac.jp (Postfix) with ESMTPSA id 735AD4C0A53 for ; Thu, 21 Jun 2018 13:47:35 +0900 (JST) Date: Thu, 21 Jun 2018 13:47:34 +0900 (JST) Message-Id: <20180621.134734.978150682818733216.tkk@misasa.okayama-u.ac.jp> To: control@debbugs.gnu.org Subject: bug#31905: Re: detection of edge of highlighted text by mouse-drag-and-drop-region From: Tak Kunihiro X-Mailer: Mew version 6.7 on Emacs 26 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-NAI-Spam-Flag: NO X-NAI-Spam-Level: X-NAI-Spam-Threshold: 11 X-NAI-Spam-Score: 0.1 X-NAI-Spam-Rules: 5 Rules triggered GEN_SPAM_FEATRE=0.1, EDT_SA_AU_PASS=0, EDT_SA_DN_PASS=0, EDT_SA_TS_PASS=0, RV6312=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6312> : inlines <6709> : streams <1790295> : uri <2661656> X-AnalysisOut: [v=2.2 cv=duqrMxo4 c=1 sm=1 tr=0 a=8LLPK8U+aGQ6qN8QlyMYtQ==] X-AnalysisOut: [:117 a=8LLPK8U+aGQ6qN8QlyMYtQ==:17 a=kj9zAlcOel0A:10 a=7mU] X-AnalysisOut: [fYlMuFuIA:10 a=lnG5GIbonXUrt9Vk1gMA:9 a=OaMkqXzSqndxIoQblI] X-AnalysisOut: [TFJzIODDk=:19 a=CjuIK1q_8ugA:10] X-Spam: [F=0.5000000000; CM=0.500; MH=0.500(2018062012); S=0.501(2015072901)] X-MAIL-FROM: X-SOURCE-IP: [42.127.236.175] 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 31905 fixed close 31905 26.2 quit From unknown Sat Jun 14 18:38:31 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 19 Jul 2018 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator