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

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

C++ mode scan bug


From: Marko Rauhamaa
Subject: C++ mode scan bug
Date: 13 Dec 2001 16:28:01 -0800

In GNU Emacs 21.1.1 (i686-pc-linux-gnu, X toolkit)
 of 2001-10-22 on linux1.ca.tekelec.com
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: en_US
  value of $LC_CTYPE: en_US
  value of $LC_MESSAGES: en_US
  value of $LC_MONETARY: en_US
  value of $LC_NUMERIC: en_US
  value of $LC_TIME: en_US
  value of $LANG: en
  locale-coding-system: iso-latin-1
  default-enable-multibyte-characters: t


DESCRIPTION
===========

Type this into a C++ buffer:

A::A(B *s)
  : _x(f(s->x)),
    

then press TAB on the last line. Emacs complains:

   Scan error: "Unbalanced parentheses", 26, 1

Here's the elisp trace:

Debugger entered--Lisp error: (scan-error "Unbalanced parentheses" 26 1)
  scan-sexps(27 -2)
  c-beginning-of-member-init-list(1)
  c-guess-basic-syntax()
  c-indent-line()
  #[nil " \207" [indent-line-function] 1 606638 nil]()
  c-indent-command(1)
  call-interactively(c-indent-command)



Marko

-- 
Marko Rauhamaa      address@hidden     (818) 878-6314
Software Engineer   http://www.tekelec.com/        Tekelec Inc



reply via email to

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