[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Middle mouse button not working on mac OSX in latest CVS

From: Martin Otte
Subject: Middle mouse button not working on mac OSX in latest CVS
Date: Sun, 26 Jun 2005 01:31:35 -0400

This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the address@hidden mailing list.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

In the latest CVS versions of emacs, the middle mouse button on a 3- button mouse is not functioning in the Carbon port of Emacs. The problem seems to originate from the Jun 15 patch to macterm.c.

The problem seems to be in the changes to the function mac_convert_event_ref that convert dead key down events. It looks to me like for some reason the middle mouse click is interpreted as a dead key down event, and so the new code is also used to process middle click events.

I temporarily fixed this by making sure that this new code is not used for a mouseUp or mouseDown event:

--- emacs/src/macterm.c.orig    2005-06-25 11:10:50.000000000 -0400
+++ emacs/src/macterm.c 2005-06-26 01:11:04.000000000 -0400
@@ -7642,6 +7642,8 @@

     case kEventClassKeyboard:
+      if (eventRec->what == mouseUp || eventRec->what == mouseDown)
+        break;
       switch (GetEventKind (eventRef))
        case kEventRawKeyDown:

Maybe there is a better solution to this problem though.


Martin Otte

In GNU Emacs (powerpc-apple-darwin8.1.0)
of 2005-06-23 on sleet
X server distributor `Apple Computers', version 10.4.1
configured using `configure '--host=powerpc-apple-darwin8.1.0' '-- build=powerpc-apple-darwin8.1.0' '--target=powerpc-apple-darwin8.1.0' '--prefix=/usr/local' '--without-x' '--enable-carbon-app=/ Applications/Text' 'CC=gcc' 'CFLAGS=-O3 -mcpu=G4 -pipe -no-cpp- precomp -D_APPLE_C_SOURCE' 'build_alias=powerpc-apple-darwin8.1.0' 'host_alias=powerpc-apple-darwin8.1.0' 'target_alias=powerpc-apple- darwin8.1.0''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: nil
  locale-coding-system: iso-latin-1
  default-enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
  encoded-kbd-mode: t
  delete-selection-mode: t
  display-time-mode: t
  mouse-wheel-mode: t
  tooltip-mode: t
  auto-compression-mode: t
  menu-bar-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t
  next-error-follow-minor-mode:  Fol

Recent input:
<menu-bar> <help-menu> <report-emacs-bug>

Recent messages:
Loading image...done
Loading mwheel...done
Loading regexp-opt...done
Loading server...done
Loading time...done
Loading delsel...done
Loading jit-lock...done
For information about the GNU Project and its goals, type M-h C-p.
Loading emacsbug...done
Loading encoded-kb...done

reply via email to

[Prev in Thread] Current Thread [Next in Thread]