From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tak Kunihiro Newsgroups: gmane.emacs.devel Subject: Re: mouse-drag-and-drop-region Date: Sat, 16 Dec 2017 11:07:18 +0900 (JST) Message-ID: <20171216.110718.1057148403550044190.tkk@misasa.okayama-u.ac.jp> References: <67BAABFE-B45E-415F-BFDA-BED32D6CB982@misasa.okayama-u.ac.jp> <5A338CC3.20302@gmx.at> <5A33CD31.3060205@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1513390115 11736 195.159.176.226 (16 Dec 2017 02:08:35 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 16 Dec 2017 02:08:35 +0000 (UTC) Cc: tkk@misasa.okayama-u.ac.jp, eliz@gnu.org, rswgnu@gmail.com, agrambot@gmail.com, emacs-devel@gnu.org To: rudalics@gmx.at Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 16 03:08:30 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eQ1tu-0002gY-55 for ged-emacs-devel@m.gmane.org; Sat, 16 Dec 2017 03:08:30 +0100 Original-Received: from localhost ([::1]:49100 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eQ1u0-000132-US for ged-emacs-devel@m.gmane.org; Fri, 15 Dec 2017 21:08:36 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58879) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eQ1tN-00012e-Vf for emacs-devel@gnu.org; Fri, 15 Dec 2017 21:07:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eQ1tN-0006jx-5R for emacs-devel@gnu.org; Fri, 15 Dec 2017 21:07:57 -0500 Original-Received: from mxl069v66.mxlogic.net ([208.81.69.66]:65086 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 1eQ1tH-0006YR-8y; Fri, 15 Dec 2017 21:07:51 -0500 Original-Received: from unknown [42.127.236.175] (EHLO mlsec.cc.okayama-u.ac.jp) by s18p02o143.mxlogic.net(mxl_mta-8.5.0-1933) with ESMTP id 7ff743a5.7faafb5de700.4166.00-599.6921.s18p02o143.mxlogic.net (envelope-from ); Fri, 15 Dec 2017 19:07:51 -0700 (MST) X-MXL-Hash: 5a347ff765d2b193-45715defcae89814c55c5d77de34351e35a97692 Original-Received: from unknown [42.127.236.175] (EHLO mlsec.cc.okayama-u.ac.jp) by s18p02o143.mxlogic.net(mxl_mta-8.5.0-1933) over TLS secured channel with ESMTP id fdf743a5.0.4163.00-389.6915.s18p02o143.mxlogic.net (envelope-from ); Fri, 15 Dec 2017 19:07:37 -0700 (MST) X-MXL-Hash: 5a347fe93a7bc424-0360fa5e79150145ba0cde7e348d4c1ebda6efd1 Original-Received: from alml002.ouadm.okayama-u.ac.jp (unknown [42.127.236.168]) by mlsec.cc.okayama-u.ac.jp with smtp id 534f_0e2f_480e9dc9_e162_428b_a2c6_6d854207451a; Sat, 16 Dec 2017 11:07:22 +0900 Original-Received: from localhost (p1077211-omed01.tokyo.ocn.ne.jp [153.248.84.211]) by alml002.ouadm.okayama-u.ac.jp (Postfix) with ESMTPSA id 142B54C09C6; Sat, 16 Dec 2017 11:07:22 +0900 (JST) In-Reply-To: <5A33CD31.3060205@gmx.at> X-Mailer: Mew version 6.7 on Emacs 25.3 / Mule 6.0 (HANACHIRUSATO) X-NAI-Spam-Flag: NO X-NAI-Spam-Level: X-NAI-Spam-Threshold: 11 X-NAI-Spam-Score: 0.6 X-NAI-Spam-Rules: 5 Rules triggered TS_MSG_REP_20=0.6, EDT_SA_AU_PASS=0, EDT_SA_DN_PASS=0, EDT_SA_TS_PASS=0, RV6181=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6181> : inlines <6256> : streams <1773239> : uri <2551893> X-AnalysisOut: [v=2.2 cv=UogTD64B c=1 sm=1 tr=0 a=8LLPK8U+aGQ6qN8QlyMYtQ==] X-AnalysisOut: [:117 a=8LLPK8U+aGQ6qN8QlyMYtQ==:17 a=kj9zAlcOel0A:10 a=ocR] X-AnalysisOut: [9PWop10UA:10 a=SCicCGKEJxMPPmP4kPAA:9 a=CjuIK1q_8ugA:10] X-Spam: [F=0.5000000000; CM=0.500; MH=0.500(2017121520); S=0.264(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-Received-From: 208.81.69.66 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:221118 Archived-At: >> option `mouse-drag-and-drop-region-face' with a face >> `mouse-drag-and-drop-region' inheriting from the region face. During the drag, when mouse point is on the original region, cursor would be set to hollow. With this revision, I see that the cursor is not set. To do it, drag-but-negligible should be set to t. The drag-but-negligible is set by following expressions. 2507 ;; Check if "drag but negligible". Operation "drag but 2508 ;; negligible" is defined as drag-and-drop the text to 2509 ;; the original region. When modifier is pressed, the 2510 ;; text will be inserted to inside of the original 2511 ;; region. 2512 (setq drag-but-negligible 2513 (member mouse-drag-and-drop-region 2514 (mapcar (lambda (xxx) (overlay-get xxx 'face)) 2515 (overlays-at point-to-paste))))) On this revision, I wonder if mouse-drag-and-drop-region on line 2513 refers to variable instead of face. No?