From: Damien Deville <damien.deville@netasq.com>
To: emacs-devel@gnu.org
Subject: Strange indent of preprocessor lines in c-mode
Date: Wed, 08 Oct 2008 10:19:13 +0200 [thread overview]
Message-ID: <48EC6D01.5070600@netasq.com> (raw)
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
next reply other threads:[~2008-10-08 8:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-08 8:19 Damien Deville [this message]
2008-10-13 18:47 ` Strange indent of preprocessor lines in c-mode Alan Mackenzie
2008-10-16 8:41 ` Damien Deville
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=48EC6D01.5070600@netasq.com \
--to=damien.deville@netasq.com \
--cc=emacs-devel@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.