From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#18212: 24.3.92; Left-click on a button is treated as mouse-2 Date: Thu, 07 Aug 2014 09:08:21 -0400 Message-ID: References: <87vbq5nypa.fsf@golux.woodcraft.me.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1407416969 30259 80.91.229.3 (7 Aug 2014 13:09:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 Aug 2014 13:09:29 +0000 (UTC) Cc: 18212@debbugs.gnu.org To: Matthew Woodcraft Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 07 15:09:22 2014 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 1XFNRZ-0006el-W9 for geb-bug-gnu-emacs@m.gmane.org; Thu, 07 Aug 2014 15:09:22 +0200 Original-Received: from localhost ([::1]:46372 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XFNRZ-00086O-Hn for geb-bug-gnu-emacs@m.gmane.org; Thu, 07 Aug 2014 09:09:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38308) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XFNRO-00083V-PW for bug-gnu-emacs@gnu.org; Thu, 07 Aug 2014 09:09:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XFNRH-0001c6-9v for bug-gnu-emacs@gnu.org; Thu, 07 Aug 2014 09:09:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54798) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XFNRH-0001b5-6Q for bug-gnu-emacs@gnu.org; Thu, 07 Aug 2014 09:09:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XFNRG-0005Wy-Fy for bug-gnu-emacs@gnu.org; Thu, 07 Aug 2014 09:09:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 07 Aug 2014 13:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18212 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18212-submit@debbugs.gnu.org id=B18212.140741691121213 (code B ref 18212); Thu, 07 Aug 2014 13:09:02 +0000 Original-Received: (at 18212) by debbugs.gnu.org; 7 Aug 2014 13:08:31 +0000 Original-Received: from localhost ([127.0.0.1]:33508 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XFNQk-0005W4-8p for submit@debbugs.gnu.org; Thu, 07 Aug 2014 09:08:30 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:11960) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XFNQh-0005Vq-5h for 18212@debbugs.gnu.org; Thu, 07 Aug 2014 09:08:27 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArYGAIDvNVPAqyKr/2dsb2JhbABZgwaDSr0vgw6BFxd0giUBAQEBAgFWIwULCzQSFBgNJIgECK9GolMXjnoHhDgEqwODTCGBLg X-IPAS-Result: ArYGAIDvNVPAqyKr/2dsb2JhbABZgwaDSr0vgw6BFxd0giUBAQEBAgFWIwULCzQSFBgNJIgECK9GolMXjnoHhDgEqwODTCGBLg X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="82367162" Original-Received: from 192-171-34-171.cpe.pppoe.ca (HELO pastel.home) ([192.171.34.171]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 07 Aug 2014 09:08:21 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 632C860787; Thu, 7 Aug 2014 09:08:21 -0400 (EDT) In-Reply-To: <87vbq5nypa.fsf@golux.woodcraft.me.uk> (Matthew Woodcraft's message of "Wed, 06 Aug 2014 21:35:29 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) 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:92255 Archived-At: > If click with my left mouse button (normally mouse-1) on "button" text, > Emacs appears to think I clicked mouse-2 (normally the middle button). This is normal: it's because of mouse-1-click-follows-link and because the button has the `follow-link' property. > Recipe to reproduce: > emacs -Q --exec "(global-set-key (kbd \"\") 'clipboard-yank)" --exec "(info)" > Left-click on one of the hyperlinks. > Emacs says > Buffer is read-only: # > rather than following the hyperlink. But that is indeed a bug. I guess the button should locally bind `down-mouse-2' to override the global binding. But, in any case I recommend you bind clipboard-yank to `mouse-2' rather than to `down-mouse-2' since you otherwise get a "double yank" behavior (a mouse-2 click will first run clipboard-yank because of the down-mouse-2 binding and then will run mouse-yank-primary because it's bound to mouse-2). Stefan