From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Weiner Newsgroups: gmane.emacs.devel Subject: Re: mouse-drag-and-drop-region Date: Fri, 8 Dec 2017 11:14:48 -0500 Message-ID: References: <5A265E99.8030908@gmx.at> <20171206.182939.453729203755008958.tak.kunihiro@gmail.com> <5A290951.7000807@gmx.at> <20171208.064540.661845144160459379.tak.kunihiro@gmail.com> <5A2A657D.4010909@gmx.at> Reply-To: rswgnu@gmail.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a114058a4a9b3ac055fd67d27" X-Trace: blaine.gmane.org 1512750013 5586 195.159.176.226 (8 Dec 2017 16:20:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 8 Dec 2017 16:20:13 +0000 (UTC) Cc: Eli Zaretskii , Tak Kunihiro , Alex , emacs-devel To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 08 17:20:08 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 1eNLNf-0001JN-W4 for ged-emacs-devel@m.gmane.org; Fri, 08 Dec 2017 17:20:08 +0100 Original-Received: from localhost ([::1]:37986 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eNLNn-0000vB-Ar for ged-emacs-devel@m.gmane.org; Fri, 08 Dec 2017 11:20:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43698) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eNLJ6-0005xB-5h for emacs-devel@gnu.org; Fri, 08 Dec 2017 11:15:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eNLJ2-0005SB-Nc for emacs-devel@gnu.org; Fri, 08 Dec 2017 11:15:23 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41144) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eNLJ2-0005Rs-GL for emacs-devel@gnu.org; Fri, 08 Dec 2017 11:15:20 -0500 Original-Received: from mail-qt0-f180.google.com ([209.85.216.180]:40810) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1eNLJ1-0006eQ-Tg; Fri, 08 Dec 2017 11:15:20 -0500 Original-Received: by mail-qt0-f180.google.com with SMTP id u42so27040585qte.7; Fri, 08 Dec 2017 08:15:19 -0800 (PST) X-Gm-Message-State: AKGB3mIvktiVniqv0plqftYcRd30vXYYCrzw8f47z/QFFD5V4ZmkMozJ sDzHWrfS6oBqMgBINWBfSala3+BZrF0I0rv2k/c= X-Google-Smtp-Source: AGs4zMYQLRanHP7Aj8w2+WvK7XpaTXL/NPkOyVQRc1LzAAk+zamYxaoXkdPY3BkuKGBY+rrtJK9iV9igZyChi4yehdo= X-Received: by 10.200.38.33 with SMTP id u30mr17073713qtu.197.1512749719465; Fri, 08 Dec 2017 08:15:19 -0800 (PST) Original-Received: by 10.200.55.124 with HTTP; Fri, 8 Dec 2017 08:14:48 -0800 (PST) In-Reply-To: <5A2A657D.4010909@gmx.at> X-Gmail-Original-Message-ID: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:220791 Archived-At: --001a114058a4a9b3ac055fd67d27 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Dec 8, 2017 at 5:12 AM, martin rudalics wrote: > > When the user just clicks within the region (no drag), window-dropped > > remains nil. On such condition, window-start should not be set. > > > > Let's say there are two window top and bottom (T and B) in a frame. > > Scroll T to the end. Make region in B. Then click the region. I > > will see T to be scrolled to the beginning. > > Aha... Then let's rename window-dropped to something like window-exempt > and set window-exempt to the window either clicked at or where the drop > occurs. Would that be OK? =E2=80=8BBetter names might be droppped-window or destination-window. If this is nil, then no drag-and-drop occurred; otherwise, it is the window of the drop, so why call it window-exempt? Bob =E2=80=8B --001a114058a4a9b3ac055fd67d27 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Fri, Dec 8, 20= 17 at 5:12 AM, martin rudalics <rudalics@gmx.at> wrote:
> When the user jus= t clicks within the region (no drag), window-dropped
> remains nil.=C2=A0 On such condition, window-start should not be set.<= br> >
> Let's say there are two window top and bottom (T and B) in a frame= .
> Scroll T to the end.=C2=A0 Make region in B.=C2=A0 Then click the regi= on.=C2=A0 I
> will see T to be scrolled to the beginning.

Aha...=C2=A0 Then let's rename window-dropped to something like window-= exempt
and set window-exempt to the window either clicked at or where the drop
occurs.=C2=A0 Would that be OK?

=E2=80=8BBetter name= s might be droppped-window or destination-window.
If this is nil, then no = drag-and-drop occurred; otherwise,
it is the window of the drop, so why c= all it window-exempt?

Bob
=E2=80=8B
--001a114058a4a9b3ac055fd67d27--