From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Andrew Choi Newsgroups: gmane.emacs.devel Subject: Re: [Mac-emacs-devel] Patch for Mouse-wheel, Multi mouse-button support & more Date: Sat, 03 Aug 2002 17:53:57 -0600 Sender: emacs-devel-admin@gnu.org Message-ID: <1782.80248442224$1028418875@news.gmane.org> References: Reply-To: akochoi@shaw.ca NNTP-Posting-Host: localhost.gmane.org Content-Transfer-Encoding: 7BIT X-Trace: main.gmane.org 1028418875 16262 127.0.0.1 (3 Aug 2002 23:54:35 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 3 Aug 2002 23:54:35 +0000 (UTC) Cc: steventamm@mac.com Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17b8jC-0004EB-00 for ; Sun, 04 Aug 2002 01:54:34 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17b935-00056I-00 for ; Sun, 04 Aug 2002 02:15:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17b8jg-0001Px-00; Sat, 03 Aug 2002 19:55:04 -0400 Original-Received: from h24-71-223-10.cg.shawcable.net ([24.71.223.10] helo=pd2mo2so.prod.shaw.ca) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17b8ii-00018v-00 for ; Sat, 03 Aug 2002 19:54:04 -0400 Original-Received: from pd4mr1so.prod.shaw.ca (pd4mr1so-qfe3.prod.shaw.ca [10.0.141.212]) by l-daemon (iPlanet Messaging Server 5.1 HotFix 0.8 (built May 12 2002)) with ESMTP id <0H0A005MKL22ZU@l-daemon> for emacs-devel@gnu.org; Sat, 03 Aug 2002 17:54:03 -0600 (MDT) Original-Received: from pn2ml7so.prod.shaw.ca (pn2ml7so-qfe0.prod.shaw.ca [10.0.121.151]) by l-daemon (iPlanet Messaging Server 5.1 HotFix 0.8 (built May 12 2002)) with ESMTP id <0H0A00A3PL2222@l-daemon> for emacs-devel@gnu.org; Sat, 03 Aug 2002 17:54:02 -0600 (MDT) Original-Received: from localhost.shawmail (h24-71-203-212.cg.shawcable.net [24.71.203.212]) by l-daemon (iPlanet Messaging Server 5.1 HotFix 0.8 (built May 12 2002)) with ESMTP id <0H0A00K5GL21NS@l-daemon> for emacs-devel@gnu.org; Sat, 03 Aug 2002 17:54:02 -0600 (MDT) In-Reply-To: Original-To: mac-emacs-devel@lists.sourceforge.net, emacs-devel@gnu.org Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:6269 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:6269 Hi Everyone, I have just checked in to the CVS a very nice patch contributed by Steven Tamm which lets Emacs recognize 2- and 3-button and wheel mice. Attached below is his description of it, among other things. Also recently changed in the CVS is the creator code of the Emacs application from ???? to EMAx. Andrew. ----- > The main part of this patch is to switch the event handling loop in > XTread_socket from using the Mac OS 9 style WaitNextEvent to using the > preferred carbon method ReceiveNextEvent. This allows the following to > be supported: > > 1. Mouse button support > Keyboard Modifiers now sent with mouse button events > Right mouse button reported as mouse-2. Third mouse button or > mouse-wheel button reported as mouse-3. This mapping is customizable. > > 2. Mouse wheel support. > Mouse-wheel events are sent out using the Windows-NT style > [mouse-wheel] event style. Changes to mac-win.el included here use > mwheel.el to support auto scrolling. > > 3. Drag and drop support onto frames. > Drag a file from the finder onto a specific buffer and it will > autoload the buffer. > > 4. Preliminary OSX Services menu support > Currently only supports reading the last thing yanked (or current > selection). So you can highlight a URL and invoke the "Open URL in > OmniWeb" menu from the services menu. I'd really like developers more > familiar with emacs-kill ring to try and give this a look, since it > currently relies on the clipboard which is not the best. > > 5. Iconify-frame now collapses the window into the dock. > Changes to mac-win.el to map C-z to "iconify" the frame to the dock. > Currently this doesn't mark the window as actually being iconified in > emacs. I'm not sure this is the right thing to do. > > 6. M-h now available since command-h key doesn't automatically turn > into invoking "Hide Emacs" > > Most of these changes are guarded by a #ifdef variable called > USE_CARBON_EVENTS which defaults to being on. If this is commented out, > the support for drag and drop and keyboard modifiers on mouse events are > still supported. > > > Here are the new variables added: > mac-reverse-ctrl-meta. If t, causes the control and meta keys to be > reversed. The default is nil. For people using PC keyboards mapped to > the Mac, this is quite beneficial. Note, this cannot be extended to > switching caps lock and control. I tried. > > mac-wheel-button-is-mouse-2. If t, causes the mouse-wheel button to map > to mouse-2 and the "right" mouse button to map to mouse-3. If nil, the > mapping is reversed. The default is t.