From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Steven Tamm Newsgroups: gmane.emacs.devel Subject: Three-button mouse emulation on OSX (was Re: Enhancement for Emacs on Mac OSX) Date: Thu, 12 Feb 2004 20:29:55 -0800 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <466BEBC8-5DDD-11D8-A1DE-00039390AB82@mac.com> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (Apple Message framework v612) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1076646749 15215 80.91.224.253 (13 Feb 2004 04:32:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 13 Feb 2004 04:32:29 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Feb 13 05:32:22 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ArV02-0006Qg-00 for ; Fri, 13 Feb 2004 05:32:22 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1ArV02-00053t-00 for ; Fri, 13 Feb 2004 05:32:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ArUyP-0005I0-H4 for emacs-devel@quimby.gnus.org; Thu, 12 Feb 2004 23:30:41 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1ArUyJ-0005Hp-Cb for emacs-devel@gnu.org; Thu, 12 Feb 2004 23:30:35 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1ArUxn-0005CP-LK for emacs-devel@gnu.org; Thu, 12 Feb 2004 23:30:34 -0500 Original-Received: from [17.250.248.45] (helo=smtpout.mac.com) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ArUxn-0005CI-9U for emacs-devel@gnu.org; Thu, 12 Feb 2004 23:30:03 -0500 Original-Received: from mac.com (smtpin08-en2 [10.13.10.153]) by smtpout.mac.com (Xserve/MantshX 2.0) with ESMTP id i1D4TvNu021265; Thu, 12 Feb 2004 20:29:58 -0800 (PST) Original-Received: from [67.169.52.219] (c-67-169-52-219.client.comcast.net [67.169.52.219]) (authenticated bits=0) by mac.com (Xserve/smtpin08/MantshX 3.0) with ESMTP id i1D4TvPq010679; Thu, 12 Feb 2004 20:29:57 -0800 (PST) In-Reply-To: Original-To: Piet van Oostrum X-Mailer: Apple Mail (2.612) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:19909 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:19909 So I'm getting around to look at this and I have a couple suggestions: - I don't like the use of positive and negative numbers to represent the variable. I'd much rather have symbols like nil, t, and "reverse" (or something like that). "t" would correspond to the Apple X11 implementation where option is the middle button and command is the right button (what was positive in your implementation). "reverse" is self-explanatory. - What should happen if both option and command is clicked? With X11, the mouse-3 wins, that should probably be the behavior (in the patch, option wins). - Right now the patch here would require carbon events (i.e. it wouldn't work on OS9). Is anyone out there using OS9 that would like 3-button emulation? Is anyone using emacs with OS9? The change would be fairly trivial, but I'd like some testing since I don't even have classic installed. All opinions welcome, -Steven On Feb 5, 2004, at 4:49 AM, Piet van Oostrum wrote: > I have some code in my private emacs copy for emulation a three-button > mouse on a Mac with a one-button mouse. Basically the same as it is > done > in X11: Alt-mouse for the middle button and Command-mouse for the right > button, or the other way around, depending on a variable. I would like > to > ask to include this code in CVS. I have no CVS access, but I signed > copyright papers (how do you call them) centuries ago (Well, the last > century). Can I post this code here, or gain CVS access? > > As I am using this emacs all day, I can also do some debugging. > > Regards, > -- > Piet van Oostrum > URL: http://www.cs.uu.nl/~piet [PGP] > Private email: P.van.Oostrum@hccnet.nl