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: Fri, 08 Dec 2017 06:45:40 +0900 (JST) Message-ID: <20171208.064540.661845144160459379.tak.kunihiro@gmail.com> References: <5A265E99.8030908@gmx.at> <20171206.182939.453729203755008958.tak.kunihiro@gmail.com> <5A290951.7000807@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 1512683170 15228 195.159.176.226 (7 Dec 2017 21:46:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 7 Dec 2017 21:46:10 +0000 (UTC) Cc: eliz@gnu.org, tak.kunihiro@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 Thu Dec 07 22:46:00 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 1eN3zQ-0003Yl-IT for ged-emacs-devel@m.gmane.org; Thu, 07 Dec 2017 22:45:56 +0100 Original-Received: from localhost ([::1]:34488 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eN3zX-0003Ze-Nu for ged-emacs-devel@m.gmane.org; Thu, 07 Dec 2017 16:46:03 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50918) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eN3zL-0003XS-9E for emacs-devel@gnu.org; Thu, 07 Dec 2017 16:45:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eN3zK-0005i2-HS for emacs-devel@gnu.org; Thu, 07 Dec 2017 16:45:51 -0500 Original-Received: from mail-pg0-x236.google.com ([2607:f8b0:400e:c05::236]:35021) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eN3zG-0005eZ-TP; Thu, 07 Dec 2017 16:45:47 -0500 Original-Received: by mail-pg0-x236.google.com with SMTP id q20so5393244pgv.2; Thu, 07 Dec 2017 13:45:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:message-id:to:cc:subject:from:in-reply-to:references :mime-version:content-transfer-encoding; bh=G9tqCzZeSGaOLERBGz+50AZCtgSqly3bJrlyCw5V8dY=; b=OTsNozL/VALE+7jPfwUYRs8hIlM3C39ZgChxXqguaMMG6NDnNX4kDV/dW6jx8vKwGF /VRwhbvmfti7B4p6PIVHZQYF91Ar7U/JddIlM3GFYD/0nhaUJGLiweKW1Ubt5oZk4aUv 0EkiYWr0MbX8b5ckUB7aZWi5FbAa8GiQEHkwa7L0lTytlHeMB/D7EcmTA8xL9T8AWLKD KpAU7cmyQHY/d20+z0AgJvxqy620Gw7MLNJ4dVkQha0DHqKjHDS1vLIC/MVj+joXmah/ 3OlmWDVFkoywxm5E0weiY7M1r4/UHSXl7dMwJEupX/vZGujKfkvh/Xpwg5uLak3HndEL JmlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:to:cc:subject:from:in-reply-to :references:mime-version:content-transfer-encoding; bh=G9tqCzZeSGaOLERBGz+50AZCtgSqly3bJrlyCw5V8dY=; b=tFPoZUeKHLkz3ozqcbqWfE+39usbxQP5V1Tjf4hAkdNXF7NrHfMU8/10pxbXP90LNV H6MNX94WtDxvzsR6oL6kz0wKQGZpHBHzWMuwNhT4Ub0P1w/douJbUMLcoWN3peIOFU0N jqAgttjjqGAyR0cqSoZaqPU954g+M54nRKqA6ZwM6P8o1nF3WJm1YQ3PKi3HBrWdw/AN VPqVyIEd2cKBjAHjGGVT3by6WmMFYFjp+dU0+5oeVRm26c6Ni33HBl+D8wknNEL+g0Ck xDPLgxQuNL8ERrQICb/8HLxJexxFPMV7sybeM/hXg/BM0Jn7WAxceUZIUt/ZUltFOCX2 yB/Q== X-Gm-Message-State: AJaThX51XPeYi5fLFnuzeXP46/FqPbPVwmHGgzbbf7mJcGFG0NH4o6XZ IYbi+t5kQYx0yAGqj/i4kBc= X-Google-Smtp-Source: AGs4zMZKsPTqgcRJXz+coNX7rrm5eMXKynj50ujGosDr4eTR+KzIDEgU5a2LE1dEM3Wr1asA/doD5A== X-Received: by 10.101.99.213 with SMTP id n21mr27534330pgv.64.1512683145294; Thu, 07 Dec 2017 13:45:45 -0800 (PST) Original-Received: from localhost (p221050-ipngn200207tottori.tottori.ocn.ne.jp. [153.182.220.50]) by smtp.gmail.com with ESMTPSA id m124sm11678257pfc.64.2017.12.07.13.45.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Dec 2017 13:45:44 -0800 (PST) In-Reply-To: <5A290951.7000807@gmx.at> X-Mailer: Mew version 6.7 on Emacs 26.0 / Mule 6.0 (HANACHIRUSATO) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::236 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:220782 Archived-At: >> I found a glitch. I think >> >> (unless (eq window window-dropped)... >> >> should be something like >> >> (when (and window-dropped >> (not (eq window window-dropped)))... > > Wouldn't this mean that when window-dropped is nil and the user has > changed the point of some other window, that other's window point is > not reverted to its original position? I think the > > (unless (eq window window-dropped) > > DTRT: WINDOW cannot be nil here and if it equals WINDOW-DROPPED then > we should not revert its point. Or am I missing something? 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.