all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* emacs 21 c-indent broken
@ 2002-10-28 18:40 tl
  2002-10-28 19:14 ` Henrik Enberg
  0 siblings, 1 reply; 8+ messages in thread
From: tl @ 2002-10-28 18:40 UTC (permalink / raw)


Hi, 

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.

^ permalink raw reply	[flat|nested] 8+ messages in thread
* RE: emacs 21 c-indent broken
@ 2002-10-28 19:44 Moore, Mathew L
  0 siblings, 0 replies; 8+ messages in thread
From: Moore, Mathew L @ 2002-10-28 19:44 UTC (permalink / raw)


Doesn't work for me, unfortunately, even with the -q startup option.

Funny thing, you have to have more than one "case :" string in a row, for
the second printf() line indents just fine...only the third one screws up.

--Matt

> -----Original Message-----
> From: Henrik Enberg [mailto:henrik+news@enberg.org]
> Sent: Monday, October 28, 2002 14:15
> To: help-gnu-emacs@gnu.org
> Subject: Re: emacs 21 c-indent broken
> 
> 
> tlegras@yahoo.fr (tl) writes:
> 
> > 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:
> >
> >     printf("case A :\n");					
> >     printf("case B :\n");
> > 		res = 0; /* indentation broken! */
> 
> It works for me [tm].  Do you have any personal c-mode customizations?
> 
> -- 
> Booting... /vmemacs.el
> _______________________________________________
> Help-gnu-emacs mailing list
> Help-gnu-emacs@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-gnu-emacs
> 

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2002-11-04 17:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-28 18:40 emacs 21 c-indent broken tl
2002-10-28 19:14 ` Henrik Enberg
2002-10-28 19:42   ` Michael Slass
2002-10-29  8:29     ` Klaus Berndl
2002-11-04 17:49     ` tl
2002-10-29  1:23   ` Miles Bader
     [not found]   ` <mailman.1035854661.28658.help-gnu-emacs@gnu.org>
2002-10-31  5:53     ` maierh
  -- strict thread matches above, loose matches on Subject: below --
2002-10-28 19:44 Moore, Mathew L

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.