unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* HEAD cc-mode bug: /* */ {}
@ 2004-01-31  8:00 Karl Chen
  2004-02-06  9:55 ` Alan Mackenzie
  0 siblings, 1 reply; 2+ messages in thread
From: Karl Chen @ 2004-01-31  8:00 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-02-06  9:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-31  8:00 HEAD cc-mode bug: /* */ {} Karl Chen
2004-02-06  9:55 ` Alan Mackenzie

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).