Re: emacs crashes while scrolling?
Re: emacs crashes while scrolling?
- Subject: Re: emacs crashes while scrolling?
- From: Tom Lane <email@hidden>
- Date: Thu, 29 Jan 2009 21:05:50 -0500
- Comments: In-reply-to William McKinney <email@hidden> message dated "Thu, 29 Jan 2009 13:34:15 -0500"
William McKinney <email@hidden> writes:
> I have a user who is running emacs on an SGI from a macintosh client 10.5.6.
> emacs launches but when she scrolls the page emacs core dumps.
Is she trying to use the two-finger-drag gesture? The rather ancient
version of emacs that I use dumped core on that event, until I patched
it...
regards, tom lane
Support up to 8 mouse buttons (to handle Apple's representation of two-finger
drag events), and don't dump core if larger button numbers are seen.
*** src/termhooks.h~ Tue May 7 20:03:29 1996
--- src/termhooks.h Sat Apr 26 14:46:46 2008
***************
*** 307,313 ****
/* This is used in keyboard.c, to tell how many buttons we will need
to track the positions of. */
! #define NUM_MOUSE_BUTTONS (5)
/* Bits in the modifiers member of the input_event structure.
Note that reorder_modifiers assumes that the bits are in canonical
--- 307,313 ----
/* This is used in keyboard.c, to tell how many buttons we will need
to track the positions of. */
! #define NUM_MOUSE_BUTTONS (8)
/* Bits in the modifiers member of the input_event structure.
Note that reorder_modifiers assumes that the bits are in canonical
*** src/keyboard.c~ Tue Jul 16 18:22:12 1996
--- src/keyboard.c Sat Apr 26 15:01:06 2008
***************
*** 3547,3553 ****
static char *lispy_mouse_names[] =
{
! "mouse-1", "mouse-2", "mouse-3", "mouse-4", "mouse-5"
};
/* Scroll bar parts. */
--- 3547,3554 ----
static char *lispy_mouse_names[] =
{
! "mouse-1", "mouse-2", "mouse-3", "mouse-4",
! "mouse-5", "mouse-6", "mouse-7", "mouse-8"
};
/* Scroll bar parts. */
***************
*** 3682,3688 ****
Lisp_Object start_pos;
if (button < 0 || button >= NUM_MOUSE_BUTTONS)
! abort ();
/* Build the position as appropriate for this mouse click. */
if (event->kind == mouse_click)
--- 3683,3689 ----
Lisp_Object start_pos;
if (button < 0 || button >= NUM_MOUSE_BUTTONS)
! return Qnil;
/* Build the position as appropriate for this mouse click. */
if (event->kind == mouse_click)
*** lisp/levents.el~ Tue Feb 27 20:22:07 1996
--- lisp/levents.el Sat Apr 26 15:02:42 2008
***************
*** 117,123 ****
"Return the button-number of the given mouse-button-press event."
(let ((sym (car (get (car event) 'event-symbol-elements))))
(cdr (assq sym '((mouse-1 . 1) (mouse-2 . 2) (mouse-3 . 3)
! (mouse-4 . 4) (mouse-5 . 5))))))
(defun event-function (event)
"Return the callback function of the given timeout, menu, or eval event."
--- 117,124 ----
"Return the button-number of the given mouse-button-press event."
(let ((sym (car (get (car event) 'event-symbol-elements))))
(cdr (assq sym '((mouse-1 . 1) (mouse-2 . 2) (mouse-3 . 3)
! (mouse-4 . 4) (mouse-5 . 5) (mouse-6 . 6)
! (mouse-7 . 7) (mouse-8 . 8))))))
(defun event-function (event)
"Return the callback function of the given timeout, menu, or eval event."
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden