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 18:40 emacs 21 c-indent broken tl
@ 2002-10-28 19:14 ` Henrik Enberg
  2002-10-28 19:42   ` Michael Slass
                     ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Henrik Enberg @ 2002-10-28 19:14 UTC (permalink / raw)


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

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

* Re: emacs 21 c-indent broken
  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>
  2 siblings, 2 replies; 8+ messages in thread
From: Michael Slass @ 2002-10-28 19:42 UTC (permalink / raw)


Henrik Enberg <henrik+news@enberg.org> writes:

>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

I'm seeing the bug exactly as you describe, using GNU Emacs 21.2.1.
Try M-x report-emacs-bug

-- 
Mike Slass

^ 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

* Re: emacs 21 c-indent broken
  2002-10-28 19:14 ` Henrik Enberg
  2002-10-28 19:42   ` Michael Slass
@ 2002-10-29  1:23   ` Miles Bader
       [not found]   ` <mailman.1035854661.28658.help-gnu-emacs@gnu.org>
  2 siblings, 0 replies; 8+ messages in thread
From: Miles Bader @ 2002-10-29  1:23 UTC (permalink / raw)


Henrik Enberg <henrik+news@enberg.org> 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:
> 
> It works for me [tm].

Works for me too, using emacs CVS, so perhaps it's something that's been
fixed.  Could someone that has an emacs compiled from the RC branch (21.3)
test it?

-Miles
-- 
自らを空にして、心を開く時、道は開かれる

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

* Re: emacs 21 c-indent broken
  2002-10-28 19:42   ` Michael Slass
@ 2002-10-29  8:29     ` Klaus Berndl
  2002-11-04 17:49     ` tl
  1 sibling, 0 replies; 8+ messages in thread
From: Klaus Berndl @ 2002-10-29  8:29 UTC (permalink / raw)


On Mon, 28 Oct 2002, Michael Slass wrote:



>  Henrik Enberg <henrik+news@enberg.org> writes:
>  
> >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
>  
>  I'm seeing the bug exactly as you describe, using GNU Emacs 21.2.1.
>  Try M-x report-emacs-bug

Me too. I'm using 21.2.1 too. Seems to be a bug...

-- 
Klaus Berndl			mailto: klaus.berndl@sdm.de
sd&m AG				http://www.sdm.de
software design & management	
Thomas-Dehler-Str. 27, 81737 München, Germany
Tel +49 89 63812-392, Fax -220

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

* Re: emacs 21 c-indent broken
       [not found]   ` <mailman.1035854661.28658.help-gnu-emacs@gnu.org>
@ 2002-10-31  5:53     ` maierh
  0 siblings, 0 replies; 8+ messages in thread
From: maierh @ 2002-10-31  5:53 UTC (permalink / raw)
  Cc: Miles Bader

Miles Bader <miles@lsi.nec.co.jp> writes:

> Henrik Enberg <henrik+news@enberg.org> 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:
>> 
>> It works for me [tm].
>
> Works for me too, using emacs CVS, so perhaps it's something that's been
> fixed.  Could someone that has an emacs compiled from the RC branch (21.3)
> test it?

With c-mode 5.28 it fails with

  GNU Emacs 21.2.92.1 (i686-pc-linux-gnu, Motif Version 2.1.10) of
  2002-10-30 on eos

As far as I know RC uses too c-mode 5.28. With c-mode 5.29 it works
fine.

Harald

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

* Re: emacs 21 c-indent broken
  2002-10-28 19:42   ` Michael Slass
  2002-10-29  8:29     ` Klaus Berndl
@ 2002-11-04 17:49     ` tl
  1 sibling, 0 replies; 8+ messages in thread
From: tl @ 2002-11-04 17:49 UTC (permalink / raw)


Michael Slass <miknrene@drizzle.com> wrote in message news:<m365vmgxii.fsf@localhost.localdomain>...
> Henrik Enberg <henrik+news@enberg.org> writes:
> 
> >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
> 
> I'm seeing the bug exactly as you describe, using GNU Emacs 21.2.1.
> Try M-x report-emacs-bug

Sorry, fortunately I don't see bug in emacs every day! :) This is
reported now.

Note I compiled my version from an official ftp server, not from CVS.
cc-mode version is 5.28.

^ 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.