From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ian Masters Newsgroups: gmane.emacs.bugs Subject: bug#8406: 23.3; cc-engine.el incorrectly classifies member-init-intro as member-init-cont Date: Fri, 01 Apr 2011 12:08:37 +0100 Message-ID: <4D95B235.6020209@dneg.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1301678939 18044 80.91.229.12 (1 Apr 2011 17:28:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 1 Apr 2011 17:28:59 +0000 (UTC) To: 8406@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 01 19:28:54 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q5i9W-000196-Ln for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 Apr 2011 19:28:54 +0200 Original-Received: from localhost ([127.0.0.1]:58824 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q5i9V-0005MV-Rp for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 Apr 2011 13:28:54 -0400 Original-Received: from [140.186.70.92] (port=51702 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q5hLo-0000xy-D5 for bug-gnu-emacs@gnu.org; Fri, 01 Apr 2011 12:42:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q5hLb-0003t3-IK for bug-gnu-emacs@gnu.org; Fri, 01 Apr 2011 12:37:20 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45066) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q5hLb-0003su-F7 for bug-gnu-emacs@gnu.org; Fri, 01 Apr 2011 12:37:19 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Q5h5q-0004Wj-GM; Fri, 01 Apr 2011 12:21:02 -0400 X-Loop: help-debbugs@gnu.org 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: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.130167480917321 (code B ref -1); Fri, 01 Apr 2011 16:21:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Apr 2011 16:20:09 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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] Original-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) Original-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) Original-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) User-Agent: Thunderbird 2.0.0.18 (X11/20081105) 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-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 Resent-Date: Fri, 01 Apr 2011 12:21:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-Mailman-Approved-At: Fri, 01 Apr 2011 13:28:23 -0400 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:45563 Archived-At: 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)