From xemacs-m  Wed Jul  9 17:40:40 1997
Received: from altair.xemacs.org (root@xemacs.miranova.com [206.190.83.19])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id RAA19546
	for <xemacs-beta@xemacs.org>; Wed, 9 Jul 1997 17:40:31 -0500 (CDT)
Received: (from steve@localhost)
	by altair.xemacs.org (8.8.6/8.8.6) id OAA07531;
	Wed, 9 Jul 1997 14:39:52 -0700
Mail-Copies-To: never
To: xemacs-beta@xemacs.org
Subject: Re: cc-mode problem
References: <E0wm2Ug-0004oq-00@neal.ctd.comsat.com>
X-Url: http://www.miranova.com/%7Esteve/
X-Face: #!T9!#9s-3o8)*uHlX{Ug[xW7E7Wr!*L46-OxqMu\xz23v|R9q}lH?cRS{rCNe^'[`^sr5"
 f8*@r4ipO6Jl!:Ccq<xoV[Qz2u8<8-+Vwf2gzJ44lf_/y9OaQ`@#Q65{U4/TC)i2`~/M&QI$X>p:9I
 OSS'2{-)-4wBnVeg0S\O4Al@)uC[pD|+
X-Attribution: sb
From: Steven L Baur <steve@xemacs.org>
In-Reply-To: Neal Becker's message of "Wed, 9 Jul 1997 15:33:42 -0400"
Mime-Version: 1.0 (generated by tm-edit 7.108)
Content-Type: text/plain; charset=US-ASCII
Date: 09 Jul 1997 14:39:51 -0700
Message-ID: <m2afjvvra0.fsf@altair.xemacs.org>
Lines: 47
X-Mailer: Gnus v5.4.62/XEmacs 20.3(beta13) - "Brussels"

Neal Becker <neal@ctd.comsat.com> writes:

> In the new cc-mode (b12) it seems that when I type:
> if (xxx)|_|
>         ^space

> and then hit a {

> the space goes away, leaving:

> if (xxx){

> Is this a new feature?  (I don't like it, if it is).

No, it's an Ebola infection (did this not show up in your
.xsession-errors?):

Comparison between integer and character is constant nil (32 and ?\ )
   [c-electric-brace, call-interactively]

After applying this patch, the white space between the closing paren
and the brace is respected.

1997-07-09  Steven L Baur  <steve@altair.xemacs.org>

	* cc-mode/cc-cmds.el (c-electric-brace): Fix Ebola infection.

Index: lisp/cc-mode/cc-cmds.el
===================================================================
RCS file: /usr/local/xemacs/xemacs-20.0/lisp/cc-mode/cc-cmds.el,v
retrieving revision 1.2
diff -u -r1.2 cc-cmds.el
--- cc-cmds.el	1997/07/09 04:31:07	1.2
+++ cc-cmds.el	1997/07/09 21:34:56
@@ -193,7 +193,7 @@
 	    blink-paren-function
 	    (insertion-point (point))
 	    delete-temp-newline
-	    (preserve-p (eq 32 (char-syntax (char-before))))
+	    (preserve-p (eq ?  (char-syntax (char-before))))
 	    ;; shut this up too
 	    (c-echo-syntactic-information-p nil)
 	    (syntax (progn

-- 
steve@calag.com baur
Unsolicited commercial e-mail will be billed at $250/message.

