]>
Commit | Line | Data |
---|---|---|
d4d709b5 | 1 | X-From-Line: cookedm@physics.mcmaster.ca Sat Apr 1 07:05:16 2000 |
2 | Return-Path: <cookedm@physics.mcmaster.ca> | |
3 | Received: from localhost (IDENT:flepied@localhost [127.0.0.1]) | |
4 | by skywalker.mandrakesoft.com (8.9.3/8.9.3) with ESMTP id HAA15589 | |
5 | for <flepied@localhost>; Sat, 1 Apr 2000 07:05:15 +0200 | |
6 | Received: from mandrakesoft.com | |
7 | by localhost with POP3 (fetchmail-5.1.0) | |
8 | for flepied@localhost (single-drop); Sat, 01 Apr 2000 07:05:16 +0200 (CEST) | |
9 | Received: from arbutus.physics.mcmaster.ca (arbutus.Physics.McMaster.CA [130.113.172.142]) | |
10 | by mandrakesoft.mandrakesoft.com (8.8.5/8.8.5) with ESMTP id WAA26223 | |
11 | for <flepied@mandrakesoft.com>; Fri, 31 Mar 2000 22:33:59 -0600 | |
12 | Received: (from cookedm@localhost) | |
13 | by arbutus.physics.mcmaster.ca (8.9.3/8.9.3) id AAA01490; | |
14 | Sat, 1 Apr 2000 00:04:03 -0500 | |
15 | X-Authentication-Warning: arbutus.physics.mcmaster.ca: cookedm set sender to cookedm@physics.mcmaster.ca using -f | |
16 | Sender: cookedm@arbutus.physics.mcmaster.ca | |
17 | To: Frederic Lepied <flepied@mandrakesoft.com> | |
18 | Subject: Emacs doesn't like mouse buttons > 5 | |
19 | From: cookedm@physics.mcmaster.ca (David M. Cooke) | |
20 | Date: 01 Apr 2000 00:04:03 -0500 | |
21 | Message-ID: <qnk7leiif98.fsf@arbutus.physics.mcmaster.ca> | |
22 | User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.6 | |
23 | MIME-Version: 1.0 | |
24 | Content-Type: text/plain; charset=us-ascii | |
25 | Status: RO | |
26 | X-Content-Length: 1783 | |
27 | Lines: 51 | |
28 | Xref: skywalker.mandrakesoft.com mail.mbox.mandrake:747 | |
29 | ||
30 | This is a bug that comes from the upstream Emacs source (20.6 at least). I | |
31 | recently upgraded to XFree86 4.0, which can have more than 5 mouse | |
32 | buttons (my mouse has 6). However, when the sixth button is pressed, | |
33 | Emacs crashes. In fact, it aborts deliberately: there is code in | |
34 | src/keyboard.c that does this if the button number is less than | |
35 | NUM_MOUSE_BUTTONS, which is defined in termhooks.h as 5. I *think* | |
36 | that if the NUM_MOUSE_BUTTONS was defined to be, say, 10, nothing | |
37 | would go wrong. (It works so far...) | |
38 | ||
39 | This error occurs with the 20.5-3 release in Mandrake 7.0 and the | |
40 | 20.6-2 release in the Mandrake Cooker. I have sent in a bug report to | |
41 | the upstream emacs maintainers, but here is a suggested patch: | |
42 | ||
43 | ||
44 | --- src/termhooks.h.fred Mon Feb 22 11:11:25 1999 | |
45 | +++ src/termhooks.h Wed Apr 19 12:12:10 2000 | |
46 | @@ -350,7 +350,7 @@ | |
47 | \f | |
48 | /* This is used in keyboard.c, to tell how many buttons we will need | |
49 | to track the positions of. */ | |
50 | -#define NUM_MOUSE_BUTTONS (5) | |
51 | +#define NUM_MOUSE_BUTTONS (10) | |
52 | ||
53 | /* Bits in the modifiers member of the input_event structure. | |
54 | Note that reorder_modifiers assumes that the bits are in canonical | |
55 | ||
56 | ||
57 | Note that it probably isn't enough to just change the check for | |
58 | button > NUM_MOUSE_BUTTONS to not abort in keyboard.c, as there are | |
59 | some structures which depend on button being less than | |
60 | NUM_MOUSE_BUTTONS. | |
61 | ||
62 | I hope this helps. | |
63 | ||
64 | -- | |
65 | |>|\/|< | |
66 | ---------------------------------------------------------------------------- | |
67 | David M. Cooke | |
68 | cookedm@mcmaster.ca | |
69 | ||
70 |