* How to prevent double X pastes?
@ 2008-08-23 14:06 Robert J. Chassell
2008-08-23 15:27 ` James Cloos
0 siblings, 1 reply; 9+ messages in thread
From: Robert J. Chassell @ 2008-08-23 14:06 UTC (permalink / raw)
To: emacs-devel
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?
Doubling also happens when I copy a command from one xterm to another.
That suggests the problem is an X issue.
However, doubling does not happen when I go from an xterm to GNU Emacs.
Also, doubling does not happen between two RXVT shells.
I am using the 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
--
Robert J. Chassell GnuPG Key ID: 004B4AC8
bob@rattlesnake.com bob@gnu.org
http://www.rattlesnake.com http://www.teak.cc
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to prevent double X pastes?
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
0 siblings, 1 reply; 9+ messages in thread
From: James Cloos @ 2008-08-23 15:27 UTC (permalink / raw)
To: Robert J. Chassell; +Cc: emacs-devel
>>>>> "Robert" == Robert J Chassell <bob@rattlesnake.com> writes:
Robert> How do I prevent a region being pasted twice when I copy the
Robert> primary region with my mouse from GNU Emacs to an xterm or an
Robert> RXVT shell in X?
Do you have a three button mouse, or are you using middle button
emulation?
Which driver do you use, mouse or evdev?
Is the mouse ps/2 or usb?
If the mouse driver is loaded and listening on /dev/input/mice and evdev
is also loaded and listening on the /dev/input/evdev* devices you could
be getting two X events for each button press/mouse movement.
The X logs would give some clues if that is the case.
Or, if you're middle button is also a wheel, a slight forward or
backward movement when pressing it could lead to a double event.
If you are using middle button emulation, there could be some issue with
the timeouts.
These are all guesses, of course.
-jimC
--
James Cloos <cloos@jhcloos.com> OpenPGP: 1024D/ED7DAEA6
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to prevent double X pastes?
2008-08-23 15:27 ` James Cloos
@ 2008-08-23 20:24 ` Robert J. Chassell
2008-08-23 21:05 ` Andreas Schwab
0 siblings, 1 reply; 9+ messages in thread
From: Robert J. Chassell @ 2008-08-23 20:24 UTC (permalink / raw)
To: emacs-devel
[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
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to prevent double X pastes?
2008-08-23 20:24 ` Robert J. Chassell
@ 2008-08-23 21:05 ` Andreas Schwab
2008-08-24 1:11 ` Robert J. Chassell
0 siblings, 1 reply; 9+ messages in thread
From: Andreas Schwab @ 2008-08-23 21:05 UTC (permalink / raw)
To: Robert J. Chassell; +Cc: emacs-devel
bob@rattlesnake.com (Robert J. Chassell) writes:
> My /etc/X11/xorg.conf file:
>
> Identifier "Generic Mouse"
> Driver "mouse"
> Option "CorePointer"
> Option "Device" "/dev/psaux"
> Option "Protocol" "PS/2"
Try removing that. /dev/input/mice already functions as a multiplexer
for all mouse events in the system.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: How to prevent double X pastes?
2008-08-23 21:05 ` Andreas Schwab
@ 2008-08-24 1:11 ` Robert J. Chassell
2008-08-24 17:49 ` James Cloos
0 siblings, 1 reply; 9+ messages in thread
From: Robert J. Chassell @ 2008-08-24 1:11 UTC (permalink / raw)
To: emacs-devel
No success.
> My /etc/X11/xorg.conf file:
>
> Identifier "Generic Mouse"
> Driver "mouse"
> Option "CorePointer"
> Option "Device" "/dev/psaux"
> Option "Protocol" "PS/2"
Try removing that. /dev/input/mice already functions as a multiplexer
for all mouse events in the system.
I tried, as a different user, starting from a different virtual console
and starting X (with an Enlightenment window manager, as I normally
have). In the cases where X started, I pasted doubles from `emacs -Q
-D' to an xterm as before.
I could start X when I had everything in my /etc/X11/xorg.conf file
except that I changed /dev/psaux to /dev/input/mice. That section
looked like this:
Identifier "Generic Mouse"
Driver "mouse"
Option "CorePointer"
# Option "Device" "/dev/psaux"
Option "Device" "/dev/input/mice"
Option "Protocol" "PS/2"
Similarly, I could start X when I commented out most parts of that
section but left the Driver as "mouse".
Identifier "Generic Mouse"
Driver "mouse"
# Option "CorePointer"
# Option "Device" "/dev/psaux"
# Option "Device" "/dev/input/mice"
# Option "Protocol" "PS/2"
Those gave me doubles.
I could not start X when I commented out those options plus the driver
or those options plus the driver plus the identifier.
--
Robert J. Chassell GnuPG Key ID: 004B4AC8
bob@rattlesnake.com bob@gnu.org
http://www.rattlesnake.com http://www.teak.cc
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2008-08-26 20:11 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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
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.