From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#13523: 24.2.92; [regression] mark-active Date: Wed, 23 Jan 2013 03:06:10 -0500 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1358928440 20886 80.91.229.3 (23 Jan 2013 08:07:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Jan 2013 08:07:20 +0000 (UTC) Cc: Chong Yidong To: 13523@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 23 09:07:39 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 1TxvMu-000221-BT for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 Jan 2013 09:07:36 +0100 Original-Received: from localhost ([::1]:59442 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TxvMc-0002q9-MX for geb-bug-gnu-emacs@m.gmane.org; Wed, 23 Jan 2013 03:07:18 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:55439) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TxvME-0001ge-Bc for bug-gnu-emacs@gnu.org; Wed, 23 Jan 2013 03:06:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TxvM8-0005UQ-Do for bug-gnu-emacs@gnu.org; Wed, 23 Jan 2013 03:06:54 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40116) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TxvM8-0005UJ-BG for bug-gnu-emacs@gnu.org; Wed, 23 Jan 2013 03:06:48 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TxvNJ-0000oX-Ow for bug-gnu-emacs@gnu.org; Wed, 23 Jan 2013 03:08:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 23 Jan 2013 08:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13523 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13523-submit@debbugs.gnu.org id=B13523.13589284503047 (code B ref 13523); Wed, 23 Jan 2013 08:08:01 +0000 Original-Received: (at 13523) by debbugs.gnu.org; 23 Jan 2013 08:07:30 +0000 Original-Received: from localhost ([127.0.0.1]:45576 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TxvMn-0000n5-CK for submit@debbugs.gnu.org; Wed, 23 Jan 2013 03:07:30 -0500 Original-Received: from fencepost.gnu.org ([208.118.235.10]:51240) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TxvMk-0000mt-Kq for 13523@debbugs.gnu.org; Wed, 23 Jan 2013 03:07:27 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1TxvLW-0008SV-L0; Wed, 23 Jan 2013 03:06:10 -0500 X-Spook: mindwar 2600 Magazine AGT. AMME RSA ICE Steve Case X-Ran: D} X-Hue: red X-Attribution: GM In-Reply-To: (Leo Liu's message of "Tue, 22 Jan 2013 16:03:53 +0800") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.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:70197 Archived-At: So IIUC the issue can be summarized as: down-mouse-1 runs mouse-drag-region mouse-1 runs mouse-set-point mouse-drag-region calls mouse-drag-track. Since 2010-07-03 (I think), this unconditionally pushes mark. It then uses track-mouse to watch for further mouse events. If at the end, point has not moved and the last event was mouse-set-point or mouse-set-region, it deactivates and pops the mark. Otherwise it assumes it is handling a multi-click event (since 2010-07-05), and does not deactivate mark. The result is that if you bind mouse-1 to something other than mouse-set-point, and leave down-mouse-1 alone, then after a mouse-1 click the mark stays active (unless you specifically deactivate it). Examples can be seen with image-dired and rst-toc-mode, which both bind mouse-1 but not down-mouse-1. In both cases, mouse-1 clicks leave the mouse active. It doesn't seem to matter in either case, but probably is not intended. Is the intention that people bind down-mouse-1 as well/instead of mouse-1, or that things bound to mouse-1 deactivate mark, or can the multi-click detection be changed somehow to avoid this?