From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?Johan_Bockg=C3=A5rd?= Newsgroups: gmane.emacs.devel Subject: New mouse click behavior (was: bug#9541: mouse-1 inside scroll-margin causes undesirable region activation) Date: Sun, 02 Oct 2011 12:03:43 +0200 Message-ID: <87fwjb7ls0.fsf_-_@gnu.org> References: <87zkhvx9pe.fsf@gnu.org> <87vcsh6b1f.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1317549837 23577 80.91.229.12 (2 Oct 2011 10:03:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 2 Oct 2011 10:03:57 +0000 (UTC) Cc: emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 02 12:03:52 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RAItj-0004qe-Q0 for ged-emacs-devel@m.gmane.org; Sun, 02 Oct 2011 12:03:51 +0200 Original-Received: from localhost ([::1]:48259 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RAItj-0004DD-BO for ged-emacs-devel@m.gmane.org; Sun, 02 Oct 2011 06:03:51 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:33035) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RAItg-0004D7-2W for emacs-devel@gnu.org; Sun, 02 Oct 2011 06:03:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RAItf-0008Ju-1Z for emacs-devel@gnu.org; Sun, 02 Oct 2011 06:03:48 -0400 Original-Received: from smtprelay-b22.telenor.se ([195.54.99.213]:43165) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RAIte-0008Jq-Sg for emacs-devel@gnu.org; Sun, 02 Oct 2011 06:03:47 -0400 Original-Received: from iph5.telenor.se (iph5.telenor.se [195.54.127.136]) by smtprelay-b22.telenor.se (Postfix) with ESMTP id B39B5EA465 for ; Sun, 2 Oct 2011 12:03:45 +0200 (CEST) X-SMTPAUTH-B2: [bocjoh] X-SENDER-IP: [85.228.197.67] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvNeAEE2iE5V5MVDPGdsb2JhbABBhGWER58AGQEBAQE3MoFTAQEEASMzIwULGQwCHwcCAhAEGAEMChoTh3sCph+QK4EthGGBEwSlIA X-IronPort-AV: E=Sophos;i="4.68,476,1312149600"; d="scan'208";a="45419706" Original-Received: from c-43c5e455.04-211-6c6b701.cust.bredbandsbolaget.se (HELO muon.localdomain) ([85.228.197.67]) by iph5.telenor.se with ESMTP; 02 Oct 2011 12:03:45 +0200 Original-Received: by muon.localdomain (Postfix, from userid 1000) id 965F74842CC; Sun, 2 Oct 2011 12:03:43 +0200 (CEST) Mail-Copies-To: never In-Reply-To: <87vcsh6b1f.fsf@stupidchicken.com> (Chong Yidong's message of "Sat, 24 Sep 2011 14:38:20 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 195.54.99.213 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:144528 Archived-At: Chong Yidong writes: > Johan Bockg=C3=A5rd writes: > >> The real bug is that mouse-clicks set the mark (always). (Search for >> push-mark in mouse-drag-track.) > > No, that's intended behavior. The OP's suggestion of disabling the > scroll margin while tracking a mouse drag is on the right track. I've > committed a change along those lines. I still think it's a bug. The new behavior is a pain. A mouse click should move point; it makes no sense for it to also set the mark. Also, there's no simple way to go back to the old, sane, behavior. (It also causes blinking in the tool bar when you click the mouse.)