From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: mouse-drag-and-drop-region Date: Thu, 23 Nov 2017 09:00:46 -0500 Message-ID: References: <5A0ABD41.5040402@gmx.at> <20171116.092825.1408561780440493246.tak.kunihiro@gmail.com> <5A0D562D.1010803@gmx.at> <20171120.222937.949251858246319152.tak.kunihiro@gmail.com> <5A13F0CA.2030605@gmx.at> <5A1432B0.8080700@gmx.at> <5A1534B4.6030203@gmx.at> <5A167CEC.5070400@gmx.at> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1511445617 25130 195.159.176.226 (23 Nov 2017 14:00:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 23 Nov 2017 14:00:17 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 23 15:00:06 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 1eHs2r-0005SD-3h for ged-emacs-devel@m.gmane.org; Thu, 23 Nov 2017 15:00:01 +0100 Original-Received: from localhost ([::1]:44537 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eHs2y-0007i5-9N for ged-emacs-devel@m.gmane.org; Thu, 23 Nov 2017 09:00:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40922) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eHs21-0007gc-Ta for emacs-devel@gnu.org; Thu, 23 Nov 2017 08:59:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eHs1x-0001Fm-VB for emacs-devel@gnu.org; Thu, 23 Nov 2017 08:59:10 -0500 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:38249) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eHs1x-0001F0-Qe for emacs-devel@gnu.org; Thu, 23 Nov 2017 08:59:05 -0500 Original-Received: from lechazo.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id vANDwxbY001224; Thu, 23 Nov 2017 08:58:59 -0500 Original-Received: by lechazo.home (Postfix, from userid 20848) id 69A0860224; Thu, 23 Nov 2017 09:00:46 -0500 (EST) In-Reply-To: <5A167CEC.5070400@gmx.at> (martin rudalics's message of "Thu, 23 Nov 2017 08:46:52 +0100") X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 2 Rules triggered EDT_SA_DN_PASS=0, RV6165=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6165> : inlines <6183> : streams <1771106> : uri <2538793> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 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:220392 Archived-At: >> I very clearly vote in favor of set-transient-map, since the use >> read-event leads inevitably to lots of corner case problems that are in >> general impossible to fix. > Actually, this boils down to marking `track-mouse' obsolete in a not so > distant future. You mean the special-form, right? Because the variable is still very much needed. Yes, for me we can mark it obsolete. > Additionally, `mouse-drag-track' should be renamed once > more - to something like `mouse-drag-within-window' - the distinguishing > factor being that all events are interpreted relative to the window of > the starting event. And we should provide a `mouse-drag-anywhere' > function which, among others, does not auto scroll the window of the > starting event. Hence `mouse-drag-and-drop-region' could use the latter. Actually, maybe mouse-drag-and-drop-region could also make use of a generalized version of mouse-drag-track. Stefan