[gnu.emacs.bug] c-mode can't handle { at beg. of line inside string

mcgrath%paris.Berkeley.EDU@GINGER.BERKELEY.EDU (Roland McGrath) (12/16/89)

Put this:

foo()
{
  bar("hi\
{...}",

in a buffer in c-mode, put point at the end of the buffer, and hit LFD.

jbw@bucsf.bu.edu (Joe Wells) (12/18/89)

In article <8912160114.AA00605@paris.Berkeley.EDU> mcgrath%paris.Berkeley.EDU@GINGER.BERKELEY.EDU (Roland McGrath) writes:

   Put this:

   foo()
   {
     bar("hi\
   {...}",

   in a buffer in c-mode, put point at the end of the buffer, and hit LFD.

Well, I sympathize with you, but this is a documented weakness.
Fortunately in the C language, "{" is equivalent to "\{", so you can get
around this:

foo()
{
  bar("hi\
\{...}",

Enjoy,

-- 
Joe Wells <jbw@bucsf.bu.edu>
jbw%bucsf.bu.edu@bu-it.bu.edu
...!harvard!bu-cs!bucsf!jbw
(617) 375-6893
200-202 Bay State Rd., Box 1486, Boston, MA 02215, USA