From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 11 12:04:18 2012 Received: (at submit) by debbugs.gnu.org; 11 Jan 2012 17:04:18 +0000 Received: from localhost ([127.0.0.1]:54001 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rl1az-0003P7-Uh for submit@debbugs.gnu.org; Wed, 11 Jan 2012 12:04:18 -0500 Received: from eggs.gnu.org ([140.186.70.92]:60669) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rl0lk-0001Me-JF for submit@debbugs.gnu.org; Wed, 11 Jan 2012 11:11:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rl0lG-0001WE-93 for submit@debbugs.gnu.org; Wed, 11 Jan 2012 11:10:54 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([140.186.70.17]:59327) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rl0lG-0001WA-7S for submit@debbugs.gnu.org; Wed, 11 Jan 2012 11:10:50 -0500 Received: from eggs.gnu.org ([140.186.70.92]:60510) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rl0lA-0005DK-EL for bug-gnu-emacs@gnu.org; Wed, 11 Jan 2012 11:10:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rl0l2-0001TU-Cs for bug-gnu-emacs@gnu.org; Wed, 11 Jan 2012 11:10:44 -0500 Received: from static.88-198-71-155.clients.your-server.de ([88.198.71.155]:35966 helo=socrates.bennee.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rl0l2-0001SD-7d for bug-gnu-emacs@gnu.org; Wed, 11 Jan 2012 11:10:36 -0500 Received: from alex by socrates.bennee.com with local (Exim 4.72) (envelope-from ) id 1Rl0FL-0003C6-Uu for bug-gnu-emacs@gnu.org; Wed, 11 Jan 2012 16:37:51 +0100 From: Alex To: bug-gnu-emacs@gnu.org Subject: 24.0.92; cc-mode breakage due to "Large brace-block initialisation makes CC Mode slow: Fix" Date: Wed, 11 Jan 2012 16:37:51 +0100 Message-ID: <87vcois10w.fsf@socrates.bennee.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: alex@bennee.com X-SA-Exim-Scanned: No (on socrates.bennee.com); SAEximRunCond expanded to false X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 11 Jan 2012 12:04:17 -0500 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 (----) I'm currently tracking the Emacs BZR/GIT repo for the current bleeding edge code. It seems it broke over Christmas. While editing C code I was constantly hit with back traces like the following: Debugger entered--Lisp error: (args-out-of-range 10389 15607) parse-partial-sexp(10389 15607) c-literal-limits(nil nil t) c-indent-new-comment-line(t) default-indent-new-line(t) do-auto-fill() apply(do-auto-fill nil) c-mask-paragraph(nil t do-auto-fill) c-do-auto-fill() self-insert-command(1) newline() newline-and-indent() call-interactively(newline-and-indent nil nil) This often left emacs unusable, sometime wiping the current editing buffer. Bisecting through the code tree I found it was the Large brace-block fix that causes the regression. I'm afraid I can't provide the code it broke on but was occurring all over the place so I don't think it was anything special. Regards, Alex From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 11 14:07:08 2012 Received: (at control) by debbugs.gnu.org; 11 Jan 2012 19:07:08 +0000 Received: from localhost ([127.0.0.1]:54117 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rl3Vr-0007wO-PF for submit@debbugs.gnu.org; Wed, 11 Jan 2012 14:07:08 -0500 Received: from fencepost.gnu.org ([140.186.70.10]:52022) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rl3Vo-0007wG-Sr for control@debbugs.gnu.org; Wed, 11 Jan 2012 14:07:05 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Rl3VN-0004l5-O8 for control@debbugs.gnu.org; Wed, 11 Jan 2012 14:06:37 -0500 Date: Wed, 11 Jan 2012 14:06:37 -0500 Message-Id: Subject: control message for bug 10463 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: control 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 (----) forcemerge 10480 10463 From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 15 05:07:21 2012 Received: (at submit) by debbugs.gnu.org; 15 Jan 2012 10:07:21 +0000 Received: from localhost ([127.0.0.1]:57882 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RmMzh-000061-3R for submit@debbugs.gnu.org; Sun, 15 Jan 2012 05:07:21 -0500 Received: from eggs.gnu.org ([140.186.70.92]:39050) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RmMzf-00005u-6Y for submit@debbugs.gnu.org; Sun, 15 Jan 2012 05:07:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RmMys-0007bq-CK for submit@debbugs.gnu.org; Sun, 15 Jan 2012 05:06:31 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00,FAKE_REPLY_C, T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([140.186.70.17]:44431) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RmMys-0007bm-Aq for submit@debbugs.gnu.org; Sun, 15 Jan 2012 05:06:30 -0500 Received: from eggs.gnu.org ([140.186.70.92]:59115) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RmMyr-00037s-AV for bug-gnu-emacs@gnu.org; Sun, 15 Jan 2012 05:06:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RmMyp-0007bT-WB for bug-gnu-emacs@gnu.org; Sun, 15 Jan 2012 05:06:29 -0500 Received: from colin.muc.de ([193.149.48.1]:50669 helo=mail.muc.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RmMyp-0007bL-MV for bug-gnu-emacs@gnu.org; Sun, 15 Jan 2012 05:06:27 -0500 Received: (qmail 37191 invoked by uid 3782); 15 Jan 2012 10:06:26 -0000 Received: from acm.muc.de (pD951B011.dip.t-dialin.net [217.81.176.17]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sun, 15 Jan 2012 11:06:21 +0100 Received: (qmail 3007 invoked by uid 1000); 15 Jan 2012 09:59:41 -0000 Date: Sun, 15 Jan 2012 09:59:41 +0000 To: Alex Subject: Re: bug#10480: 24.0.92;?cc-mode breakage due to "Large brace-block initialisation makes CC?Mode slow: Fix" Message-ID: <20120115095941.GA2910@acm.acm> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: submit Cc: bug-gnu-emacs@gnu.org, 10480@debbugs.gnu.org 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 (-) In article you wrote: > > I'm currently tracking the Emacs BZR/GIT repo for the current bleeding > edge code. It seems it broke over Christmas. While editing C code I > was > constantly hit with back traces like the following: > Debugger entered--Lisp error: (args-out-of-range 10389 15607) > parse-partial-sexp(10389 15607) > c-literal-limits(nil nil t) > c-indent-new-comment-line(t) > default-indent-new-line(t) > do-auto-fill() > apply(do-auto-fill nil) > c-mask-paragraph(nil t do-auto-fill) > c-do-auto-fill() > self-insert-command(1) > newline() > newline-and-indent() > call-interactively(newline-and-indent nil nil) Sorry about this, and thanks for reporting the bug. > This often left emacs unusable, sometime wiping the current editing > buffer. Bisecting through the code tree I found it was the Large > brace-block fix that causes the regression. This looks to be the same as bug #10463 which has already been fixed. The fix was committed to the savannah repository on 2012-01-11, revision #106849. Would you please apply that bug's patch and let me know if it fails to fix the current bug. Here is that patch: *** orig/cc-engine.el 2012-01-09 20:27:51.000000000 +0000 --- cc-engine.el 2012-01-10 11:09:42.000000000 +0000 *************** *** 4225,4236 **** Note that this function might do hidden buffer changes. See the comment at the start of cc-engine.el for more info." ! (let* ((safe-place (c-state-safe-place (point))) ! (lit (c-state-pp-to-literal safe-place (point)))) ! (or (cadr lit) ! (and detect-cpp ! (save-excursion (c-beginning-of-macro)) ! 'pound)))) (defun c-literal-limits (&optional lim near not-in-delimiter) "Return a cons of the beginning and end positions of the comment or --- 4225,4238 ---- Note that this function might do hidden buffer changes. See the comment at the start of cc-engine.el for more info." ! (save-restriction ! (widen) ! (let* ((safe-place (c-state-safe-place (point))) ! (lit (c-state-pp-to-literal safe-place (point)))) ! (or (cadr lit) ! (and detect-cpp ! (save-excursion (c-beginning-of-macro)) ! 'pound))))) (defun c-literal-limits (&optional lim near not-in-delimiter) "Return a cons of the beginning and end positions of the comment or *************** *** 4250,4258 **** (save-excursion (let* ((pos (point)) (lim (or lim (c-state-safe-place pos))) ! (pp-to-lit (c-state-pp-to-literal lim pos)) (state (car pp-to-lit)) - (lit-type (cadr pp-to-lit)) (lit-limits (car (cddr pp-to-lit)))) (cond --- 4252,4261 ---- (save-excursion (let* ((pos (point)) (lim (or lim (c-state-safe-place pos))) ! (pp-to-lit (save-restriction ! (widen) ! (c-state-pp-to-literal lim pos))) (state (car pp-to-lit)) (lit-limits (car (cddr pp-to-lit)))) (cond > Regards, > Alex -- Alan Mackenzie (Nuremberg, Germany). From unknown Mon Aug 18 09:01:40 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 12 Feb 2012 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator