From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#15960: 24.3.50; Provide a good way to tell when in `mouse-drag-track' (regression) Date: Sat, 23 Nov 2013 15:21:35 -0800 (PST) Message-ID: <25e6e155-4da6-4d8c-bf2a-12f7e7f80c4c@default> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1385248940 11999 80.91.229.3 (23 Nov 2013 23:22:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 23 Nov 2013 23:22:20 +0000 (UTC) Cc: 15960@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 24 00:22:24 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VkMWt-00084T-OJ for geb-bug-gnu-emacs@m.gmane.org; Sun, 24 Nov 2013 00:22:23 +0100 Original-Received: from localhost ([::1]:45408 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VkMWt-0000Wo-8h for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Nov 2013 18:22:23 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38286) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VkMWh-0000WD-Eq for bug-gnu-emacs@gnu.org; Sat, 23 Nov 2013 18:22:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VkMWY-0003KV-TQ for bug-gnu-emacs@gnu.org; Sat, 23 Nov 2013 18:22:11 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54944) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VkMWY-0003KR-Px for bug-gnu-emacs@gnu.org; Sat, 23 Nov 2013 18:22:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VkMWY-0002Dl-5P for bug-gnu-emacs@gnu.org; Sat, 23 Nov 2013 18:22:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Nov 2013 23:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15960 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15960-submit@debbugs.gnu.org id=B15960.13852489118518 (code B ref 15960); Sat, 23 Nov 2013 23:22:02 +0000 Original-Received: (at 15960) by debbugs.gnu.org; 23 Nov 2013 23:21:51 +0000 Original-Received: from localhost ([127.0.0.1]:40730 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VkMWM-0002DJ-K3 for submit@debbugs.gnu.org; Sat, 23 Nov 2013 18:21:50 -0500 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:49233) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VkMWL-0002D6-7n for 15960@debbugs.gnu.org; Sat, 23 Nov 2013 18:21:49 -0500 Original-Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by aserp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id rANNLgca026207 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 23 Nov 2013 23:21:43 GMT Original-Received: from aserz7021.oracle.com (aserz7021.oracle.com [141.146.126.230]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id rANNLeSF028836 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 23 Nov 2013 23:21:42 GMT Original-Received: from abhmp0005.oracle.com (abhmp0005.oracle.com [141.146.116.11]) by aserz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id rANNLetZ016658; Sat, 23 Nov 2013 23:21:40 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] X-Source-IP: ucsinet21.oracle.com [156.151.31.93] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:80887 Archived-At: > > Emacs 24 changed things, so that this mode-line highlighting now > > appeared immediately when you press `mouse-1', and did not wait > > until you actually drag the mouse or release `mouse-1'. >=20 > Might simply be a bug. I suggest you focus on tracking why this is. It might. I have no objection to it being seen as a bug, and fixed. But the behavior of the highlighting appearing now before you release mouse-1 is a definite improvement. I would not wish to see that lost because of the "fix". This just should not happen unless at least one char is selected. In any case, Chong Yidong (I think) changed the code considerably for Emacs 24. It will take someone more knowledgable than I to figure it out, let alone figure out just what was intended vs what might have been accidental. Providing a good, clean way to tell whether `mouse-drag-track' is in progress (e.g. `mouse-tracking-p') would solve the problem I am reporting. I would guess that it might also be useful more generally. But if you don't see it that way and don't want to fix this, I'll continue to rely on (eq 0 echo-keystrokes) as the test for this.