bug-gnu-emacs
[Top][All Lists]
Advanced

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

Re: CC Mode 5.25 (C++); incorrectly inserts '//'


From: Martin Stjernholm
Subject: Re: CC Mode 5.25 (C++); incorrectly inserts '//'
Date: 22 Jan 2001 01:22:39 +0100

Eric Hanchrow <offby1@blarg.net> wrote:

> Start "emacs -q"
> 
> Type the following:
> 
>     C-x b ha RET
>     M-x c++-mode RET
>     M-x auto-fill RET
>     ya M-( M-) { RET
>     TAB goofy SPC << SPC "http://"; SPC << SPC hee SPC << SPC haw SPC << SPC 
> margery SPC << SPC daw
>     SPC << SPC yo SPC << SPC momma SPC << SPC wears SPC << SPC armyboots; RET
>     }
> 
> You will see
> 
>     ya ()
>     {
>       goofy << "http://"; << hee << haw << margery << daw << yo << momma <<
>                    //wears << armyboots;
>       }
> 
> Note that the fourth line begins with the comment characters, "//",
> which you didn't type, and which ought not be there.

I've verified this problem with 5.25, and also that it's gone in 5.27
(the latest release). So I suggest you upgrade; it's available for
download from http://cc-mode.sourceforge.net/. This particular bug
aside, I can say that the line break and text filling routines
underwent a major rewrite in 5.26; they're quite a lot better now.




reply via email to

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