all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Thierry Legras     <legras@nmu.alcatel.fr>
Subject: c-indent confused with case keyword in string
Date: Mon, 4 Nov 2002 18:41:05 +0100 (MET)	[thread overview]
Message-ID: <200211041741.gA4Hf5m03412@carnac.ADMAX> (raw)

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:
<down> <down> <tab> <down> <tab> <down> <tab> <down> 
<tab> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <menu-bar> <help-menu> <report-emacs-b
ug>

Recent messages:
(emacs-21.2 -q foo.c)
Loading disp-table...done
Face italic, frame #<frame emacs-21.2@carnac 0x495600\ >: 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 #<frame tooltip 0x5b2a00\ >: invalid attribute :font courier-italic from X resource
Loading emacsbug...done

                 reply	other threads:[~2002-11-04 17:41 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200211041741.gA4Hf5m03412@carnac.ADMAX \
    --to=legras@nmu.alcatel.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.