all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Odekirk, Shawn" <Shawn.Odekirk@intelligrated.com>
To: <bug-gnu-emacs@gnu.org>
Subject: bug#5388: 23.1; syntactic analysis incorrect
Date: Fri, 15 Jan 2010 09:23:20 -0500	[thread overview]
Message-ID: <FC2C3FA683E4BB4AA19A2C8F01153DD20252AD29@cinemail2.na.FKILogistex.Local> (raw)

[-- Attachment #1: Type: text/plain, Size: 4115 bytes --]

From:  <shawn.odekirk@fkilogistex.com>
To: bug-gnu-emacs@gnu.org
Subject: 23.1; syntactic analysis incorrect
--text follows this line--
A switch statement with two case labels, at least one of which is a
character constant, causes the syntactic analysis of the first statement
in the case block to be evaluated as statement-cont instead of
statement-case-intro.
I believe the line 'x = 1;' should be evaluated as statement-case-into,
but it is being evaluated as statement-cont.
 
switch (x)
  {
  case 'a':
  case 'b':
    x = 1;
  y = 2;
  break;
  }
 
 
 
In GNU Emacs 23.1.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.16.5)
 of 2009-07-31 on bitzer.hoetzel.info
Windowing system distributor `The X.Org Foundation', version
11.0.10703901
configured using `configure  '--prefix=/usr' '--sysconfdir=/etc'
'--libexecdir=/usr/lib' '--localstatedir=/var' '--mandir=/usr/share/man'
'--without-sound' '-with-x-toolkit=gtk' 'CFLAGS=-march=x86-64
-mtune=generic -O2 -pipe''
 
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: C
  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: en_US.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t
 
Major mode: C/l
 
Minor modes in effect:
  tooltip-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t
  abbrev-mode: t
 
Recent input:
C-x k <return> <up> <up> <up> <up> <down> <down> <down> 
<down> <down> <down> <down> s w i t c h SPC ( x ) <escape> 
x c - m o d e <return> <down> <down> <down> <return> 
{ <return> } <end> <up> <return> c a s e SPC ' a ' 
: <return> c a s e SPC ' b ' : <return> x SPC = SPC 
1 ; <return> y SPC = SPC 3 <backspace> 2 ; <return> 
b r e a k ; <down> <tab> <up> <tab> <escape> x s e 
t - v a r <tab> <return> c - e <tab> c <tab> <return> 
y <backspace> t <return> <tab> <up> <tab> <up> <tab> 
<up> <tab> <down> <tab> <down> <tab> <up> <tab> <up> 
<tab> <up> <up> <up> <up> <C-home> C-k C-k C-k C-k 
C-k C-k C-k <tab> <down> <tab> <down> <tab> <down> 
<tab> <down> <tab> <down> <tab> <down> <tab> <down> 
<tab> <down> <down> <down> <return> <escape> x r e 
p o r <tab> <return>
 
Recent messages:
syntax: ((statement-cont 221)), indent: 4
syntax: ((case-label 205)), indent: 2
Mark set
syntax: ((topmost-intro 1)), indent: 0
syntax: ((substatement-open 1)), indent: 2
syntax: ((case-label 14)), indent: 2 [2 times]
syntax: ((statement-cont 30)), indent: 4
syntax: ((statement 30)), indent: 2
syntax: ((statement 53)), indent: 2
syntax: ((block-close 14)), indent: 2

 

 

 

________________________________

Shawn Odekirk
Senior Software Engineer

Intelligrated
4612 Navistar Drive
Frederick, MD 21703

Email: shawn.odekirk <mailto:shawn.odekirk@intelligrated.com>
@intelligrated.com
Web: www.intelligrated.com <http://www.intelligrated.com/>  

Phone: 240.629.1540
Cell: 240.647.8457
Fax: 240.629.1460

________________________________

 

CONFIDENTIALITY NOTICE

This e-mail transmission, and any documents, files, or previous e-mail
messages attached to it, may contain confidential information, trade
secret information, or information that is legally privileged. If you
are not the intended recipient, or a person responsible for delivering
it to the intended recipient, you are hereby notified that any
disclosure, copying, distribution, or use of any of the information
contained in or attached to this message is strictly prohibited. If you
have received this transmission in error, please immediately notify the
sender by reply e-mail, and destroy the original transmission and its'
attachments.

This E-mail is the property of Intelligrated.

 

 

[-- Attachment #2: Type: text/html, Size: 18731 bytes --]

             reply	other threads:[~2010-01-15 14:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-15 14:23 Odekirk, Shawn [this message]
2010-01-16 21:00 ` bug#5388: 23.1; syntactic analysis incorrect Chong Yidong
2011-07-11 21:26   ` Glenn Morris

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=FC2C3FA683E4BB4AA19A2C8F01153DD20252AD29@cinemail2.na.FKILogistex.Local \
    --to=shawn.odekirk@intelligrated.com \
    --cc=bug-gnu-emacs@gnu.org \
    /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.