From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: gebser@ameritech.net Newsgroups: gmane.emacs.help Subject: Re: X: standard method for "switching off" left mouse button? Date: Sun, 30 Mar 2003 17:59:32 -0500 (EST) Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: Reply-To: gebser@ameritech.net NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: main.gmane.org 1049065145 7248 80.91.224.249 (30 Mar 2003 22:59:05 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 30 Mar 2003 22:59:05 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 31 00:59:04 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18zllX-0001sX-00 for ; Mon, 31 Mar 2003 00:59:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18zliu-0007sk-00 for gnu-help-gnu-emacs@m.gmane.org; Sun, 30 Mar 2003 17:56:20 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18zliM-0007Qx-00 for help-gnu-emacs@gnu.org; Sun, 30 Mar 2003 17:55:46 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18zliH-0007Ea-00 for help-gnu-emacs@gnu.org; Sun, 30 Mar 2003 17:55:42 -0500 Original-Received: from mailhost2-bcvloh.bcvloh.ameritech.net ([66.73.20.44] helo=mailhost.bcv2.ameritech.net) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18zliF-0006rR-00 for help-gnu-emacs@gnu.org; Sun, 30 Mar 2003 17:55:39 -0500 Original-Received: from heidegger.mousecar.net ([65.43.210.87]) by mailhost.bcv2.ameritech.net (InterMail vM.4.01.02.17 201-229-119) with ESMTP <20030330225533.HKSW17758.mailhost.bcv2.ameritech.net@heidegger.mousecar.net>; Sun, 30 Mar 2003 17:55:33 -0500 Original-Newsgroups: gnu.emacs.help Original-To: Florian von Savigny In-Reply-To: X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:7999 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:7999 Ca va. I experienced exactly the same very annoying problem. The best/quickest solution I found was to plug a regular mouse into the laptop. Another note: any emacs solution you implement should work only when the focus is on emacs, meaning that if the mouse pointer is on, say, a terminal window, when you accidently touch the mousepad, it'll bring up that terminal window. So the disabling of the mouse should be done in X; look in /etc/X11/XF86Config* for the mouse section. The problem with this "solution", however, is that you'd have to restart X every time you wanted to disable or enable the mouse... probably as much a hassle as dealing with touchpad accidents. Now for a completely crazy idea: /dev/mouse is a symlink to /dev/psaux. It could possibly, conceivably, theoretically be possibly theoretically conceivable to disable the mouse by removing /dev/mouse and then enable it again with "ln -s /dev/psaux /dev/mouse". You might try that (on your boss's computer when he's not around). I'd be curious to know if that works, but not curious enough to try it on my own box. B^+ hth, ken -- Thanks for your help with the revolution. -- G. Washington At 23:10 (UTC+0100) on 29 Mar 2003 Florian von Savigny said: = = I thought this might be a common problem with laptops: I am using a = laptop with a touchpad (or whatever that's called) which has the = feature that tapping on it is transmitted as a left mouse button = click. Because of its position, my hands cannot stay away from the = touch pad (right between them) while touch-typing, and every few = minutes, they generate a left mouse button click which puts point in = an awkward position ... it is very annoying, especially if you = recognize it some ten keystrokes later ... = = I think I'd be able to go the brute force approach of redefining the = bindings for the left mouse button to a command that does nothing, but = I wonder whether there's a more elegant way. It would be nice to have = a simple command to simply "suspend" the mouse bindings for the left = button, such that I can turn them back on when I need them. = = Is there any such thing around? Can anybody give me hints apart from = that? I'd appreciate a lot. = =