From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#23775: 25.0.95.2; c-mode: Incorrect indentation and function bundery detection Date: Wed, 15 Jun 2016 21:34:11 -0400 Message-ID: References: <8760tac594.fsf@linux-qg7d.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1466040924 5371 80.91.229.3 (16 Jun 2016 01:35:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 16 Jun 2016 01:35:24 +0000 (UTC) Cc: 23775@debbugs.gnu.org To: Rolf Ade Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 16 03:35:17 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bDMDE-0003Nr-3O for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 Jun 2016 03:35:16 +0200 Original-Received: from localhost ([::1]:45934 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDMDD-00082v-62 for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Jun 2016 21:35:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32819) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDMD5-00081Z-RB for bug-gnu-emacs@gnu.org; Wed, 15 Jun 2016 21:35:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bDMD0-0001Lj-KO for bug-gnu-emacs@gnu.org; Wed, 15 Jun 2016 21:35:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58621) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDMD0-0001Lb-Hj for bug-gnu-emacs@gnu.org; Wed, 15 Jun 2016 21:35:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bDMD0-00082h-7d for bug-gnu-emacs@gnu.org; Wed, 15 Jun 2016 21:35:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 16 Jun 2016 01:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23775 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23775-submit@debbugs.gnu.org id=B23775.146604086030859 (code B ref 23775); Thu, 16 Jun 2016 01:35:02 +0000 Original-Received: (at 23775) by debbugs.gnu.org; 16 Jun 2016 01:34:20 +0000 Original-Received: from localhost ([127.0.0.1]:42725 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bDMCK-00081d-Bh for submit@debbugs.gnu.org; Wed, 15 Jun 2016 21:34:20 -0400 Original-Received: from mail-oi0-f45.google.com ([209.85.218.45]:33142) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bDMCI-00081N-2S for 23775@debbugs.gnu.org; Wed, 15 Jun 2016 21:34:19 -0400 Original-Received: by mail-oi0-f45.google.com with SMTP id u201so47407574oie.0 for <23775@debbugs.gnu.org>; Wed, 15 Jun 2016 18:34:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=wfvO2V1ckGvce3us3DPJLWR7tniJn+mDyn3wNofyeyE=; b=iNsNo5o9GRu8K4WQE//snfpZydPDCHQPoAz48ExTrvNOcDWy1L+cyGIxIKR8ptVa0H 2tUoIpbTlRN11aOnyWI3ywUhhGBnQewVFdC4d9r8HyX3RNdTwObI3PLY5v1jB1ZWFSUo LO9A2INm2Y/XalvYOsyXM1GksJK/L4evK0AvHNQSqJvk/P7Lyov51zcwc+puELv2Mm+V aSAppq8k0nDSYpj4FDXyi+nFbOUMNPIjXZbnZDPXW9TTepDW7PGB9XLOsXUSvWGOQY39 X6vlOl6FZrMJ3bH3FifMUba2zI5TAvWT8Xgf05bPeESmKHzoD4bIZJMhbdZiiVco7Nh6 qi+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=wfvO2V1ckGvce3us3DPJLWR7tniJn+mDyn3wNofyeyE=; b=X42aq6ANotOg5ry/4wLjZSQrRHY0T/KG9VGhReB3jONU4YfymIB6yKZ2rLgp09wQ5u mQfXtjzRb3f+HhTMdi4nGaHPXOo0dqldhbzjPX2jVly6iHp5kwFCGEBVFsOTNINJ39sl QcQURVUV1M1RQElejF2FfeN3e5Ca98/aYjDSU21540fD1ukY1l+deCXm6CeWfXKkoKZ9 fHb6LGjG0tQUeHvfzv10oXV2/4AO1Z0Zx/IciRvNu3kqTDaGP4jzIXaiUgvvmtULKjw3 f3psZA2kR2yWWh8trmmW2J+A+dQ8gThwZzIzE9xHiL0gs9kMR58tilTkXymAASrSixHU 4QcA== X-Gm-Message-State: ALyK8tIwQ7JAeEQ496QmlsVMwJGOqYHYDb1NtiKo5GTmx1r8tPCQ8cjdZAiWS62e7sHqS5K35cDF498QuuKUww== X-Received: by 10.157.1.107 with SMTP id 98mr1069649otu.17.1466040852479; Wed, 15 Jun 2016 18:34:12 -0700 (PDT) Original-Received: by 10.157.44.103 with HTTP; Wed, 15 Jun 2016 18:34:11 -0700 (PDT) In-Reply-To: <8760tac594.fsf@linux-qg7d.fritz.box> X-Google-Sender-Auth: Zl34kihnUxXS0W3dvDA_7xgzKJk X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:119609 Archived-At: On Wed, Jun 15, 2016 at 9:05 PM, Rolf Ade wrote: > However well advised such code is, gcc foo.c just compilies. s/well/ill/? gcc compiles the below as well, but IMO you can't expect Emacs to be able to properly handle every horrible trick that's possible with the preprocessor. #define BEGIN { #define STOP ; int main() BEGIN int a, b STOP if (a == 0) BEGIN if (b==0) { return 0 STOP } } }