From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Thierry Legras Newsgroups: gmane.emacs.bugs Subject: c-indent confused with case keyword in string Date: Mon, 4 Nov 2002 18:41:05 +0100 (MET) Sender: bug-gnu-emacs-admin@gnu.org Message-ID: <200211041741.gA4Hf5m03412@carnac.ADMAX> NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1036432734 10626 80.91.224.249 (4 Nov 2002 17:58:54 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 4 Nov 2002 17:58:54 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 188lTd-0002cz-00 for ; Mon, 04 Nov 2002 18:57:29 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 188lSY-0004Ma-00; Mon, 04 Nov 2002 12:56:22 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 188lDr-0006ws-00 for bug-gnu-emacs@gnu.org; Mon, 04 Nov 2002 12:41:11 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 188lDo-0006vk-00 for bug-gnu-emacs@gnu.org; Mon, 04 Nov 2002 12:41:10 -0500 Original-Received: from gc-na5.alcatel.fr ([64.208.49.5] helo=smail2.alcatel.fr) by monty-python.gnu.org with esmtp (Exim 4.10) id 188lDo-0006v7-00 for bug-gnu-emacs@gnu.org; Mon, 04 Nov 2002 12:41:08 -0500 Original-Received: from nmu.alcatel.fr (tcmh80.nmu.alcatel.fr [139.54.143.3]) by smail2.alcatel.fr (ALCANET/NETFR) with ESMTP id gA4Hf5nC026470 for ; Mon, 4 Nov 2002 18:41:05 +0100 Original-Received: from carnac.ADMAX (carnac [192.200.245.107]) by nmu.alcatel.fr (8.8.6 (PHNE_17135)/8.8.6) with ESMTP id SAA06897 for ; Mon, 4 Nov 2002 18:41:06 +0100 (MET) Original-Received: (from legras@localhost) by carnac.ADMAX (8.10.2+Sun/8.10.2) id gA4Hf5m03412; Mon, 4 Nov 2002 18:41:05 +0100 (MET) Original-To: bug-gnu-emacs@gnu.org X-Virus-Scanned: by amavisd-milter (http://amavis.org/) Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:3815 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:3815 This bug report will be sent to the Free Software Foundation, not to your local site managers! Please write in English, because the Emacs maintainers do not have translators to read other languages for them. Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list, and to the gnu.emacs.bug news group. In GNU Emacs 21.2.2 (sparc-sun-solaris2.8, X toolkit) of 2002-10-23 on carnac configured using `configure --prefix=/user/caipv6/legras' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: C locale-coding-system: nil default-enable-multibyte-characters: t Please describe exactly what actions triggered the bug and the precise symptoms of the bug: It seems that emacs 21.2.2 is confused when "case" and ":" are both used inside a string; see my example in a c-mode buffer: int main() { int res; printf("case A :\n"); printf("case B :\n"); res = 0; /* indentation broken! */ } I didn't have this problem this 21.7.1. Any idea? Cheers TL Recent input: Recent messages: (emacs-21.2 -q foo.c) Loading disp-table...done Face italic, frame #: invalid attribute :font courier-italic from X resource [2 times] Loading tool-bar...done Loading image...done Loading tooltip...done For information about the GNU Project and its goals, type C-h C-p. Loading cc-mode...done Face italic, frame #: invalid attribute :font courier-italic from X resource Loading emacsbug...done