From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: translating mouse clicks Date: Wed, 13 Jul 2005 22:52:39 -0400 Organization: Bell Sympatico Message-ID: <87hdeyksna.fsf-monnier+gnu.emacs.help@gnu.org> References: <1121277087.874449.299500@o13g2000cwo.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1121310551 3242 80.91.229.2 (14 Jul 2005 03:09:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 14 Jul 2005 03:09:11 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 14 05:09:08 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Dsu5w-00068f-07 for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Jul 2005 05:09:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dsu7d-00055b-Vt for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Jul 2005 23:10:50 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsfeed.bit.nl!border1.nntp.ams.giganews.com!nntp.giganews.com!nf3.bellglobal.com!nf1.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:n8dj7is6kJWqHkMJysXjx3TCCwQ= Original-Lines: 16 Original-NNTP-Posting-Host: 67.71.25.244 Original-X-Complaints-To: abuse@sympatico.ca Original-X-Trace: news20.bellglobal.com 1121309559 67.71.25.244 (Wed, 13 Jul 2005 22:52:39 EDT) Original-NNTP-Posting-Date: Wed, 13 Jul 2005 22:52:39 EDT Original-Xref: shelby.stanford.edu gnu.emacs.help:132440 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:27943 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:27943 > I have a trackball with four buttons which emacs sees as buttons > mouse-1, mouse-3, mouse-4, and mouse-5. I would like emacs to > treat mouse-4 clicks as though they were mouse-2 clicks. > (global-set-key [mouse-4] [mouse-2]) > (define-key key-translation-map [mouse-4] [mouse-2]) > (keyboard-translate 'mouse-4 'mouse-2) > but none of these work for me. I think it's reasonable to expect the second to work (and it's reasonable for Emacs to mishandle the first and last). Please file a bug report with M-x report-emacs-bug. Stefan