From unknown Mon Jun 23 20:17:27 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8406: 23.3; cc-engine.el incorrectly classifies member-init-intro as member-init-cont Resent-From: Ian Masters Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 Apr 2011 16:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 8406 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 8406@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.130167480917321 (code B ref -1); Fri, 01 Apr 2011 16:21:02 +0000 Received: (at submit) by debbugs.gnu.org; 1 Apr 2011 16:20:09 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q5h4y-0004VJ-A0 for submit@debbugs.gnu.org; Fri, 01 Apr 2011 12:20:09 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q5cDh-00059F-RG for submit@debbugs.gnu.org; Fri, 01 Apr 2011 07:08:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q5cDb-00053q-Hl for submit@debbugs.gnu.org; Fri, 01 Apr 2011 07:08:44 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:41701) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q5cDb-00053m-FJ for submit@debbugs.gnu.org; Fri, 01 Apr 2011 07:08:43 -0400 Received: from [140.186.70.92] (port=49850 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q5cDa-0001do-1G for bug-gnu-emacs@gnu.org; Fri, 01 Apr 2011 07:08:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q5cDY-00053M-Ez for bug-gnu-emacs@gnu.org; Fri, 01 Apr 2011 07:08:41 -0400 Received: from natter.dneg.com ([193.203.82.213]:47930) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q5cDY-000536-7P for bug-gnu-emacs@gnu.org; Fri, 01 Apr 2011 07:08:40 -0400 Received: from localhost (localhost [127.0.0.1]) by natter.dneg.com (Postfix) with ESMTP id EF8883842CFC for ; Fri, 1 Apr 2011 12:08:37 +0100 (BST) X-Virus-Scanned: amavisd-new at mx-dneg X-Amavis-OS-Fingerprint: MYNETWORKS, [172.16.2.214:47700] Received: from rave.dneg.com (rave.dneg.com [172.16.2.214]) by natter.dneg.com (Postfix) with ESMTPS id CF0FC3842CE2 for ; Fri, 1 Apr 2011 12:08:37 +0100 (BST) Received: from rave.dneg.com (localhost [127.0.0.1]) by rave.dneg.com (Postfix) with ESMTP id C1FF52022B16 for ; Fri, 1 Apr 2011 12:08:37 +0100 (BST) Received: from [172.16.9.127] (redlynch.dneg.com [172.16.9.127]) by rave.dneg.com (Postfix) with ESMTP id AFA9B2022B12 for ; Fri, 1 Apr 2011 12:08:37 +0100 (BST) Message-ID: <4D95B235.6020209@dneg.com> Date: Fri, 01 Apr 2011 12:08:37 +0100 From: Ian Masters User-Agent: Thunderbird 2.0.0.18 (X11/20081105) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 199.232.76.165 X-Spam-Score: -6.6 (------) X-Mailman-Approved-At: Fri, 01 Apr 2011 12:20:08 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) This bug report will be sent to the Free Software Foundation, not to your local site managers! Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your report will be posted to the bug-gnu-emacs@gnu.org mailing list and the gnu.emacs.bug news group, and at http://debbugs.gnu.org. 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': To reproduce the issue: 1. Launch emacs emacs -Q 2. Create a new buffer C-x b test.cpp 3. Enter c++ mode M-x c++-mode 4. Insert the following constructor which includes a member initializer list: Class::Class(int i) :m_i(i) { } 5. With point on the initializer list on line 2 query the syntactic information: C-c C-s which returns: ((member-init-cont 28)) 6. Add a space at the beginning of line 2 to give: Class::Class(int i) :m_i(i) { } 7. With point on the initializer list on line 2 query the syntactic information again: C-c C-s now correctly identifies the line as intro rather than cont: ((member-init-intro 1)) 8. The following change to lisp/progmodes/cc-engine.el fixes the issue: 8121c8121 < (if (or (> tmp-pos indent-point) --- > (if (or (>= tmp-pos indent-point) Thanks! Ian 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 /u/iim/tools/apps/Linux64/emacs/emacs-23.3/share/emacs/23.3/etc/DEBUG. In GNU Emacs 23.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.12.8) of 2011-04-01 on redlynch Windowing system distributor `The X.Org Foundation', version 11.0.10300000 configured using `configure '--prefix=/u/iim/tools/apps/Linux64/emacs/emacs-23.3'' 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: en_GB value of $XMODIFIERS: nil locale-coding-system: iso-latin-1-unix default enable-multibyte-characters: t Major mode: Fundamental Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t blink-cursor-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x b u r e [ p p o r t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... [3 times] Load-path shadows: None found. Features: (shadow sort mail-extr message sendmail regexp-opt ecomplete rfc822 mml mml-sec password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc time-date mm-util mail-prsvr gmm-utils wid-edit mailheader canlock sha1 hex-util hashcash mail-utils emacsbug help-mode easymenu view tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd font-setting tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag 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 loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind system-font-setting font-render-setting gtk x-toolkit x multi-tty emacs) From unknown Mon Jun 23 20:17:27 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8406: Acknowledgement (23.3; cc-engine.el incorrectly classifies member-init-intro as member-init-cont) Resent-From: Ian Masters Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Tue, 12 Apr 2011 15:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8406 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: To: 8406@debbugs.gnu.org Received: via spool by 8406-submit@debbugs.gnu.org id=B8406.13026205633198 (code B ref 8406); Tue, 12 Apr 2011 15:03:02 +0000 Received: (at 8406) by debbugs.gnu.org; 12 Apr 2011 15:02:43 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q9f74-0000pX-RJ for submit@debbugs.gnu.org; Tue, 12 Apr 2011 11:02:42 -0400 Received: from natter.dneg.com ([193.203.82.213]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q9f73-0000pH-0t for 8406@debbugs.gnu.org; Tue, 12 Apr 2011 11:02:41 -0400 Received: from localhost (localhost [127.0.0.1]) by natter.dneg.com (Postfix) with ESMTP id EE1DC3842CE4 for <8406@debbugs.gnu.org>; Tue, 12 Apr 2011 16:02:34 +0100 (BST) X-Virus-Scanned: amavisd-new at mx-dneg X-Amavis-OS-Fingerprint: MYNETWORKS, [172.16.2.214:37996] Received: from rave.dneg.com (rave.dneg.com [172.16.2.214]) by natter.dneg.com (Postfix) with ESMTPS id CAC1E3842CE3 for <8406@debbugs.gnu.org>; Tue, 12 Apr 2011 16:02:34 +0100 (BST) Received: from rave.dneg.com (localhost [127.0.0.1]) by rave.dneg.com (Postfix) with ESMTP id BA9152000926 for <8406@debbugs.gnu.org>; Tue, 12 Apr 2011 16:02:34 +0100 (BST) Received: from [172.16.9.127] (redlynch.dneg.com [172.16.9.127]) by rave.dneg.com (Postfix) with ESMTP id B0803200125D for <8406@debbugs.gnu.org>; Tue, 12 Apr 2011 16:02:34 +0100 (BST) Message-ID: <4DA4698A.4000707@dneg.com> Date: Tue, 12 Apr 2011 16:02:34 +0100 From: Ian Masters User-Agent: Thunderbird 2.0.0.18 (X11/20081105) MIME-Version: 1.0 References: <4D95B235.6020209@dneg.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP X-Spam-Score: -4.6 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.9 (---) Doh! Single spaces seem to get trimmed from the beginning of lines. Assuming I can get it right this time, step 6 should read: 6. Add a space at the beginning of line 2 to give: Class::Class(int i) :m_i(i) { } Cheerio! Ian From unknown Mon Jun 23 20:17:27 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8406: 23.3; cc-engine.el incorrectly classifies member-init-intro as member-init-cont Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Sun, 29 Jan 2012 07:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8406 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: patch To: Alan Mackenzie Cc: 8406@debbugs.gnu.org, Ian Masters Received: via spool by 8406-submit@debbugs.gnu.org id=B8406.13278212751311 (code B ref 8406); Sun, 29 Jan 2012 07:15:02 +0000 Received: (at 8406) by debbugs.gnu.org; 29 Jan 2012 07:14:35 +0000 Received: from localhost ([127.0.0.1]:42856 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RrOyB-0000L6-3m for submit@debbugs.gnu.org; Sun, 29 Jan 2012 02:14:35 -0500 Received: from fencepost.gnu.org ([140.186.70.10]:55909 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RrOy8-0000Ky-0W for 8406@debbugs.gnu.org; Sun, 29 Jan 2012 02:14:33 -0500 Received: from bb121-7-229-69.singnet.com.sg ([121.7.229.69]:46680 helo=furball) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1RrOy2-0006dC-Tx; Sun, 29 Jan 2012 02:14:27 -0500 From: Chong Yidong References: <4D95B235.6020209@dneg.com> Date: Sun, 29 Jan 2012 15:14:19 +0800 In-Reply-To: <4D95B235.6020209@dneg.com> (Ian Masters's message of "Fri, 01 Apr 2011 12:08:37 +0100") Message-ID: <87zkd70ylw.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -4.2 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) Hi Alan, Could you review the following bug report, which has an attached patch? Thanks. Ian Masters writes: > 1. Launch emacs > > emacs -Q > > 2. Create a new buffer > > C-x b test.cpp > > 3. Enter c++ mode > > M-x c++-mode > > 4. Insert the following constructor which includes a member initializer > list: > > Class::Class(int i) > :m_i(i) > { > > } > > 5. With point on the initializer list on line 2 query the syntactic > information: > > C-c C-s > > which returns: > > ((member-init-cont 28)) > > 6. Add a space at the beginning of line 2 to give: > > Class::Class(int i) > :m_i(i) > { > > } > > 7. With point on the initializer list on line 2 query the syntactic > information again: > > C-c C-s > > now correctly identifies the line as intro rather than cont: > > ((member-init-intro 1)) > > 8. The following change to lisp/progmodes/cc-engine.el fixes the issue: > > 8121c8121 > < (if (or (> tmp-pos indent-point) > --- >> (if (or (>= tmp-pos indent-point) From unknown Mon Jun 23 20:17:27 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8406: 23.3; cc-engine.el incorrectly classifies member-init-intro as member-init-cont Resent-From: Alan Mackenzie Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Tue, 31 Jan 2012 22:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8406 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: patch To: Chong Yidong Cc: 8406@debbugs.gnu.org, Ian Masters Received: via spool by 8406-submit@debbugs.gnu.org id=B8406.132804747528170 (code B ref 8406); Tue, 31 Jan 2012 22:05:01 +0000 Received: (at 8406) by debbugs.gnu.org; 31 Jan 2012 22:04:35 +0000 Received: from localhost ([127.0.0.1]:47722 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RsLoY-0007KI-91 for submit@debbugs.gnu.org; Tue, 31 Jan 2012 17:04:35 -0500 Received: from colin.muc.de ([193.149.48.1]:18618 helo=mail.muc.de) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RsLoV-0007K9-GG for 8406@debbugs.gnu.org; Tue, 31 Jan 2012 17:04:32 -0500 Received: (qmail 21775 invoked by uid 3782); 31 Jan 2012 22:04:12 -0000 Received: from acm.muc.de (pD951AC98.dip.t-dialin.net [217.81.172.152]) by colin.muc.de (tmda-ofmipd) with ESMTP; Tue, 31 Jan 2012 23:04:07 +0100 Received: (qmail 11989 invoked by uid 1000); 31 Jan 2012 22:04:05 -0000 Date: Tue, 31 Jan 2012 22:04:05 +0000 Message-ID: <20120131220405.GA11983@acm.acm> References: <4D95B235.6020209@dneg.com> <87zkd70ylw.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87zkd70ylw.fsf@gnu.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Hi, Yidong! On Sun, Jan 29, 2012 at 03:14:19PM +0800, Chong Yidong wrote: > Hi Alan, > Could you review the following bug report, which has an attached patch? > Thanks. The patch was just fine. I've committed it to the trunk. > Ian Masters writes: > > 1. Launch emacs > > emacs -Q > > 2. Create a new buffer > > C-x b test.cpp > > 3. Enter c++ mode > > M-x c++-mode > > 4. Insert the following constructor which includes a member initializer > > list: > > Class::Class(int i) > > :m_i(i) > > { > > } > > 5. With point on the initializer list on line 2 query the syntactic > > information: > > C-c C-s > > which returns: > > ((member-init-cont 28)) > > 6. Add a space at the beginning of line 2 to give: > > Class::Class(int i) > > :m_i(i) > > { > > } > > 7. With point on the initializer list on line 2 query the syntactic > > information again: > > C-c C-s > > now correctly identifies the line as intro rather than cont: > > ((member-init-intro 1)) > > 8. The following change to lisp/progmodes/cc-engine.el fixes the issue: > > 8121c8121 > > < (if (or (> tmp-pos indent-point) > > --- > >> (if (or (>= tmp-pos indent-point) -- Alan Mackenzie (Nuremberg, Germany). From unknown Mon Jun 23 20:17:27 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.428 (Entity 5.428) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Ian Masters Subject: bug#8406: closed (Re: bug#8406: 23.3; cc-engine.el incorrectly classifies member-init-intro as member-init-cont) Message-ID: References: <87aa53uv67.fsf@gnu.org> <4D95B235.6020209@dneg.com> X-Gnu-PR-Message: they-closed 8406 X-Gnu-PR-Package: emacs,cc-mode X-Gnu-PR-Keywords: patch Reply-To: 8406@debbugs.gnu.org Date: Wed, 01 Feb 2012 02:48:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1328064483-23755-1" This is a multi-part message in MIME format... ------------=_1328064483-23755-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #8406: 23.3; cc-engine.el incorrectly classifies member-init-intro as membe= r-init-cont which was filed against the emacs,cc-mode package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 8406@debbugs.gnu.org. --=20 8406: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D8406 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1328064483-23755-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 8406-done) by debbugs.gnu.org; 1 Feb 2012 02:47:44 +0000 Received: from localhost ([127.0.0.1]:47902 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RsQEZ-0006Ag-Oh for submit@debbugs.gnu.org; Tue, 31 Jan 2012 21:47:43 -0500 Received: from fencepost.gnu.org ([140.186.70.10]:33641 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RsQEX-0006AY-DN for 8406-done@debbugs.gnu.org; Tue, 31 Jan 2012 21:47:42 -0500 Received: from bb121-7-229-69.singnet.com.sg ([121.7.229.69]:37000 helo=furball) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1RsQED-0003BY-CP; Tue, 31 Jan 2012 21:47:22 -0500 From: Chong Yidong To: Alan Mackenzie Subject: Re: bug#8406: 23.3; cc-engine.el incorrectly classifies member-init-intro as member-init-cont References: <4D95B235.6020209@dneg.com> <87zkd70ylw.fsf@gnu.org> <20120131220405.GA11983@acm.acm> Date: Wed, 01 Feb 2012 10:47:12 +0800 In-Reply-To: <20120131220405.GA11983@acm.acm> (Alan Mackenzie's message of "Tue, 31 Jan 2012 22:04:05 +0000") Message-ID: <87aa53uv67.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: 8406-done Cc: 8406-done@debbugs.gnu.org, Ian Masters X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) Alan Mackenzie writes: > The patch was just fine. I've committed it to the trunk. Thanks all. Closing the bug. ------------=_1328064483-23755-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 1 Apr 2011 16:20:09 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q5h4y-0004VJ-A0 for submit@debbugs.gnu.org; Fri, 01 Apr 2011 12:20:09 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q5cDh-00059F-RG for submit@debbugs.gnu.org; Fri, 01 Apr 2011 07:08:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q5cDb-00053q-Hl for submit@debbugs.gnu.org; Fri, 01 Apr 2011 07:08:44 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:41701) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q5cDb-00053m-FJ for submit@debbugs.gnu.org; Fri, 01 Apr 2011 07:08:43 -0400 Received: from [140.186.70.92] (port=49850 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q5cDa-0001do-1G for bug-gnu-emacs@gnu.org; Fri, 01 Apr 2011 07:08:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q5cDY-00053M-Ez for bug-gnu-emacs@gnu.org; Fri, 01 Apr 2011 07:08:41 -0400 Received: from natter.dneg.com ([193.203.82.213]:47930) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q5cDY-000536-7P for bug-gnu-emacs@gnu.org; Fri, 01 Apr 2011 07:08:40 -0400 Received: from localhost (localhost [127.0.0.1]) by natter.dneg.com (Postfix) with ESMTP id EF8883842CFC for ; Fri, 1 Apr 2011 12:08:37 +0100 (BST) X-Virus-Scanned: amavisd-new at mx-dneg X-Amavis-OS-Fingerprint: MYNETWORKS, [172.16.2.214:47700] Received: from rave.dneg.com (rave.dneg.com [172.16.2.214]) by natter.dneg.com (Postfix) with ESMTPS id CF0FC3842CE2 for ; Fri, 1 Apr 2011 12:08:37 +0100 (BST) Received: from rave.dneg.com (localhost [127.0.0.1]) by rave.dneg.com (Postfix) with ESMTP id C1FF52022B16 for ; Fri, 1 Apr 2011 12:08:37 +0100 (BST) Received: from [172.16.9.127] (redlynch.dneg.com [172.16.9.127]) by rave.dneg.com (Postfix) with ESMTP id AFA9B2022B12 for ; Fri, 1 Apr 2011 12:08:37 +0100 (BST) Message-ID: <4D95B235.6020209@dneg.com> Date: Fri, 01 Apr 2011 12:08:37 +0100 From: Ian Masters User-Agent: Thunderbird 2.0.0.18 (X11/20081105) MIME-Version: 1.0 To: bug-gnu-emacs@gnu.org Subject: 23.3; cc-engine.el incorrectly classifies member-init-intro as member-init-cont Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 199.232.76.165 X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 01 Apr 2011 12:20:08 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) This bug report will be sent to the Free Software Foundation, not to your local site managers! Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your report will be posted to the bug-gnu-emacs@gnu.org mailing list and the gnu.emacs.bug news group, and at http://debbugs.gnu.org. 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': To reproduce the issue: 1. Launch emacs emacs -Q 2. Create a new buffer C-x b test.cpp 3. Enter c++ mode M-x c++-mode 4. Insert the following constructor which includes a member initializer list: Class::Class(int i) :m_i(i) { } 5. With point on the initializer list on line 2 query the syntactic information: C-c C-s which returns: ((member-init-cont 28)) 6. Add a space at the beginning of line 2 to give: Class::Class(int i) :m_i(i) { } 7. With point on the initializer list on line 2 query the syntactic information again: C-c C-s now correctly identifies the line as intro rather than cont: ((member-init-intro 1)) 8. The following change to lisp/progmodes/cc-engine.el fixes the issue: 8121c8121 < (if (or (> tmp-pos indent-point) --- > (if (or (>= tmp-pos indent-point) Thanks! Ian 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 /u/iim/tools/apps/Linux64/emacs/emacs-23.3/share/emacs/23.3/etc/DEBUG. In GNU Emacs 23.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.12.8) of 2011-04-01 on redlynch Windowing system distributor `The X.Org Foundation', version 11.0.10300000 configured using `configure '--prefix=/u/iim/tools/apps/Linux64/emacs/emacs-23.3'' 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: en_GB value of $XMODIFIERS: nil locale-coding-system: iso-latin-1-unix default enable-multibyte-characters: t Major mode: Fundamental Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t blink-cursor-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x b u r e [ p p o r t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... [3 times] Load-path shadows: None found. Features: (shadow sort mail-extr message sendmail regexp-opt ecomplete rfc822 mml mml-sec password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc time-date mm-util mail-prsvr gmm-utils wid-edit mailheader canlock sha1 hex-util hashcash mail-utils emacsbug help-mode easymenu view tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd font-setting tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag 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 loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind system-font-setting font-render-setting gtk x-toolkit x multi-tty emacs) ------------=_1328064483-23755-1--