From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "aoriens@gmail.com" Newsgroups: gmane.emacs.bugs Subject: bug#12825: 24.2; Broken autoindentation in C header file Date: Wed, 7 Nov 2012 14:20:25 +0400 Message-ID: <20121107142025.df1301d2b76aaac47ac86ddc@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Multipart=_Wed__7_Nov_2012_14_20_25_+0400_bBO4u9zg5TMqO4zU" X-Trace: ger.gmane.org 1352307082 9324 80.91.229.3 (7 Nov 2012 16:51:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 7 Nov 2012 16:51:22 +0000 (UTC) To: 12825@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 07 17:51:32 2012 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 1TW8qg-0000rI-5K for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 Nov 2012 17:51:30 +0100 Original-Received: from localhost ([::1]:46814 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TW8qX-0006b8-7H for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 Nov 2012 11:51:21 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:51111) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TW8qR-0006az-M8 for bug-gnu-emacs@gnu.org; Wed, 07 Nov 2012 11:51:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TW8qH-0004KV-De for bug-gnu-emacs@gnu.org; Wed, 07 Nov 2012 11:51:15 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44402) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TW8qH-0004KQ-9b for bug-gnu-emacs@gnu.org; Wed, 07 Nov 2012 11:51:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TW8qD-0005l8-Su for bug-gnu-emacs@gnu.org; Wed, 07 Nov 2012 11:51:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "aoriens@gmail.com" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 07 Nov 2012 16:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 12825 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.135230702422079 (code B ref -1); Wed, 07 Nov 2012 16:51:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 Nov 2012 16:50:24 +0000 Original-Received: from localhost ([127.0.0.1]:54653 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TW8pb-0005k4-TQ for submit@debbugs.gnu.org; Wed, 07 Nov 2012 11:50:24 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:57008) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TW2i1-0003NZ-NS for submit@debbugs.gnu.org; Wed, 07 Nov 2012 05:18:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TW2i1-0005p2-S4 for submit@debbugs.gnu.org; Wed, 07 Nov 2012 05:18:14 -0500 Original-Received: from lists.gnu.org ([208.118.235.17]:41358) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TW2i1-0005ou-NG for submit@debbugs.gnu.org; Wed, 07 Nov 2012 05:18:09 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:43817) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TW2hu-0000lM-Tq for bug-gnu-emacs@gnu.org; Wed, 07 Nov 2012 05:18:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TW2ho-0005ld-Em for bug-gnu-emacs@gnu.org; Wed, 07 Nov 2012 05:18:02 -0500 Original-Received: from mail-lb0-f169.google.com ([209.85.217.169]:49355) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TW2ho-0005lH-0s for bug-gnu-emacs@gnu.org; Wed, 07 Nov 2012 05:17:56 -0500 Original-Received: by mail-lb0-f169.google.com with SMTP id k6so1289219lbo.0 for ; Wed, 07 Nov 2012 02:17:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:x-mailer:mime-version:content-type; bh=t3+gYbFKWxJS3/PeBYPANbK4piG2w/F61A+PxYyj7hw=; b=G9f7oC4UbxmYP0iREUt2A3/gpou32u4bQ4m0QSNQy5ujX8y7fgk+tIw8hwvxRMW1S+ 8YtzGX8rroOMbdYl2c3JGMFcQ2X3e0E8V3cH2M7VBM8120CcDIyii9yA1W8XygMnvekK 8l6Z7iEwEh8WL01rafDo7ie7GIlFUGDfoO3Zt0gXS2L4rvxrLmCxJyDIAupfG5kJCnHc sv8MdaZdeIQmZYDvHjxq33vZwlEADopi8npeuradDnirbF16bbYhuuSPHt6Gvs1FyFes 7KPz4+5GhCS3rqTbbHWRM2OBN+83Vf7KyAU9RhxEYe8GL2bN9mqGQPbfL4CFfj7yNv5a 5t/w== Original-Received: by 10.152.124.111 with SMTP id mh15mr3739434lab.20.1352283474559; Wed, 07 Nov 2012 02:17:54 -0800 (PST) Original-Received: from kav.kobra.local ([95.66.136.114]) by mx.google.com with ESMTPS id sy1sm7774116lab.16.2012.11.07.02.17.52 (version=SSLv3 cipher=OTHER); Wed, 07 Nov 2012 02:17:53 -0800 (PST) X-Mailer: Sylpheed 3.2.0 (GTK+ 2.10.14; i686-pc-mingw32) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Wed, 07 Nov 2012 11:50:22 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.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:66582 Archived-At: This is a multi-part message in MIME format. --Multipart=_Wed__7_Nov_2012_14_20_25_+0400_bBO4u9zg5TMqO4zU Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 8bit 1) Load file `assert.h' (attached) 2) Move point to line 23 and press - the line text is shifted to column 6 properly. 3) Move point to line 24 and press - the line text doesn't move, it's still at column 21, although it should be shifted to column 6. In GNU Emacs 24.2.1 (i386-mingw-nt5.1.2600) of 2012-08-29 on MARVIN Windowing system distributor `Microsoft Corp.', version 5.1.2600 Configured using: `configure --with-gcc (4.6) --cflags -ID:/devel/emacs/libs/libXpm-3.5.8/include -ID:/devel/emacs/libs/libXpm-3.5.8/src -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include -ID:/devel/emacs/libs/giflib-4.1.4-1/include -ID:/devel/emacs/libs/jpeg-6b-4/include -ID:/devel/emacs/libs/tiff-3.8.2-1/include -ID:/devel/emacs/libs/gnutls-3.0.9/include' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: RUS value of $XMODIFIERS: nil locale-coding-system: cp1251 default enable-multibyte-characters: t Major mode: C/l Minor modes in effect: 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 line-number-mode: t transient-mark-mode: t abbrev-mode: t Recent input: C-x C-f í Ï s / k a j a m j a m d / a s s C-c C-s M-x C-g M-x r e p o r t - Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... assert.h has auto save data; consider M-x recover-this-file Loading vc-git...done Syntactic analysis: ((arglist-cont-nonempty 534 546)) Quit Making completion list... 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 mail-prsvr mail-utils vc-git cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs regexp-opt help-mode easymenu view time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel dos-w32 disp-table ls-lisp w32-win w32-vars tool-bar dnd fontset image fringe 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 files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process multi-tty emacs) -- aoriens@gmail.com --Multipart=_Wed__7_Nov_2012_14_20_25_+0400_bBO4u9zg5TMqO4zU Content-Type: text/x-chdr; name="assert.h" Content-Disposition: attachment; filename="assert.h" Content-Transfer-Encoding: 7bit #ifndef __MY_ASSERT_H__ #define __MY_ASSERT_H__ #include #include #include "log.h" // assert also writes to a log. Assert is intended to be compiled // regardless of whether macro NDEBUG is defined or not #define assert(cond) \ do { \ if (! (cond)) { \ if (plog) { \ plog->alarm ("Assertion failed: `%s'\nat `%s' line `%d'\n", \ #cond, __FILE__, __LINE__); \ } \ else { \ std::fprintf (stderr, "Assertion failed: `%s'\nat `%s' line `%d'\n", \ #cond, __FILE__, __LINE__); \ } \ std::abort (); \ } \ } while (0) #endif . --Multipart=_Wed__7_Nov_2012_14_20_25_+0400_bBO4u9zg5TMqO4zU--