emacs-devel
[Top][All Lists]
Advanced

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

Re: precedence of the keymap property


From: Andreas Schwab
Subject: Re: precedence of the keymap property
Date: Thu, 03 Jan 2002 12:20:42 +0100
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.1.30 (ia64-suse-linux)

address@hidden (Pavel Janík) writes:

|>    From: Richard Stallman <address@hidden>
|>    Date: Wed, 2 Jan 2002 17:30:59 -0700 (MST)
|> 
|> Hi,
|> 
|>    >         I would suggest to promote the keymap property to take 
precedence
|>    >         over the minor mode keymaps.
|>    > 
|>    > I wrote that change myself.  The resulting Emacs does basically work.
|>    > Do you want to see if it achieves the goal?
|> 
|> this change will cause Emacs to segfault from time to time:

Please try this patch:

2002-01-03  Andreas Schwab  <address@hidden>

        * keyboard.c (read_key_sequence): Fix missing parens in last
        change.

--- keyboard.c.~1.646.~ Thu Jan  3 10:51:14 2002
+++ keyboard.c  Thu Jan  3 12:17:12 2002
@@ -8129,7 +8129,7 @@
       if (!NILP (orig_keymap))
        submaps[nmaps++] = orig_keymap;
 
-      bcopy (maps, (void *) submaps + nmaps,
+      bcopy (maps, (void *) (submaps + nmaps),
             nminor * sizeof (submaps[0]));
 
       nmaps += nminor;

Andreas.

-- 
Andreas Schwab                                  "And now for something
address@hidden                          completely different."
SuSE Labs, SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5



reply via email to

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