]> git.pld-linux.org Git - packages/emacs.git/blame - emacs-10buttons.patch
- add url
[packages/emacs.git] / emacs-10buttons.patch
CommitLineData
d4d709b5 1X-From-Line: cookedm@physics.mcmaster.ca Sat Apr 1 07:05:16 2000
2Return-Path: <cookedm@physics.mcmaster.ca>
3Received: 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
6Received: 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)
9Received: 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
12Received: (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
15X-Authentication-Warning: arbutus.physics.mcmaster.ca: cookedm set sender to cookedm@physics.mcmaster.ca using -f
16Sender: cookedm@arbutus.physics.mcmaster.ca
17To: Frederic Lepied <flepied@mandrakesoft.com>
18Subject: Emacs doesn't like mouse buttons > 5
19From: cookedm@physics.mcmaster.ca (David M. Cooke)
20Date: 01 Apr 2000 00:04:03 -0500
21Message-ID: <qnk7leiif98.fsf@arbutus.physics.mcmaster.ca>
22User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.6
23MIME-Version: 1.0
24Content-Type: text/plain; charset=us-ascii
25Status: RO
26X-Content-Length: 1783
27Lines: 51
28Xref: skywalker.mandrakesoft.com mail.mbox.mandrake:747
29
30This is a bug that comes from the upstream Emacs source (20.6 at least). I
31recently upgraded to XFree86 4.0, which can have more than 5 mouse
32buttons (my mouse has 6). However, when the sixth button is pressed,
33Emacs crashes. In fact, it aborts deliberately: there is code in
34src/keyboard.c that does this if the button number is less than
35NUM_MOUSE_BUTTONS, which is defined in termhooks.h as 5. I *think*
36that if the NUM_MOUSE_BUTTONS was defined to be, say, 10, nothing
37would go wrong. (It works so far...)
38
39This error occurs with the 20.5-3 release in Mandrake 7.0 and the
4020.6-2 release in the Mandrake Cooker. I have sent in a bug report to
41the 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
57Note that it probably isn't enough to just change the check for
58button > NUM_MOUSE_BUTTONS to not abort in keyboard.c, as there are
59some structures which depend on button being less than
60NUM_MOUSE_BUTTONS.
61
62I hope this helps.
63
64--
65|>|\/|<
66----------------------------------------------------------------------------
67David M. Cooke
68cookedm@mcmaster.ca
69
70
This page took 0.430905 seconds and 4 git commands to generate.