all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: bob@rattlesnake.com (Robert J. Chassell)
To: emacs-devel@gnu.org
Subject: Re: How to prevent double X pastes?
Date: Sat, 23 Aug 2008 20:24:55 +0000	[thread overview]
Message-ID: <87k5e7v5rc.fsf@rattlesnake.com> (raw)
In-Reply-To: <m363prwy2k.fsf@lugabout.jhcloos.org> (message from James Cloos on Sat, 23 Aug 2008 11:27:40 -0400)

[Earlier I said,
    This is very likely an X issue, not a GNU Emacs issue.  I would like
    a work around.

    How do I prevent a region being pasted twice when I copy the primary
    region with my mouse from GNU Emacs to an xterm or an RXVT shell in
    X?]

James Cloos <cloos@jhcloos.com> responded and asked,

    Do you have a three button mouse, or are you using middle button
    emulation?

three button

    Is the mouse ps/2 or usb?

ps/2

My /etc/X11/xorg.conf file:

	Identifier	"Generic Mouse"
	Driver		"mouse"
	Option		"CorePointer"
	Option		"Device"		"/dev/psaux"
        Option		"Protocol"		"PS/2"
       
Occasionally, I plug in a USB mouse with a wheel that I can use as a
center button, but have not recently.  I have not plugged it in when I
had double pastings.  For my USB mouse, even though it is not plugged
in, my /etc/X11/xorg.conf file has a section that says:

        Identifier	"USBMice"
	Driver		"mouse"
        Option	        "Protocol"              "IMPS/2"
        Option	        "Device"                "/dev/input/mice"

I do not have evdev* in /dev/, /dev/input/, or /etc/X11/xorg.conf

/var/log/Xorg.0.log says:

  (**) |-->Input Device "Generic Keyboard"
  (**) |-->Input Device "Generic Mouse"
  (**) |-->Input Device "USBMice"
  ...
  (II) LoadModule: "mouse"
  (II) Loading /usr/lib/xorg/modules/input//mouse_drv.so
  (II) Module mouse: vendor="X.Org Foundation"
          compiled for 1.4.0.90, module version = 1.3.0
          Module class: X.Org XInput Driver
          ABI class: X.Org XInput driver, version 2.0
  ...
  (==) R128(0): Silken mouse enabled
  ...
  (**) Generic Mouse: Device: "/dev/psaux"
  (**) Generic Mouse: Protocol: "PS/2"
  (**) Option "CorePointer"
  (**) Generic Mouse: always reports core events
  (**) Option "Device" "/dev/psaux"
  (**) Option "Buttons" "5"
  (==) Generic Mouse: Emulate3Buttons, Emulate3Timeout: 50
  (**) Option "ZAxisMapping" "4 5"
  (**) Generic Mouse: ZAxisMapping: buttons 4 and 5
  (**) Generic Mouse: Buttons: 9
  (**) Generic Mouse: Sensitivity: 1
  (**) Option "Protocol" "IMPS/2"
  (**) USBMice: Device: "/dev/input/mice"
  (**) USBMice: Protocol: "IMPS/2"
  (**) Option "SendCoreEvents" "true"
  (**) USBMice: always reports core events
  (**) Option "Device" "/dev/input/mice"
  (**) Option "Buttons" "5"
  (==) USBMice: Emulate3Buttons, Emulate3Timeout: 50
  (**) Option "ZAxisMapping" "4 5"
  (**) USBMice: ZAxisMapping: buttons 4 and 5
  (**) USBMice: Buttons: 9
  (**) USBMice: Sensitivity: 1
  (**) Option "CoreKeyboard"
  (**) Generic Keyboard: always reports core events
  (**) Option "Protocol" "standard"
  (**) Generic Keyboard: Protocol: standard
  (**) Option "AutoRepeat" "500 30"
  (**) Option "XkbRules" "xorg"
  (**) Generic Keyboard: XkbRules: "xorg"
  (**) Option "XkbModel" "pc105"
  (**) Generic Keyboard: XkbModel: "pc105"
  (**) Option "XkbLayout" "us"
  (**) Generic Keyboard: XkbLayout: "us"
  (**) Option "CustomKeycodes" "off"
  (**) Generic Keyboard: CustomKeycodes disabled
  (II) evaluating device (Generic Keyboard)
  (II) XINPUT: Adding extended input device "Generic Keyboard" (type: KEYBOARD)
  (II) evaluating device (Generic Mouse)
  (II) XINPUT: Adding extended input device "Generic Mouse" (type: MOUSE)
  (II) evaluating device (USBMice)
  (II) XINPUT: Adding extended input device "USBMice" (type: MOUSE)
  (II) evaluating device (Generic Keyboard)
  (II) XINPUT: Adding extended input device "Generic Keyboard" (type: KEYBOARD)
  (II) Generic Mouse: ps2EnableDataReporting: succeeded
  (II) USBMice: ps2EnableDataReporting: succeeded
  SetClientVersion: 0 9
  (II) 3rd Button detected: disabling emulate3Button
  (II) 3rd Button detected: disabling emulate3Button


Debian Testing distribution of GNU/Linux, updated this morning

  X.Org X Server 1.4.2
  X Protocol Version 11, Revision 0
  Build Operating System: Linux Debian (xorg-server 2:1.4.2-3)
  Current Operating System: Linux benthic 2.6.22-3-686 #1 SMP 
  Sun Feb 10 20:20:49 UTC 2008 i686

  Today's GNU Emacs CVS, Sat, 2008 Aug 23 09:50 UTC
  GNU Emacs 23.0.60.51 (i686-pc-linux-gnu, GTK+ Version 2.12.11)
  started with

       /usr/local/src/emacs/src/emacs -Q -D

What else can I do?

-- 
    Robert J. Chassell                          GnuPG Key ID: 004B4AC8
    bob@rattlesnake.com                         bob@gnu.org
    http://www.rattlesnake.com                  http://www.teak.cc




  reply	other threads:[~2008-08-23 20:24 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-23 14:06 How to prevent double X pastes? Robert J. Chassell
2008-08-23 15:27 ` James Cloos
2008-08-23 20:24   ` Robert J. Chassell [this message]
2008-08-23 21:05     ` Andreas Schwab
2008-08-24  1:11       ` Robert J. Chassell
2008-08-24 17:49         ` James Cloos
2008-08-24 20:13           ` Robert J. Chassell
2008-08-26 16:36             ` Richard M. Stallman
2008-08-26 20:11               ` Robert J. Chassell

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

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

  git send-email \
    --in-reply-to=87k5e7v5rc.fsf@rattlesnake.com \
    --to=bob@rattlesnake.com \
    --cc=emacs-devel@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.