From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juhani =?UTF-8?Q?=C3=85hman?= Newsgroups: gmane.emacs.bugs Subject: bug#18072: 24.3; cc-mode indentation is broken Date: Mon, 21 Jul 2014 22:23:58 +0300 Message-ID: <53CD68CE.40805@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------010103020701050007020704" X-Trace: ger.gmane.org 1405975946 22985 80.91.229.3 (21 Jul 2014 20:52:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Jul 2014 20:52:26 +0000 (UTC) To: 18072@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 21 22:52:19 2014 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 1X9KZG-0004yo-9Z for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Jul 2014 22:52:18 +0200 Original-Received: from localhost ([::1]:36280 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9KZF-0000mB-Pe for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Jul 2014 16:52:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52519) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9KZ7-0000ky-3L for bug-gnu-emacs@gnu.org; Mon, 21 Jul 2014 16:52:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X9KZ2-0007Gv-88 for bug-gnu-emacs@gnu.org; Mon, 21 Jul 2014 16:52:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38461) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9KZ2-0007Gr-4g for bug-gnu-emacs@gnu.org; Mon, 21 Jul 2014 16:52:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1X9KZ1-0006ah-Pr for bug-gnu-emacs@gnu.org; Mon, 21 Jul 2014 16:52:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juhani =?UTF-8?Q?=C3=85hman?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Jul 2014 20:52:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 18072 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.140597589225265 (code B ref -1); Mon, 21 Jul 2014 20:52:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Jul 2014 20:51:32 +0000 Original-Received: from localhost ([127.0.0.1]:33723 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X9KYV-0006ZL-L8 for submit@debbugs.gnu.org; Mon, 21 Jul 2014 16:51:32 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:32913) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X9JC7-0003rV-Aa for submit@debbugs.gnu.org; Mon, 21 Jul 2014 15:24:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X9JBx-0004HV-8s for submit@debbugs.gnu.org; Mon, 21 Jul 2014 15:24:14 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:54273) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9JBx-0004HP-6B for submit@debbugs.gnu.org; Mon, 21 Jul 2014 15:24:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34600) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9JBs-0003XG-AP for bug-gnu-emacs@gnu.org; Mon, 21 Jul 2014 15:24:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X9JBn-0004G9-DG for bug-gnu-emacs@gnu.org; Mon, 21 Jul 2014 15:24:04 -0400 Original-Received: from mail-la0-x235.google.com ([2a00:1450:4010:c03::235]:59765) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9JBm-0004Fx-Vg for bug-gnu-emacs@gnu.org; Mon, 21 Jul 2014 15:23:59 -0400 Original-Received: by mail-la0-f53.google.com with SMTP id gl10so5001676lab.26 for ; 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) Original-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 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 21 Jul 2014 12:23:55 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 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-Mailman-Approved-At: Mon, 21 Jul 2014 16:51:29 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:91732 Archived-At: 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 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--