unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Reiner Steib <reinersteib+gmane@imap.cc>
Cc: GNU Emacs Bug Reports <bug-gnu-emacs@gnu.org>
Subject: Re: Swapping mouse buttons under X11
Date: Sun, 10 Sep 2006 15:47:14 +0200	[thread overview]
Message-ID: <v9k64bbzq5.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <20060904153738531.chris-madsen@comcast.net> (Christopher J. Madsen's message of "Mon\, 04 Sep 2006 15\:37\:38 -0500 \(CDT\)")

On Mon, Sep 04 2006, Christopher J. Madsen wrote:

> 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 wonder if you'd like to swap button 2 and 3 for the whole session
rather than only for Emacs.  I do this on my notebook (only two mouse
buttons) using xmodmap:

Xmodmap_mouse_132 ()
{
  local buttons
  buttons=`xmodmap -pp | sed -ne "s/.*There are \(.*\) pointer buttons.*/\1/p"`
  # useful e.g. for notebook with 2-button mouse:
  # let left button act as middle button and left+right as right button
  if [ "$buttons" -ge 4 ]; then
    xmodmap -e "pointer = 1 3 2 `seq 4 $buttons`"
  else
    xmodmap -e "pointer = 1 3 2"
  fi
}

Also note that in Emacs 22 (CVS) you can follow links with mouse-1
instead of mouse-2:

,----[ etc/NEWS in Emacs 22 ]
| *** You can now follow links by clicking Mouse-1 on the link.
| 
| Traditionally, Emacs uses a Mouse-1 click to set point and a Mouse-2
| click to follow a link, whereas most other applications use a Mouse-1
| click for both purposes, depending on whether you click outside or
| inside a link.  Now the behavior of a Mouse-1 click has been changed
| to match this context-sentitive dual behavior.  (If you prefer the old
| behavior, set the user option `mouse-1-click-follows-link' to nil.)
`----

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/

      reply	other threads:[~2006-09-10 13:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-04 20:37 Swapping mouse buttons under X11 Christopher J. Madsen
2006-09-10 13:47 ` Reiner Steib [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=v9k64bbzq5.fsf@marauder.physik.uni-ulm.de \
    --to=reinersteib+gmane@imap.cc \
    --cc=Reiner.Steib@gmx.de \
    --cc=bug-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).