emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Strange indent of preprocessor lines in c-mode


From: Damien Deville
Subject: Strange indent of preprocessor lines in c-mode
Date: Wed, 08 Oct 2008 10:19:13 +0200
User-agent: Thunderbird 2.0.0.17 (X11/20080929)

Hi,

I noticed the following weirdness on a checkout from todays emacs 23 cvs.

- Consider the program given a the end of the mail
- open it with emacs -q
- activate c-mode
- Select all lines
- launch indent-region
- noticed how the #ifdef and #endif are ended by a "\" as if c-backslash-region was called.

I never noticed it before, Is it normal or is it a bug ? If it is normal how can it be disabled ?

On big program it totally screws up the indentation

#include <stdio.h>

int main(int argc, char *argv[])
{
#ifdef TOTO
  return 1;
#endif
  return 0;
}

Thanks in advance

--
Damien Deville
R&D engineer
address@hidden
http://www.netasq.com

NETASQ - We secure IT




reply via email to

[Prev in Thread] Current Thread [Next in Thread]