GNU bug report logs - #18072
24.3; cc-mode indentation is broken

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs,cc-mode; Reported by: Juhani Åhman <juhanipm@HIDDEN>; dated Mon, 21 Jul 2014 20:52:03 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 21 Jul 2014 20:51:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 21 16:51:32 2014
Received: from localhost ([127.0.0.1]:33723 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1X9KYV-0006ZL-L8
	for submit <at> debbugs.gnu.org; Mon, 21 Jul 2014 16:51:32 -0400
Received: from eggs.gnu.org ([208.118.235.92]:32913)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <juhanipm@HIDDEN>) id 1X9JC7-0003rV-Aa
 for submit <at> debbugs.gnu.org; Mon, 21 Jul 2014 15:24:20 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <juhanipm@HIDDEN>) id 1X9JBx-0004HV-8s
 for submit <at> debbugs.gnu.org; Mon, 21 Jul 2014 15:24:14 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
 HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:54273)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <juhanipm@HIDDEN>) id 1X9JBx-0004HP-6B
 for submit <at> debbugs.gnu.org; Mon, 21 Jul 2014 15:24:09 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:34600)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <juhanipm@HIDDEN>) id 1X9JBs-0003XG-AP
 for bug-gnu-emacs@HIDDEN; Mon, 21 Jul 2014 15:24:09 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <juhanipm@HIDDEN>) id 1X9JBn-0004G9-DG
 for bug-gnu-emacs@HIDDEN; Mon, 21 Jul 2014 15:24:04 -0400
Received: from mail-la0-x235.google.com ([2a00:1450:4010:c03::235]:59765)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <juhanipm@HIDDEN>) id 1X9JBm-0004Fx-Vg
 for bug-gnu-emacs@HIDDEN; Mon, 21 Jul 2014 15:23:59 -0400
Received: by mail-la0-f53.google.com with SMTP id gl10so5001676lab.26
 for <bug-gnu-emacs@HIDDEN>; Mon, 21 Jul 2014 12:23:56 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=message-id:date:from:user-agent:mime-version:to:subject
 :content-type; bh=HcdOaqeI53yrs26+9ispqCRp1Q8TmIa+CrwQPFQqnE4=;
 b=BhyTqKB1zBQ7CEECznmsiaI3knpZZDSbXlFBF8cRdixTBomVyV7VK1TJz1ELxqYRkt
 heJfAo5bU9mEh2mIKzeBhn8G+T8oUpsZqurvo6Ngr6OH2YXjEz4A58AOOImY9C3RUv38
 VyOITm9LGproTDJsf6NTePk6DfQDW5OKEz1FKyhGvP5z0gGJyEJo1IIPnZcCSTaSkLMT
 LxPv17MuqfRwkWV3O5HdkowGKZUdEiuQ8MbR35Y1Lrl7a7BoNmzStLKxUZSvx67KXtjT
 jhrXX+bOnIIWPk9NhVcnND3OS5/xkLmYkOF66lJdxwmcieTLHGpsnfNroxPC0fQvBDct
 ZTbg==
X-Received: by 10.112.235.42 with SMTP id uj10mr12555134lbc.80.1405970636527; 
 Mon, 21 Jul 2014 12:23:56 -0700 (PDT)
Received: from [88.112.0.20] (a88-112-0-20.elisa-laajakaista.fi. [88.112.0.20])
 by mx.google.com with ESMTPSA id xl2sm26590273lbb.47.2014.07.21.12.23.54
 for <bug-gnu-emacs@HIDDEN>
 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
 Mon, 21 Jul 2014 12:23:55 -0700 (PDT)
Message-ID: <53CD68CE.40805@HIDDEN>
Date: Mon, 21 Jul 2014 22:23:58 +0300
From: =?ISO-8859-1?Q?Juhani_=C5hman?= <juhanipm@HIDDEN>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
 rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: bug-gnu-emacs@HIDDEN
Subject: 24.3; cc-mode indentation is broken
Content-Type: multipart/alternative;
 boundary="------------010103020701050007020704"
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Mon, 21 Jul 2014 16:51:29 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)

This is a multi-part message in MIME format.
--------------010103020701050007020704
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

This bug report will be sent to the Bug-GNU-Emacs mailing list
and the GNU bug tracker at debbugs.gnu.org. Please check that
the From: line contains a valid email address. After a delay of up
to one day, you should receive an acknowledgment at that address.

Please write in English if possible, as the Emacs maintainers
usually do not have translators for other languages.

Please describe exactly what actions triggered the bug, and
the precise symptoms of the bug. If you can, give a recipe
starting from `emacs -Q':

I can't reliably reproduce the bug.
All I can say that the auto-indentation thingymajig in cc-mode stops 
working at
random every 5-15 minutes or so.
I can get it working again by reloading the file I am editing.
When the indentation is broken, pressing enter will leave no indentation
space for braces and such.

it looks like this

if(1) {
foo();
bar();
zot();
}

when it should look like this

if(1) {
     foo();
     bar();
     zot();
}

I'm pretty sure the indentation was working in some previous version,
about two years ago or so, but not in any of the newer versions of Emacs.


If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
`bt full' and `xbacktrace'.
For information about debugging Emacs, please read the file
/usr/share/emacs/24.3/etc/DEBUG.


In GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.12.2)
of 2014-06-11 on var-lib-archbuild-staging-x86_64-jgc
Windowing system distributor `The X.Org Foundation', version 11.0.11502000
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
--param=ssp-buffer-size=4'
'LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro'
'CPPFLAGS=-D_FORTIFY_SOURCE=2''

Important settings:
value of $LC_COLLATE: fi_FI.UTF-8
value of $LC_CTYPE: fi_FI.UTF-8
value of $LC_MESSAGES: en_US.UTF-8
value of $LC_MONETARY: fi_FI.UTF-8
value of $LC_NUMERIC: en_US.UTF-8
value of $LC_TIME: en_DK.UTF-8
value of $LANG: en_US.UTF-8
locale-coding-system: utf-8-unix
default enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
electric-indent-mode: t
cua-mode: t
global-subword-mode: t
subword-mode: t
show-paren-mode: t
global-hl-line-mode: t
tooltip-mode: t
mouse-wheel-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
column-number-mode: t
line-number-mode: t
transient-mark-mode: t

Recent input:
M-x c o - m
C-a C-k C-g M-x r e o
p e p o
r

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Loading 
/home/fzzy/.emacs.d/session.10ded9d363000140534073900000004430047...done
Restored session data
Making completion list... [3 times]
Quit
Making completion list... [2 times]

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr emacsbug message idna 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 mail-prsvr mail-utils help-mode easymenu electric preview-latex
tex-site auto-loads cc-styles cc-align cc-engine cc-vars cc-defs
bison-mode-autoloads glsl-mode-autoloads go-mode-autoloads package
cua-base subword bs paren edmacro kmacro hl-line delsel server time-date
tooltip 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
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 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
dynamic-setting system-font-setting font-render-setting move-toolbar gtk
x-toolkit x multi-tty emacs)

--------------010103020701050007020704
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    This bug report will be sent to the Bug-GNU-Emacs mailing list
    <br>
    and the GNU bug tracker at debbugs.gnu.org. Please check that
    <br>
    the From: line contains a valid email address. After a delay of up
    <br>
    to one day, you should receive an acknowledgment at that address.
    <br>
    <br>
    Please write in English if possible, as the Emacs maintainers
    <br>
    usually do not have translators for other languages.
    <br>
    <br>
    Please describe exactly what actions triggered the bug, and
    <br>
    the precise symptoms of the bug. If you can, give a recipe
    <br>
    starting from `emacs -Q':
    <br>
    <br>
    I can't reliably reproduce the bug.
    <br>
    All I can say that the auto-indentation thingymajig in cc-mode stops
    working at
    <br>
    random every 5-15 minutes or so.
    <br>
    I can get it working again by reloading the file I am editing.
    <br>
    When the indentation is broken, pressing enter will leave no
    indentation
    <br>
    space for braces and such.
    <br>
    <br>
    it looks like this
    <br>
    <br>
    if(1) {
    <br>
    foo();
    <br>
    bar();
    <br>
    zot();
    <br>
    }
    <br>
    <br>
    when it should look like this
    <br>
    <br>
    if(1) {
    <br>
    &nbsp;&nbsp;&nbsp; foo();
    <br>
    &nbsp;&nbsp;&nbsp; bar();
    <br>
    &nbsp;&nbsp;&nbsp; zot();
    <br>
    }
    <br>
    <br>
    I'm pretty sure the indentation was working in some previous
    version, <br>
    about two years ago or so, but not in any of the newer versions of
    Emacs.<br>
    <br>
    <br>
    If Emacs crashed, and you have the Emacs process in the gdb
    debugger,
    <br>
    please include the output from the following gdb commands:
    <br>
    `bt full' and `xbacktrace'.
    <br>
    For information about debugging Emacs, please read the file
    <br>
    /usr/share/emacs/24.3/etc/DEBUG.
    <br>
    <br>
    <br>
    In GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.12.2)
    <br>
    of 2014-06-11 on var-lib-archbuild-staging-x86_64-jgc
    <br>
    Windowing system distributor `The X.Org Foundation', version
    11.0.11502000
    <br>
    Configured using:
    <br>
    `configure '--prefix=/usr' '--sysconfdir=/etc'
    '--libexecdir=/usr/lib'
    <br>
    '--localstatedir=/var' '--with-x-toolkit=gtk3' '--with-xft'
    <br>
    'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe
    -fstack-protector-strong
    <br>
    --param=ssp-buffer-size=4'
    <br>
    'LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro'
    <br>
    'CPPFLAGS=-D_FORTIFY_SOURCE=2''
    <br>
    <br>
    Important settings:
    <br>
    value of $LC_COLLATE: fi_FI.UTF-8
    <br>
    value of $LC_CTYPE: fi_FI.UTF-8
    <br>
    value of $LC_MESSAGES: en_US.UTF-8
    <br>
    value of $LC_MONETARY: fi_FI.UTF-8
    <br>
    value of $LC_NUMERIC: en_US.UTF-8
    <br>
    value of $LC_TIME: en_DK.UTF-8
    <br>
    value of $LANG: en_US.UTF-8
    <br>
    locale-coding-system: utf-8-unix
    <br>
    default enable-multibyte-characters: t
    <br>
    <br>
    Major mode: Lisp Interaction
    <br>
    <br>
    Minor modes in effect:
    <br>
    electric-indent-mode: t
    <br>
    cua-mode: t
    <br>
    global-subword-mode: t
    <br>
    subword-mode: t
    <br>
    show-paren-mode: t
    <br>
    global-hl-line-mode: t
    <br>
    tooltip-mode: t
    <br>
    mouse-wheel-mode: t
    <br>
    menu-bar-mode: t
    <br>
    file-name-shadow-mode: t
    <br>
    global-font-lock-mode: t
    <br>
    font-lock-mode: t
    <br>
    blink-cursor-mode: t
    <br>
    auto-composition-mode: t
    <br>
    auto-encryption-mode: t
    <br>
    auto-compression-mode: t
    <br>
    column-number-mode: t
    <br>
    line-number-mode: t
    <br>
    transient-mark-mode: t
    <br>
    <br>
    Recent input:
    <br>
    <help-echo> M-x c o <tab> <backspace> - <tab> m <tab> <br>
              <tab> C-a C-k C-g <help-echo> M-x r e o <tab> <backspace>
                      <br>
                      <backspace> p <tab> <backspace> e p <tab> o <tab>
                                <tab> <br>
                                  r <tab> <return>
                                      <br>
                                      <br>
                                      Recent messages:
                                      <br>
                                      For information about GNU Emacs
                                      and the GNU system, type C-h C-a.
                                      <br>
                                      Loading
                                      /home/fzzy/.emacs.d/session.10ded9d363000140534073900000004430047...done
                                      <br>
                                      Restored session data
                                      <br>
                                      Making completion list... [3
                                      times]
                                      <br>
                                      Quit
                                      <br>
                                      Making completion list... [2
                                      times]
                                      <br>
                                      <br>
                                      Load-path shadows:
                                      <br>
                                      None found.
                                      <br>
                                      <br>
                                      Features:
                                      <br>
                                      (shadow sort gnus-util mail-extr
                                      emacsbug message idna format-spec
                                      <br>
                                      rfc822 mml mml-sec mm-decode
                                      mm-bodies mm-encode mail-parse
                                      rfc2231
                                      <br>
                                      mailabbrev gmm-utils mailheader
                                      sendmail rfc2047 rfc2045
                                      ietf-drums
                                      <br>
                                      mm-util mail-prsvr mail-utils
                                      help-mode easymenu electric
                                      preview-latex
                                      <br>
                                      tex-site auto-loads cc-styles
                                      cc-align cc-engine cc-vars cc-defs
                                      <br>
                                      bison-mode-autoloads
                                      glsl-mode-autoloads
                                      go-mode-autoloads package
                                      <br>
                                      cua-base subword bs paren edmacro
                                      kmacro hl-line delsel server
                                      time-date
                                      <br>
                                      tooltip ediff-hook vc-hooks
                                      lisp-float-type mwheel x-win x-dnd
                                      tool-bar
                                      <br>
                                      dnd fontset image regexp-opt
                                      fringe tabulated-list newcomment
                                      lisp-mode
                                      <br>
                                      register page menu-bar rfn-eshadow
                                      timer select scroll-bar mouse
                                      <br>
                                      jit-lock font-lock syntax facemenu
                                      font-core frame cham georgian
                                      <br>
                                      utf-8-lang misc-lang vietnamese
                                      tibetan thai tai-viet lao korean
                                      <br>
                                      japanese hebrew greek romanian
                                      slovak czech european ethiopic
                                      indian
                                      <br>
                                      cyrillic chinese case-table
                                      epa-hook jka-cmpr-hook help simple
                                      abbrev
                                      <br>
                                      minibuffer loaddefs button faces
                                      cus-face macroexp files
                                      text-properties
                                      <br>
                                      overlay sha1 md5 base64 format env
                                      code-pages mule custom widget
                                      <br>
                                      hashtable-print-readable backquote
                                      make-network-process dbusbind
                                      <br>
                                      dynamic-setting
                                      system-font-setting
                                      font-render-setting move-toolbar
                                      gtk
                                      <br>
                                      x-toolkit x multi-tty emacs)</return></tab></tab></tab></tab></backspace></tab></backspace></backspace></tab></help-echo></tab></tab></tab></backspace></tab></help-echo>
  </body>
</html>

--------------010103020701050007020704--




Acknowledgement sent to Juhani Åhman <juhanipm@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#18072; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.