bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Swapping mouse buttons under X11


From: Christopher J. Madsen
Subject: Swapping mouse buttons under X11
Date: Mon, 04 Sep 2006 15:37:38 -0500 (CDT)

I got used to using Emacs on Microsoft Windows with w32-swap-mouse-buttons
set to 't (which swaps mouse buttons 2 & 3).  I want to be able to get the
same behavior on GNU/Linux & X11.

I have attached a patch to illustrate what I'm trying to do.  The patch
works great (I've been using it on my system for years), but the problem
is that it has no UI.  It always swaps buttons 2 & 3.  Obviously, it needs
a UI before it can be merged.

The question is what kind of UI it should have.  I'm aware of two
variables that have similar behavior: mac-wheel-button-is-mouse-2 and
w32-swap-mouse-buttons.  They do the same thing, except the sense is
reversed.

I see several possibilities:

1. Add x-swap-mouse-buttons (acts like w32-swap-mouse-buttons).

2. Add x-mouse-button-array (lets you remap buttons in any way you choose).

3. Replace existing vars with swap-mouse-buttons.

4. Replace existing vars with mouse-button-array.

Any comments?

-- 
Chris Madsen                                            cjm@pobox.com
  ------------------  http://www.pobox.com/~cjm  ------------------

Attachment: swap_buttons.patch
Description: Patch to xterm.c


reply via email to

[Prev in Thread] Current Thread [Next in Thread]