all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Strange indent of preprocessor lines in c-mode
@ 2008-10-08  8:19 Damien Deville
  2008-10-13 18:47 ` Alan Mackenzie
  0 siblings, 1 reply; 3+ messages in thread
From: Damien Deville @ 2008-10-08  8:19 UTC (permalink / raw)
  To: emacs-devel

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
damien.deville@netasq.com
http://www.netasq.com

NETASQ - We secure IT




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

end of thread, other threads:[~2008-10-16  8:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-08  8:19 Strange indent of preprocessor lines in c-mode Damien Deville
2008-10-13 18:47 ` Alan Mackenzie
2008-10-16  8:41   ` Damien Deville

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.