unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Andrew Choi <akochoi@shaw.ca>
Cc: steventamm@mac.com
Subject: Re: [Mac-emacs-devel] Patch for Mouse-wheel, Multi mouse-button support & more
Date: Sat, 03 Aug 2002 17:53:57 -0600	[thread overview]
Message-ID: <1782.80248442224$1028418875@news.gmane.org> (raw)
In-Reply-To: <ABF5E30C-9BAD-11D6-91CA-00039390AB82@mac.com>

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.

       reply	other threads:[~2002-08-03 23:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <ABF5E30C-9BAD-11D6-91CA-00039390AB82@mac.com>
2002-08-03 23:53 ` Andrew Choi [this message]
     [not found] <m2k7n7v6qy.fsf@shaw.ca>
2002-08-04  9:27 ` [Mac-emacs-devel] Patch for Mouse-wheel, Multi mouse-button support & more Jan Djärv
2002-08-04 11:57   ` Jan Djärv

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to='1782.80248442224$1028418875@news.gmane.org' \
    --to=akochoi@shaw.ca \
    --cc=steventamm@mac.com \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).