From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: [mast@lysator.liu.se: Re: [handa@m17n.org: TAB (c-indent-command) signals a peculiar error]] Date: Tue, 17 Aug 2004 21:34:50 -0400 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1092792995 25554 80.91.224.253 (18 Aug 2004 01:36:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 18 Aug 2004 01:36:35 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 18 03:36:27 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BxFNL-0006qn-00 for ; Wed, 18 Aug 2004 03:36:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BxFRW-000572-Eg for ged-emacs-devel@m.gmane.org; Tue, 17 Aug 2004 21:40:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BxFR4-0004w9-NX for emacs-devel@gnu.org; Tue, 17 Aug 2004 21:40:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BxFR3-0004vp-TU for emacs-devel@gnu.org; Tue, 17 Aug 2004 21:40:18 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BxFR3-0004vU-9C for emacs-devel@gnu.org; Tue, 17 Aug 2004 21:40:17 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BxFLn-0007qf-2H for emacs-devel@gnu.org; Tue, 17 Aug 2004 21:34:51 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1BxFLm-0003VD-8s; Tue, 17 Aug 2004 21:34:50 -0400 Original-To: emacs-devel@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:26297 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:26297 Would someone like to investigate this bug? Please send me *a reply to this message* if you work on it. ------- Start of forwarded message ------- To: emacs-pretest-bug@gnu.org Cc: mule-ja@m17n.org, bug-cc-mode@gnu.org, rms@gnu.org, Kenichi Handa Subject: Re: [handa@m17n.org: TAB (c-indent-command) signals a peculiar error] Reply-To: bug-cc-mode@gnu.org From: Martin Stjernholm Date: Tue, 17 Aug 2004 04:26:47 +0200 In-Reply-To: (Richard Stallman's message of "Wed, 04 Aug 2004 00:32:52 -0400") X-Virus-Scanned: by amavisd 0.1 X-Spam-Status: No, hits=-2.5 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,RCVD_IN_ORBS, REFERENCES,REPLY_WITH_QUOTES,USER_AGENT_GNUS_UA version=2.55 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) Richard Stallman wrote: > Would you please take a look at this? > > From: Kenichi Handa > Subject: TAB (c-indent-command) signals a peculiar error > To: emacs-pretest-bug@gnu.org > Cc: mule-ja@m17n.org > Date: Tue Aug 3 07:58:38 2004 +0200 > > I got this bug report (testcase is simplified from the > original report). > > With the latest CVS HEAD code, when you visit the attached > file, move point to the beginning of 5th line ("int y;"), > and hit TAB, the following error is signaled. This is a bug in the syntax functions in the Emacs core. I've further minimized the test case to this: 1. Start Emacs with -q -no-site-file. 2. Create a new buffer in C mode. 3. Enter: À RET ( 4. Narrow the buffer to show only the open paren. 5. Evaluate: (forward-comment -1) An error "Error in syntax_table logic for to-the-end intervals" is signalled. I expected the function to not move the point and return nil, as it does if the buffer isn't narrowed. Furthermore, I've no idea what the error means and how the caller is supposed to handle it. Perhaps it should be an internal assertion instead. > When you move the cursor one line up, hit TAB, move the > cursor one line down, and hit TAB, then it works. > > This doesn't happen when you are using global-font-lock-mode. The various caches in CC Mode probably avoids the error in these cases. ------- End of forwarded message -------