From unknown Sun Jun 15 08:57:07 2025 X-Loop: bug-gnu-emacs@gnu.org Subject: bug#5395: cc-mode raises on typing '>' in #include Mail-Followup-To: Daniel Colascione , 5395@debbugs.gnu.org Resent-From: Daniel Colascione Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 16 Jan 2010 00:24:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: report 5395 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@debbugs.gnu.org id=B.12636014389733 (code B ref -1); Sat, 16 Jan 2010 00:24:02 +0000 Received: (at submit) by debbugs.gnu.org; 16 Jan 2010 00:23:58 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NVwSK-0002Ww-V6 for submit@debbugs.gnu.org; Fri, 15 Jan 2010 19:23:57 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NVwMb-0002Te-Oc for submit@debbugs.gnu.org; Fri, 15 Jan 2010 19:18:04 -0500 Received: from mail.gnu.org ([199.232.76.166]:53784 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NVwMX-0005lC-Fc for submit@debbugs.gnu.org; Fri, 15 Jan 2010 19:17:58 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NVwMU-0005py-C9 for submit@debbugs.gnu.org; Fri, 15 Jan 2010 19:17:57 -0500 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on monty-python X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO,UNPARSEABLE_RELAY autolearn=ham version=3.1.0 Received: from lists.gnu.org ([199.232.76.165]:60882) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NVwMU-0005pc-3v for submit@debbugs.gnu.org; Fri, 15 Jan 2010 19:17:54 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NVwMT-0003Kq-G8 for bug-gnu-emacs@gnu.org; Fri, 15 Jan 2010 19:17:53 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NVwMS-0003KS-QJ for bug-gnu-emacs@gnu.org; Fri, 15 Jan 2010 19:17:53 -0500 Received: from [199.232.76.173] (port=49113 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NVwMS-0003KN-LM for bug-gnu-emacs@gnu.org; Fri, 15 Jan 2010 19:17:52 -0500 Received: from haystack.austinheap.com ([70.32.98.68]:44153 helo=haystacknetwork.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NVwMS-0005oG-40 for bug-gnu-emacs@gnu.org; Fri, 15 Jan 2010 19:17:52 -0500 Message-ID: <4B5105A6.4060606@censorshipresearch.org> Date: Fri, 15 Jan 2010 19:17:42 -0500 From: Daniel Colascione Organization: Censorship Research Center User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0 MIME-Version: 1.0 To: bug-gnu-emacs@gnu.org X-Enigmail-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -6.6 (------) X-Mailman-Approved-At: Fri, 15 Jan 2010 19:23:56 -0500 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 (------) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Check out latest Emacs BZR. Start with -Q Visit an arbitrary .cpp file Type #include After typing the closing '>', an error is raised. Here is the traceback Debugger entered--Lisp error: (args-out-of-range 15 16) remove-text-properties(15 16 (category nil)) (let ((pos here-cpp-end)) (remove-text-properties pos (1+ pos) (quote ...))) (c-clear-char-property here-cpp-end (quote category)) (progn (c-clear-char-property here-cpp-beg (quote category)) (c-clear-char-property here-cpp-end (quote category))) (c-clear-cpp-delimiters here-cpp-beg here-cpp-end) (progn (c-clear-cpp-delimiters here-cpp-beg here-cpp-end) (c-with-cpps-commented-out (c-parse-state-1))) (unwind-protect (progn (c-clear-cpp-delimiters here-cpp-beg here-cpp-end) (c-with-cpps-commented-out ...)) (and (not modified) (buffer-modified-p) (set-buffer-modified-p nil))) (let* ((modified ...) (buffer-undo-list t) (inhibit-read-only t) (inhibit-point-motion-hooks t) before-change-functions after-change-functions deactivate-mark buffer-file-name buffer-file-truename) (unwind-protect (progn ... ...) (and ... ... ...))) (c-save-buffer-state nil (c-clear-cpp-delimiters here-cpp-beg here-cpp-end) (c-with-cpps-commented-out (c-parse-state-1))) (unwind-protect (c-save-buffer-state nil (c-clear-cpp-delimiters here-cpp-beg here-cpp-end) (c-with-cpps-commented-out ...)) (c-save-buffer-state nil (c-set-cpp-delimiters here-cpp-beg here-cpp-end))) (c-with-all-but-one-cpps-commented-out here-cpp-beg here-cpp-end (c-parse-state-1)) (if (and here-cpp-beg (> here-cpp-end here-cpp-beg)) (c-with-all-but-one-cpps-commented-out here-cpp-beg here-cpp-end (c-parse-state-1)) (c-with-cpps-commented-out (c-parse-state-1))) (progn (c-suppress-<->-as-parens) (if (and here-cpp-beg ...) (c-with-all-but-one-cpps-commented-out here-cpp-beg here-cpp-end ...) (c-with-cpps-commented-out ...))) (unwind-protect (progn (c-suppress-<->-as-parens) (if ... ... ...)) (c-restore-<->-as-parens)) (c-with-<->-as-parens-suppressed (if (and here-cpp-beg ...) (c-with-all-but-one-cpps-commented-out here-cpp-beg here-cpp-end ...) (c-with-cpps-commented-out ...))) (prog1 (c-with-<->-as-parens-suppressed (if ... ... ...)) (setq c-state-old-cpp-beg here-cpp-beg c-state-old-cpp-end here-cpp-end)) (let (here-cpp-beg here-cpp-end) (save-excursion (when ... ... ...)) (prog1 (c-with-<->-as-parens-suppressed ...) (setq c-state-old-cpp-beg here-cpp-beg c-state-old-cpp-end here-cpp-end))) c-parse-state() (or c-state-cache (c-parse-state)) (c-safe-position (point) (or c-state-cache (c-parse-state))) (or (c-safe-position (point) (or c-state-cache ...)) 0) (max (or (c-safe-position ... ...) 0) (point-min)) (setq safe-pos (max (or ... 0) (point-min)) safe-pos-list (list safe-pos)) (if (setq safe-pos (car-safe safe-pos-list)) nil (setq safe-pos (max ... ...) safe-pos-list (list safe-pos))) (unless (setq safe-pos (car-safe safe-pos-list)) (setq safe-pos (max ... ...) safe-pos-list (list safe-pos))) (let ((pos ...) safe-pos state pps-end-pos) (while (and safe-pos-list ...) (setq safe-pos-list ...)) (unless (setq safe-pos ...) (setq safe-pos ... safe-pos-list ...)) (while (progn ... ...) (setq safe-pos ... safe-pos-list ...)) (if (elt state 1) (setq safe-pos ... safe-pos-list ...)) (if (or ... ...) (elt state 8))) (save-excursion (let (... safe-pos state pps-end-pos) (while ... ...) (unless ... ...) (while ... ...) (if ... ...) (if ... ...))) c-ssb-lit-begin() (setq lit-beg (c-ssb-lit-begin)) (cond ((setq lit-beg ...) (goto-char lit-beg) t) ((and paren-level ...) (if ... ... ... nil)) ((c-beginning-of-macro limit) (if ... t ... nil))) (let ((pos ...) state-2 pps-end-pos) (cond (... ... t) (... ...) (... ...))) (and (< (skip-chars-backward skip-chars limit) 0) (let (... state-2 pps-end-pos) (cond ... ... ...))) (while (and (< ... 0) (let ... ...))) (progn (while (and ... ...)) (> (point) (progn ... ...))) (while (progn (while ...) (> ... ...))) (let ((start ...) state-2 safe-pos-list start-macro-beg lit-beg (paren-level-pos ...)) (while (progn ... ...)) (/= (point) start)) c-syntactic-skip-backward("^<;}" nil t) c-electric-lt-gt(nil) call-interactively(c-electric-lt-gt nil nil) In GNU Emacs 23.1.91.1 (x86_64-apple-darwin10.2.0, NS apple-appkit-1038.25) of 2010-01-15 on edith.local Windowing system distributor `Apple', version 10.3.1038 configured using `configure '--with-ns'' Important settings: value of $LC_ALL: en_US.UTF-8 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_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix 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 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 l i s c c p r o g m c c e n g x e v a l - b f u M-x C-g C-x C-f C-a C-k / t m p / f o o . c p p # i n c l u d e SPC < f o o > x t o g g l e d - - e d e e r C-a C-x k y y e s C-x C-f # i n c l u d e SPC < f o o > C-x h M-w q q x r e p o r t - - e m Recent messages: Quit let: Args out of range: 15, 16 Making completion list... Debug on Error enabled globally Entering debugger... Mark set [2 times] Saved text until "interactively(c-electric-lt-gt nil nil) " Entering debugger... Back to top level. Load-path shadows: None found. Features: (shadow sort mail-extr message sendmail 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 hashcash mail-utils emacsbug debug cus-start cus-load cc-mode cc-fonts cc-menus cc-cmds cc-styles cc-align cc-engine cc-langs cl cl-19 cc-vars cc-defs regexp-opt cc-bytecomp vc-dispatcher vc-bzr sha1 hex-util help-mode view tooltip ediff-hook vc-hooks lisp-float-type mwheel ns-win easymenu 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 ns multi-tty emacs) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (Darwin) iEYEARECAAYFAktRBaYACgkQ17c2LVA10VsrOwCgwyddVcYGAcOf5HyuiihOotSe zKkAnjdB/a/dqQKoNaKIxR69d4ZPVYiY =SRwH -----END PGP SIGNATURE----- From unknown Sun Jun 15 08:57:07 2025 X-Loop: bug-gnu-emacs@gnu.org Subject: bug#5395: cc-mode raises on typing '>' in #include References: <4B5105A6.4060606@censorshipresearch.org> In-Reply-To: <4B5105A6.4060606@censorshipresearch.org> Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 18 Jan 2010 17:01:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5395 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 5395-submit@debbugs.gnu.org id=B5395.126383402711546 (code B ref 5395); Mon, 18 Jan 2010 17:01:02 +0000 Received: (at 5395) by debbugs.gnu.org; 18 Jan 2010 17:00:27 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NWuxn-00030B-AX for submit@debbugs.gnu.org; Mon, 18 Jan 2010 12:00:27 -0500 Received: from pantheon-po19.its.yale.edu ([130.132.50.75]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NWuxl-000303-Ta for 5395@debbugs.gnu.org; Mon, 18 Jan 2010 12:00:26 -0500 Received: from furry (dhcp128036014123.central.yale.edu [128.36.14.123]) (authenticated bits=0) by pantheon-po19.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o0IH0Hv4006870 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 18 Jan 2010 12:00:17 -0500 Received: by furry (Postfix, from userid 1000) id 66F41C05D; Mon, 18 Jan 2010 10:00:17 -0700 (MST) From: Chong Yidong To: Alan Mackenzie Date: Mon, 18 Jan 2010 12:00:17 -0500 Message-ID: <87iqazpcv2.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -4.8 (----) Cc: 5395@debbugs.gnu.org, Daniel Colascione 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: -4.8 (----) > Check out latest Emacs BZR. > Start with -Q > Visit an [empty] .cpp file > Type #include > > After typing the closing '>', an error is raised. Here is the traceback Actually, I get an error as soon as I type #. Alan, I think this is due to your 2009-12-03 changes to the c-parse-state mechanism. Could you take a look? From unknown Sun Jun 15 08:57:07 2025 X-Loop: bug-gnu-emacs@gnu.org Subject: bug#5395: cc-mode raises on typing '>' in #include Resent-From: Alan Mackenzie Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 18 Jan 2010 20:08:01 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5395 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 5395-submit@debbugs.gnu.org id=B5395.126384527720402 (code B ref 5395); Mon, 18 Jan 2010 20:08:01 +0000 Received: (at 5395) by debbugs.gnu.org; 18 Jan 2010 20:07:57 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NWxtE-0005J1-Ge for submit@debbugs.gnu.org; Mon, 18 Jan 2010 15:07:56 -0500 Received: from colin.muc.de ([193.149.48.1] helo=mail.muc.de) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NWxiy-0005B1-47 for 5395@debbugs.gnu.org; Mon, 18 Jan 2010 14:57:21 -0500 Received: (qmail 18822 invoked by uid 3782); 18 Jan 2010 19:57:14 -0000 Received: from acm.muc.de (pD9E50924.dip.t-dialin.net [217.229.9.36]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Mon, 18 Jan 2010 20:57:13 +0100 Received: (qmail 5951 invoked by uid 1000); 18 Jan 2010 20:03:47 -0000 Date: Mon, 18 Jan 2010 20:03:47 +0000 To: Chong Yidong Message-ID: <20100118200347.GB1062@muc.de> References: <87iqazpcv2.fsf@stupidchicken.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87iqazpcv2.fsf@stupidchicken.com> User-Agent: Mutt/1.5.9i X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: -2.6 (--) X-Mailman-Approved-At: Mon, 18 Jan 2010 15:07:55 -0500 Cc: 5395@debbugs.gnu.org, Daniel Colascione 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: -2.6 (--) Hello, Yidong and Daniel, On Mon, Jan 18, 2010 at 12:00:17PM -0500, Chong Yidong wrote: > > Check out latest Emacs BZR. > > Start with -Q > > Visit an [empty] .cpp file > > Type #include > > After typing the closing '>', an error is raised. Here is the traceback > Actually, I get an error as soon as I type #. > Alan, I think this is due to your 2009-12-03 changes to the > c-parse-state mechanism. Could you take a look? I feel the error is caused by the bug in Subject: (insert ?\n) spuriously calls before-change-functions twice. which I reported on 2010-01-05 and have since fixed. I haven't yet been able to commit the fix due to not yet understanding bzr well enough. Soon! -- Alan Mackenzie (Nuremberg, Germany). From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 18 18:43:51 2010 Received: (at control) by debbugs.gnu.org; 18 Jan 2010 23:43:51 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NX1GA-0000M8-SZ for submit@debbugs.gnu.org; Mon, 18 Jan 2010 18:43:50 -0500 Received: from mail-bw0-f211.google.com ([209.85.218.211]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NX1G9-0000M0-Un for control@debbugs.gnu.org; Mon, 18 Jan 2010 18:43:50 -0500 Received: by bwz3 with SMTP id 3so1628664bwz.16 for ; Mon, 18 Jan 2010 15:43:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:from:date:message-id :subject:to:content-type; bh=Emow+U7x8CJAW+P8zMMhYQB0TVNRAlpkiuv59bZLa74=; b=C1R61ybn1vp1LPFIqTtgSFfvN6s8ftDJud6G+uOQFqWK7zyd6mkSJE9ua7GU4KJUE7 8mvZj0JQCiZzdAq9ATAvbbYxuA7TWUta39VrIa5wKNZRYRPUpjkdpE9P+e9WfG8CazPP G3zEOlyuyUf8S7TDHwvYD8JJbgHSi9/y4Ut8Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=b/QK9yWvR0xOGRK4f2p5OEuLvEiECuys90FnhesukIY+Ry+qbxSK7Of4JQQV6grwp7 tkVyNvFTbyhgQ4E0E8nBI/bCj1mmTJhZFA33ymmhmAQfLUsdV1o5RfOJYCJWc4FxZ8WI CRoN/h6kgduMwSu7Iqo6ZxK5GdSM5ZhMmJHr0= MIME-Version: 1.0 Received: by 10.204.30.208 with SMTP id v16mr3842738bkc.18.1263858225142; Mon, 18 Jan 2010 15:43:45 -0800 (PST) From: Juanma Barranquero Date: Tue, 19 Jan 2010 00:43:24 +0100 Message-ID: Subject: To: control@debbugs.gnu.org Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -1.8 (-) X-Debbugs-Envelope-To: control 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: -1.8 (-) tags 5417 + patch severity 5417 minor reassign 5395 emacs,cc-mode quit From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 19 19:22:08 2010 Received: (at control) by debbugs.gnu.org; 20 Jan 2010 00:22:08 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NXOKm-0004n1-GK for submit@debbugs.gnu.org; Tue, 19 Jan 2010 19:22:08 -0500 Received: from mail-bw0-f222.google.com ([209.85.218.222]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NXOKj-0004me-G1 for control@debbugs.gnu.org; Tue, 19 Jan 2010 19:22:05 -0500 Received: by bwz22 with SMTP id 22so664581bwz.5 for ; Tue, 19 Jan 2010 16:22:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type; bh=eykcZK3tujxRv3BY0PyMqny4CoiuAygRX7KO5QDD8/M=; b=bCGlugHYSb6lFAwR7dzpiMmT9RjRIkCfZDrbfbXsSPsxeVnlqBDO+XV0sIRyi1vw86 XGcdfwLct69cqShS4POsRxHozep/KdkpHVaE24e74A82R9t+2lKUt8DIzSHvXiz04yjf ptKd9oR89g+veZLAiwQjbzQJu7EWfDQd7Jmq8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=WWQK8Ga7QtbLFdLIb6jYEzbgPFF6CZzRTdgNzIxwZiSvRCXqCNdUfSe5tIcaUYgfPh ExkgTmjMitXaXn3p+CJe/0mgC3Y2G5e62q3FI1VzO7p0Uw0rP/3iLwAFtempDiphSSBh TJnPgZW6EdVzR8O8vzQQrCtBY02js1IAnLtRw= MIME-Version: 1.0 Received: by 10.204.5.202 with SMTP id 10mr4735944bkw.24.1263946921110; Tue, 19 Jan 2010 16:22:01 -0800 (PST) In-Reply-To: References: From: Juanma Barranquero Date: Wed, 20 Jan 2010 01:21:41 +0100 Message-ID: Subject: Re: Processed (with 1 errors): Re: bug#5426: Fwd: c-neutralize-syntax-in-and-mark-CPP: Args out of range: 2, 3 To: control@debbugs.gnu.org Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: control 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: -2.7 (--) reassign 5426 emacs,cc-mode forcemerge 5395 5426 quit From unknown Sun Jun 15 08:57:07 2025 X-Loop: bug-gnu-emacs@gnu.org Subject: bug#5395: cc-mode raises on typing '>' in #include Resent-From: Alan Mackenzie Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 20 Jan 2010 10:29:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5395 X-Emacs-PR-Package: emacs,cc-mode X-Emacs-PR-Keywords: Received: via spool by 5395-submit@debbugs.gnu.org id=B5395.126398329017111 (code B ref 5395); Wed, 20 Jan 2010 10:29:02 +0000 Received: (at 5395) by debbugs.gnu.org; 20 Jan 2010 10:28:10 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NXXnF-0004Rw-Al for submit@debbugs.gnu.org; Wed, 20 Jan 2010 05:28:09 -0500 Received: from colin.muc.de ([193.149.48.1] helo=mail.muc.de) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NXXnC-0004Rf-Sn for 5395@debbugs.gnu.org; Wed, 20 Jan 2010 05:28:07 -0500 Received: (qmail 68068 invoked by uid 3782); 20 Jan 2010 10:28:03 -0000 Received: from acm.muc.de (pD9E234F0.dip.t-dialin.net [217.226.52.240]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Wed, 20 Jan 2010 11:28:01 +0100 Received: (qmail 3399 invoked by uid 1000); 20 Jan 2010 10:34:37 -0000 Date: Wed, 20 Jan 2010 10:34:37 +0000 To: Daniel Colascione , 5395@debbugs.gnu.org Message-ID: <20100120103437.GA2573@muc.de> References: <4B5105A6.4060606@censorshipresearch.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4B5105A6.4060606@censorshipresearch.org> User-Agent: Mutt/1.5.9i X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) From: Alan Mackenzie X-Primary-Address: acm@muc.de X-Spam-Score: -2.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: -2.6 (--) Hello, Daniel, On Fri, Jan 15, 2010 at 07:17:42PM -0500, Daniel Colascione wrote: > Check out latest Emacs BZR. > Start with -Q > Visit an arbitrary .cpp file > Type #include > After typing the closing '>', an error is raised. Here is the traceback [ .... ] Thanks for the traceback. It was useful. I'm not sure how you managed to type beyond the '#' without getting this error. ;-( Anyhow, I've committed a fix for this (or a very similar) bug into savannah. Could you please update your bzr Emacs and see if the bug has gone. Thanks! -- Alan Mackenzie (Nuremberg, Germany). From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 20 10:25:45 2010 Received: (at control) by debbugs.gnu.org; 20 Jan 2010 15:25:45 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NXcRF-0007Qb-LD for submit@debbugs.gnu.org; Wed, 20 Jan 2010 10:25:45 -0500 Received: from pantheon-po29.its.yale.edu ([130.132.50.124]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NXcRD-0007QU-Gl for control@debbugs.gnu.org; Wed, 20 Jan 2010 10:25:43 -0500 Received: from furry (adsl-99-58-201-143.dsl.wlfrct.sbcglobal.net [99.58.201.143]) (authenticated bits=0) by pantheon-po29.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o0KFPcAR026610 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Wed, 20 Jan 2010 10:25:38 -0500 Received: by furry (Postfix, from userid 1000) id 4EA24C05D; Wed, 20 Jan 2010 08:25:38 -0700 (MST) From: Chong Yidong To: control@debbugs.gnu.org Subject: close 5350 Date: Wed, 20 Jan 2010 10:25:38 -0500 Message-ID: <87y6jsvlvx.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -5.8 (-----) X-Debbugs-Envelope-To: control 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: -5.9 (-----) close 5350 close 5395 close 5426 thanks