From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: clipboard/selection: customization vs. rebinding Date: Thu, 30 Jun 2011 12:57:20 -0400 Message-ID: References: <4E07A0DB.7030503@harpegolden.net> <87d3hz5kp7.fsf@stupidchicken.com> <87k4c4d3i0.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1309461584 2718 80.91.229.12 (30 Jun 2011 19:19:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 30 Jun 2011 19:19:44 +0000 (UTC) Cc: Emacs developers , David De La Harpe Golden To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 30 21:19:39 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 1QcMm0-0001X8-52 for ged-emacs-devel@m.gmane.org; Thu, 30 Jun 2011 21:19:36 +0200 Original-Received: from localhost ([::1]:34597 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QcMly-0006Gs-Mf for ged-emacs-devel@m.gmane.org; Thu, 30 Jun 2011 15:19:34 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:49817) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QcKYc-0000L8-8G for emacs-devel@gnu.org; Thu, 30 Jun 2011 12:57:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QcKYa-0002VK-DX for emacs-devel@gnu.org; Thu, 30 Jun 2011 12:57:37 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:31597 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QcKYZ-0002Tn-UF for emacs-devel@gnu.org; Thu, 30 Jun 2011 12:57:36 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAIKqDE5MCqDH/2dsb2JhbABSp1V4iHi/TIYxBJ5OhCs X-IronPort-AV: E=Sophos;i="4.65,451,1304308800"; d="scan'208";a="117797127" Original-Received: from 76-10-160-199.dsl.teksavvy.com (HELO pastel.home) ([76.10.160.199]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 30 Jun 2011 12:57:21 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 1E23A5912D; Thu, 30 Jun 2011 12:57:20 -0400 (EDT) In-Reply-To: <87k4c4d3i0.fsf@stupidchicken.com> (Chong Yidong's message of "Wed, 29 Jun 2011 12:08:39 -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: 206.248.154.181 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:141268 Archived-At: >> Shouldn't we do something like the patch below? >> >> -(global-set-key [left-fringe mouse-1] 'mouse-set-point) >> -(global-set-key [right-fringe mouse-1] 'mouse-set-point) >> +(global-set-key [left-fringe mouse-1] [mouse-1]) >> +(global-set-key [right-fringe mouse-1] [mouse-1]) > That doesn't work for mouse-yank-primary. Binding [left-fringe mouse-2] > to [mouse-2], and doing mouse-2 in the fringe, gives an error: > Debugger entered--Lisp error: (error "mouse-yank-primary must be bound > to an event with parameters") > call-interactively(mouse-yank-primary nil nil) > The problem is that mouse events are not passed along to keyboard macro > bindings. Hmm... so maybe we should do (define-key function-key-map [left-fringe mouse-2] [mouse-2]) instead. The point is simply that by default clicks in the fringe should fallback to doing the same as clicks in the text area. Stefan