From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: r3jsel@yahoo.com Newsgroups: gmane.emacs.help Subject: Re: translating mouse clicks Date: 15 Jul 2005 09:39:44 -0700 Organization: http://groups.google.com Message-ID: <1121445584.896635.211920@z14g2000cwz.googlegroups.com> References: <1121277087.874449.299500@o13g2000cwo.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1121445948 29469 80.91.229.2 (15 Jul 2005 16:45:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 15 Jul 2005 16:45:48 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 15 18:45:43 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DtTIl-0001nn-B2 for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Jul 2005 18:44:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DtTKH-00076Q-Ha for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Jul 2005 12:46:13 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!z14g2000cwz.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 22 Original-NNTP-Posting-Host: 208.201.253.77 Original-X-Trace: posting.google.com 1121445590 5192 127.0.0.1 (15 Jul 2005 16:39:50 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 15 Jul 2005 16:39:50 +0000 (UTC) User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: z14g2000cwz.googlegroups.com; posting-host=208.201.253.77; posting-account=TIZcxA0AAACPfv9ztjG154ExJm1eRN2I Original-Xref: shelby.stanford.edu gnu.emacs.help:132462 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:27973 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:27973 Thanks to everyone for their help. On Stefan's suggestion I've submitted a bug report on this. In the mean time, I'm using variations on rgb's (global-set-key [mouse-4] (lookup-key global-map [mouse-2])) as workarounds. r3jsel@yahoo.com wrote: > 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. > > Googling finds suggestions to try > > (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.