emacs-devel
[Top][All Lists]
Advanced

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

HEAD cc-mode bug: /* */ {}


From: Karl Chen
Subject: HEAD cc-mode bug: /* */ {}
Date: Sat, 31 Jan 2004 00:00:31 -0800
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3.50 (gnu/linux)

Dear Emacs, cc-mode developers:

I believe this is a bug in cc-mode's c-electric-brace: if you type
a brace ('{' or '}') without a preceding newline, any preceding
comments are deleted.

Steps to reproduce:

C-x C-f /tmp/a.c (or .cc, .java, etc)

foo
// line comment
/* block comment */   {


Typing the '{' (or '}') deletes the comments such that the buffer
now looks like:

foo {


This occurs with cc-mode 5.30.8 from Emacs CVS HEAD but not in
Emacs 21.3.

I suppose the fix would be to change the call to
`c-backward-syntactic-ws'.

-- 
Karl 2004-01-30 23:46




reply via email to

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