From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Damien Deville Newsgroups: gmane.emacs.devel Subject: Strange indent of preprocessor lines in c-mode Date: Wed, 08 Oct 2008 10:19:13 +0200 Message-ID: <48EC6D01.5070600@netasq.com> Reply-To: damien.deville@netasq.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1223453989 23569 80.91.229.12 (8 Oct 2008 08:19:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 8 Oct 2008 08:19:49 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 08 10:20:45 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KnUHh-0004Rc-Tp for ged-emacs-devel@m.gmane.org; Wed, 08 Oct 2008 10:20:42 +0200 Original-Received: from localhost ([127.0.0.1]:58483 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KnUGd-0006L6-FV for ged-emacs-devel@m.gmane.org; Wed, 08 Oct 2008 04:19:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KnUGX-0006L1-T1 for emacs-devel@gnu.org; Wed, 08 Oct 2008 04:19:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KnUGX-0006Kn-1d for emacs-devel@gnu.org; Wed, 08 Oct 2008 04:19:29 -0400 Original-Received: from [199.232.76.173] (port=53353 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KnUGW-0006Kj-Q3 for emacs-devel@gnu.org; Wed, 08 Oct 2008 04:19:28 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:27637) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KnUGW-0007YC-No for emacs-devel@gnu.org; Wed, 08 Oct 2008 04:19:28 -0400 Original-Received: from netasq.netasq.com ([213.30.137.178]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KnUGT-0008Fo-OX for emacs-devel@gnu.org; Wed, 08 Oct 2008 04:19:25 -0400 Original-Received: from barbar.netasq.com (unknown [10.0.0.126]) by netasq.netasq.com (Postfix) with ESMTP id E3A334532A for ; Wed, 8 Oct 2008 10:19:22 +0200 (CEST) User-Agent: Thunderbird 2.0.0.17 (X11/20080929) X-detected-kernel: by mx20.gnu.org: FreeBSD 4.6-4.9 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:104413 Archived-At: 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 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