From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: robgssp@gmail.com Newsgroups: gmane.emacs.bugs Subject: bug#24022: 24.5; C indentation failure Date: Sun, 17 Jul 2016 12:19:34 -0700 Message-ID: <8737n8rs1l.fsf@saturn.csh.rit.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1468874072 18783 80.91.229.3 (18 Jul 2016 20:34:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Jul 2016 20:34:32 +0000 (UTC) To: 24022@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 18 22:34: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 1bPFF1-0005xi-FE for geb-bug-gnu-emacs@m.gmane.org; Mon, 18 Jul 2016 22:34:15 +0200 Original-Received: from localhost ([::1]:50176 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPFF0-0008O9-My for geb-bug-gnu-emacs@m.gmane.org; Mon, 18 Jul 2016 16:34:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41002) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPFEt-0008FJ-Tl for bug-gnu-emacs@gnu.org; Mon, 18 Jul 2016 16:34:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bPFEo-0004xm-QF for bug-gnu-emacs@gnu.org; Mon, 18 Jul 2016 16:34:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43704) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPFEo-0004xi-Go for bug-gnu-emacs@gnu.org; Mon, 18 Jul 2016 16:34:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bPFEo-0008Kj-8y for bug-gnu-emacs@gnu.org; Mon, 18 Jul 2016 16:34:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: robgssp@gmail.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 18 Jul 2016 20:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 24022 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.146887403832022 (code B ref -1); Mon, 18 Jul 2016 20:34:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 18 Jul 2016 20:33:58 +0000 Original-Received: from localhost ([127.0.0.1]:56041 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bPFEk-0008KQ-AI for submit@debbugs.gnu.org; Mon, 18 Jul 2016 16:33:58 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39840) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bOrbw-0004WX-GS for submit@debbugs.gnu.org; Sun, 17 Jul 2016 15:20:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bOrbq-00062G-01 for submit@debbugs.gnu.org; Sun, 17 Jul 2016 15:20:15 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:42776) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bOrbp-00062C-TF for submit@debbugs.gnu.org; Sun, 17 Jul 2016 15:20:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59025) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bOrbn-0001od-Fc for bug-gnu-emacs@gnu.org; Sun, 17 Jul 2016 15:20:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bOrbi-0005xI-Gk for bug-gnu-emacs@gnu.org; Sun, 17 Jul 2016 15:20:10 -0400 Original-Received: from mail-pf0-x22a.google.com ([2607:f8b0:400e:c00::22a]:34777) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bOrbi-0005wX-8P for bug-gnu-emacs@gnu.org; Sun, 17 Jul 2016 15:20:06 -0400 Original-Received: by mail-pf0-x22a.google.com with SMTP id p64so22797446pfb.1 for ; Sun, 17 Jul 2016 12:20:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version; bh=Jme8xGwQO5AOd/uq3PkhXPasiWhZurVfbsbdTvdRiL0=; b=CG4HZ+ZdC9G5P+3aF9Awym2WGFWm7M91xf9r1wj8pE3ZFJRwZQ4gXW/MyqdAp9UmH4 F5CdhPAVbxChqqPXyHEDGLXZ2bUHArnN+qNPtaWb1JbvhshSIz0ymc4COPncmEuSmOFR AuSmPmHfKMzIViDHoYZz4Kru86cB0WTfH5P5+3pON+d1EZNEysWo7r1jXzCJGg+z6LHX ypGoEHy6BIeTd7wCVQso/bc5wy/2L1otOVcvUaQKNQsfPFzxp+rmo9NDgHPabnW9VCn+ atLvaKcxiKkZs72wXn/xtbk8UUQ61vR96PALK8bNI3rFxqVeBGytzvdbTHp4afIdxwG0 YsRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=Jme8xGwQO5AOd/uq3PkhXPasiWhZurVfbsbdTvdRiL0=; b=IBS3SbmiNvHJQcJUa4ah57hBbZgG1VxIZFlLHaaeI8wfKGQNfcJdglUojABLa905UT +KT+O/cRQ0nLAPlyo5cdfKC3vARebryfYV7Umk6DRKgSrA62RlohiwFZPcVhwP5khEb2 AcZCRhmIBQSkPRQfQMZ44p7wE/TUmZm1iUwNmGmSGvz51camawZu75mKiZuMEY/ZuaPC XdQFhlU1skdPoVSe1TF7mLrAKT8ZKYC1Lp2k8SXgM3f7ZqzQ1UA6lnvDn6wqeZuPnOyW eD+KWPsGn1B6o99yJwLegtTzVmSahncXmBH1XniIy1bCAFAOggLv2azy/diQSx3uu5q/ M9UA== X-Gm-Message-State: ALyK8tL4qIgMV5fS4kk+MI8nIVBmnkfIBVT3tvASb1lyb32jj6TbtFWTuJ2cSzbaZdNaSw== X-Received: by 10.98.70.199 with SMTP id o68mr40156229pfi.17.1468783204830; Sun, 17 Jul 2016 12:20:04 -0700 (PDT) Original-Received: from saturn.csh.rit.edu ([174.127.240.76]) by smtp.gmail.com with ESMTPSA id cl15sm4058639pac.15.2016.07.17.12.20.04 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 17 Jul 2016 12:20:04 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Mon, 18 Jul 2016 16:33:56 -0400 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:121239 Archived-At: c-mode fails to indent correctly when a #if is followed by a comment. Example: int main() { #if defined(a) // comment if (b) { body(); } #endif } Clearly this isn't the correct indentation. A clean run under -Q behaves the same way. In GNU Emacs 24.5.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.20.6) of 2016-06-04 on juergen Windowing system distributor `The X.Org Foundation', version 11.0.11803000 System Description: Arch Linux Configured using: `configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --with-x-toolkit=gtk3 --with-xft 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong' CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro' Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: C/l Minor modes in effect: tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. (New file) Quit Auto-saving... Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils cc-langs cl-loaddefs cl-lib cc-mode cc-fonts easymenu cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 103095 4287) (symbols 48 20066 0) (miscs 40 40 160) (strings 32 16635 4321) (string-bytes 1 568293) (vectors 16 11333) (vector-slots 8 412487 3082) (floats 8 63 155) (intervals 56 216 16) (buffers 960 12) (heap 1024 42192 1129))