Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/17/84; site godot.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!godot!massar
From: massar@godot.UUCP (J.P. Massar)
Newsgroups: net.emacs
Subject: CCA Emacs/Elisp bug fix
Message-ID: <559@godot.UUCP>
Date: Fri, 30-Nov-84 12:21:16 EST
Article-I.D.: godot.559
Posted: Fri Nov 30 12:21:16 1984
Date-Received: Sat, 1-Dec-84 19:25:11 EST
Distribution: net
Organization: Thinking Machines, Cambridge, MA
Lines: 15

The following change fixes a problem with defining new major modes.
Switching out of a buffer with a newly defined major mode and then back
into it wasn't working properly.

544c544,545
< 			if ((i = binsrch(mode, (char *)comtab, NCOMS, sizeof(struct key))) >= 0 && i < NCOMS)
---
> 			if ((i = binsrch(mode, (char *)comtab, NCOMS, sizeof(struct key))) >= 0 && i < NCOMS) {
>                                 xcnum = i;
545a547
>                         }

JP Massar
ihnp4!godot!massar
massar@cca-unix